[one-users] 'onevm saveas' via XMLRPC or OCCI???
Carlos Martín Sánchez
cmartin at opennebula.org
Thu Feb 10 02:04:46 PST 2011
Hi,
2011/2/10 Marco Strutz <marco.strutz at desy.de>
> Hi.
>
> Thanks Carlos! I have managed to reproduce the behaviour by xmlrpc calls.
> But for the long term it would be very handy to access the "saveas" feature
> in one single xmlrpc call too so that it won't be necessary to duplicate
> (onevm ruby) source code and validate it for each new Opennebula release.
>
>
For version 2.4 we are going to move all this image files management to the
Core Daemon; we hope that will make things easier for upper layers, as you
suggest.
Cheers,
Carlos.
--
Carlos Martín, Engineer, MSc
Project Major Contributor
OpenNebula - The Open Source Toolkit for Cloud Computing
www.OpenNebula.org <http://www.opennebula.org/> | cmartin at opennebula.org
> regards
> Marco
>
>
> On 02/09/2011 11:20 AM, Carlos Martín Sánchez wrote:
>
> Hi Marco,
>
> The XML-RPC call requests an image id because the image has to be created
> beforehand.
> You can check how it is done in the oneimage command (it's a straight
> forward ruby script), and then replicate the same steps in your code.
>
> Regards,
> Carlos.
> --
> Carlos Martín, Engineer, MSc
> Project Major Contributor
> OpenNebula - The Open Source Toolkit for Cloud Computing
> www.OpenNebula.org <http://www.opennebula.org/> | cmartin at opennebula.org
>
>
> On 8 February 2011 17:03, Marco Strutz <marco.strutz at desy.de> wrote:
>
>> Hello.
>>
>> What is the best way to map the "onevm saveas" command [1] to OCCI or
>> XMLRPC-Request? I need to save vm images but want to avoid using the
>> command line interface.
>>
>> I cannot simply use the xmlrpc-call "one.vm.savedisk" [2] since I then
>> would need to know the "image id where the disk will be saved". But this
>> ID will be dynamically created by the "onevm saveas" command, right?
>> Furthermore where should I place the <image_name> in the XMLRPC-call?
>> The same problem with OCCI: Are there any attributes (perhaps for the
>> <CONTEXTUALISATION> section) I can use for the "onevm saveas"?
>>
>>
>>
>> Thanks
>> Marco
>>
>>
>> [1]
>> onevm saveas <vm_id> <disk_id> <image_name>
>>
>>
>> [2]
>> one.vm.savedisk
>> ****************
>> Type Data Type Description
>> IN String the session string associated to the connected user. * *
>> IN Int the virtual machine Id (vid) of the instance.
>> IN Int disk id of the disk we want to save.
>> IN Int image id where the disk will be saved.
>> OUT Boolean true or false whenever is successful or not
>> OUT String if an error occurs this is error message, otherwise
>> it does not exist.
>> _______________________________________________
>> Users mailing list
>> Users at lists.opennebula.org
>> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20110210/8f481ab8/attachment-0002.htm>
More information about the Users
mailing list