Hi,
On 3 September 2013 14:34, Steffen Claus <[email protected]>wrote: > Am 02.09.2013 15:55, schrieb Daniel Molina: > >> >> >> >> On 19 August 2013 12:27, Steffen Claus <steffen.claus@scai.** >> fraunhofer.de <[email protected]> >> <mailto:steffen.claus@scai.**fraunhofer.de<[email protected]>>> >> wrote: >> >> Am 16.08.2013 19:06, schrieb Daniel Molina: >> >> Hi >> >> >> On 16 August 2013 10:39, Steffen Claus >> <steffen.claus@scai.__fraunhof**er.de <http://fraunhofer.de> >> >> <mailto:steffen.claus@scai.**fraunhofer.de<[email protected]> >> > >> <mailto:steffen.claus@scai.__f**raunhofer.de<http://fraunhofer.de> >> >> >> <mailto:steffen.claus@scai.**fraunhofer.de<[email protected]>>>> >> 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> >> > [email protected].**__de >> >> <mailto:steffen.claus@scai.**fraunhofer.de<[email protected]> >> > >> >> <mailto:steffen.claus@scai.__f**raunhofer.de<http://fraunhofer.de> >> >> <mailto:steffen.claus@scai.**fraunhofer.de<[email protected]> >> >> >> >> > http://www.scai.fraunhofer.de >> > ______________________________**___________________ >> >> > Users mailing list >> > [email protected] >> <mailto:Users@lists.**opennebula.org <[email protected]> >> > >> <mailto:Users@lists.__opennebu**la.org <http://opennebula.org> >> <mailto:Users@lists.**opennebula.org <[email protected]> >> >> >> >> > >> 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> >> [email protected].**__de >> >> <mailto:steffen.claus@scai.**fraunhofer.de<[email protected]> >> > >> >> <mailto:steffen.claus@scai.__f**raunhofer.de<http://fraunhofer.de> >> >> <mailto:steffen.claus@scai.**fraunhofer.de<[email protected]> >> >> >> >> http://www.scai.fraunhofer.de >> ______________________________**___________________ >> >> Users mailing list >> [email protected] >> <mailto:Users@lists.**opennebula.org<[email protected]> >> > >> <mailto:Users@lists.__opennebu**la.org <http://opennebula.org> >> <mailto:Users@lists.**opennebula.org <[email protected]> >> >> >> 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> | [email protected] >> <mailto:[email protected]**> >> <mailto:[email protected] >> <mailto:[email protected]**>__> | @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> >> [email protected].**__de >> >> <mailto:steffen.claus@scai.**fraunhofer.de<[email protected]> >> > >> >> 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> | [email protected] >> <mailto:[email protected]**> | @OpenNebula >> > > > -- > Steffen Claus > > Fraunhofer-Institut für Algorithmen und Wissenschaftliches Rechnen (SCAI) > Schloss Birlinghoven > D-53754 Sankt Augustin > Tel: +49 2241 14-2511 > [email protected].**de <[email protected]> > 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 | [email protected] | @OpenNebula
_______________________________________________ Users mailing list [email protected] http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
