[one-users] econe-upload to file datastore

Daniel Molina dmolina at opennebula.org
Fri Aug 16 10:06:06 PDT 2013


Hi


On 16 August 2013 10:39, Steffen Claus <steffen.claus at scai.fraunhofer.de>wrote:

> Hi,
> i went through the code and found the following lines in the
> EC2QueryServer.rb:
>
> def upload_image(params)
>    image = ImageEC2.new(Image.build_xml,
>                        @client,
>                        params['file'],
>                       {:type => "OS"})
>
> This renders it impossible to upload files to a file datastore.
>
> What would be the best way to handle this situation? Additional parameters
> for the upload_image method, even though AWS doesn't distingush between
> image types? Or one could check the TYPE of the datastore to define allowed
> IMAGE types for upload, e.g.:
> type == "image" --> allowed: OS, CDROM, DATABLOCK
> type == "file" --> allowed: KERNEL, RAMDISK, CONTEXT.
>
> What do you think?
>

econe-upload is a nonofficial EC2 api call, it's just a helper to upload
image to OpenNebula. So, you can add a new param type to the request an use
it when creating the new image.

BTW, how are you going to use this files through EC2?

Cheers


>
>
> BR,
> Steffen
>
>
> ----- Ursprüngliche Mail -----
> > Hi,
> > i am trying to upload a file via econe-upload to my file datastore.
> > However, i keep getting the following error:
> >
> > "econe-upload:
> >
> <Response><RequestId/><Errors><Error><Code>UnsupportedOperation</Code><Message>[ImageAllocate]
> > Error allocating a new image. Only IMAGES of type KERNEL, RAMDISK
> > and CONTEXT can be registered in a FILE_DS
> > datastore</Message></Error></Errors></Response>".
> >
> > Is the current implementation of econe-upload incapable of handling
> > file datastores? Where can i change the image type?
> >
> > Is there another way of uploading files via command-line/API? I
> > haven't succeded with ec2-tools (ec2-import-volume) as well. What
> > about OCCI?
> >
> > BR,
> > Steffen
> >
> >
> >
> > --
> > Steffen Claus
> >
> > Fraunhofer-Institut für Algorithmen und Wissenschaftliches Rechnen
> > (SCAI)
> > Schloss Birlinghoven
> > D-53754 Sankt Augustin
> > Tel: +49 2241 14-2511
> > steffen.claus at scai.fraunhofer.de
> > http://www.scai.fraunhofer.de
> > _______________________________________________
> > Users mailing list
> > Users at lists.opennebula.org
> > http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
> >
>
> --
> Steffen Claus
>
> Fraunhofer-Institut für Algorithmen und Wissenschaftliches Rechnen (SCAI)
> Schloss Birlinghoven
> D-53754 Sankt Augustin
> Tel: +49 2241 14-2511
> steffen.claus at scai.fraunhofer.de
> http://www.scai.fraunhofer.de
> _______________________________________________
> Users mailing list
> Users at lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>



-- 
Join us at OpenNebulaConf2013 <http://opennebulaconf.com/> in Berlin, 24-26
September, 2013
--
Daniel Molina
Project Engineer
OpenNebula - The Open Source Solution for Data Center Virtualization
www.OpenNebula.org | dmolina at opennebula.org | @OpenNebula
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20130816/2efe672e/attachment-0001.htm>


More information about the Users mailing list