[one-users] econe-upload to file datastore
Daniel Molina
dmolina at opennebula.org
Mon Sep 2 06:55:48 PDT 2013
On 19 August 2013 12:27, Steffen Claus <steffen.claus at scai.fraunhofer.de>wrote:
> Am 16.08.2013 19:06, schrieb Daniel Molina:
>
>> Hi
>>
>>
>> On 16 August 2013 10:39, Steffen Claus <steffen.claus at scai.**
>> fraunhofer.de <steffen.claus at scai.fraunhofer.de>
>> <mailto:steffen.claus at scai.**fraunhofer.de<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.
>>
> I know that econe is not supposed to support the whole range of EC2
> functionalities. So you suggest I should change the server code?
>
> Yes
>
>> BTW, how are you going to use this files through EC2?
>>
> They are pre-configured to be used within VM templates. I just need an
> automatic way of uploading them from outside the Cloud infrastructure.
>
BTW, you can upload any kind of file through Sunstone.
Cheers
>
>
>> 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 <tel:%2B49%202241%2014-2511>
>> > steffen.claus at scai.fraunhofer.**de<steffen.claus at scai.fraunhofer.de>
>> <mailto:steffen.claus at scai.**fraunhofer.de<steffen.claus at scai.fraunhofer.de>
>> >
>>
>> > http://www.scai.fraunhofer.de
>> > ______________________________**_________________
>> > Users mailing list
>> > Users at lists.opennebula.org <mailto:Users at lists.**opennebula.org<Users at lists.opennebula.org>
>> >
>>
>> > http://lists.opennebula.org/**listinfo.cgi/users-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 <tel:%2B49%202241%2014-2511>
>> steffen.claus at scai.fraunhofer.**de <steffen.claus at scai.fraunhofer.de>
>> <mailto:steffen.claus at scai.**fraunhofer.de<steffen.claus at scai.fraunhofer.de>
>> >
>>
>> http://www.scai.fraunhofer.de
>> ______________________________**_________________
>> Users mailing list
>> Users at lists.opennebula.org <mailto:Users at lists.**opennebula.org<Users at lists.opennebula.org>
>> >
>> http://lists.opennebula.org/**listinfo.cgi/users-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 <http://www.OpenNebula.org> | dmolina at opennebula.org
>> <mailto:dmolina at opennebula.org**> | @OpenNebula
>>
>
>
> --
> 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 <steffen.claus at scai.fraunhofer.de>
> http://www.scai.fraunhofer.de
>
--
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/20130902/47e834ed/attachment.htm>
More information about the Users
mailing list