[one-users] econe-upload to file datastore

Daniel Molina dmolina at opennebula.org
Tue Sep 3 06:46:35 PDT 2013


Hi,


On 3 September 2013 14:34, Steffen Claus
<steffen.claus at scai.fraunhofer.de>wrote:

> Am 02.09.2013 15:55, schrieb Daniel Molina:
>
>>
>>
>>
>> On 19 August 2013 12:27, 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:
>>
>>     Am 16.08.2013 19:06, schrieb Daniel Molina:
>>
>>         Hi
>>
>>
>>         On 16 August 2013 10:39, Steffen Claus
>>         <steffen.claus at scai.__fraunhof**er.de <http://fraunhofer.de>
>>         <mailto:steffen.claus at scai.**fraunhofer.de<steffen.claus at scai.fraunhofer.de>
>> >
>>         <mailto:steffen.claus at scai.__f**raunhofer.de<http://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
>>
> Ok. I'll think about it.
>
>
>
>>
>>         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.
>>
> I know, but this would be a manual process. I am looking for a way to
> handle the upload automatically, e.g. by calling an interface of the Cloud
> (such as EC2, OCCI or OCA).
>

It makes sense. It would be nice to a have a way to upload images and do
not depend on cloud servers or gui interactions. I have opened a new
feature request in our dev page to consider for upcoming release:

http://dev.opennebula.org/projects/opennebula/issues/new

Cheers

>
>
>> 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>
>>         <tel:%2B49%202241%2014-2511>
>>               > steffen.claus at scai.fraunhofer.**__de
>>         <mailto:steffen.claus at scai.**fraunhofer.de<steffen.claus at scai.fraunhofer.de>
>> >
>>              <mailto:steffen.claus at scai.__f**raunhofer.de<http://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>
>> >
>>         <mailto:Users at lists.__opennebu**la.org <http://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><
>> 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>
>>         <tel:%2B49%202241%2014-2511>
>>         steffen.claus at scai.fraunhofer.**__de
>>         <mailto:steffen.claus at scai.**fraunhofer.de<steffen.claus at scai.fraunhofer.de>
>> >
>>              <mailto:steffen.claus at scai.__f**raunhofer.de<http://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>
>> >
>>         <mailto:Users at lists.__opennebu**la.org <http://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><
>> 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>
>>         <http://www.OpenNebula.org> | dmolina at opennebula.org
>>         <mailto:dmolina at opennebula.org**>
>>         <mailto: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 <tel:%2B49%202241%2014-2511>
>>     steffen.claus at scai.fraunhofer.**__de
>>     <mailto: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 <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/20130903/527dc917/attachment-0002.htm>


More information about the Users mailing list