[one-users] Question regarding Image.allocate method

Roxana Ioana Roman rroxanaioana at gmail.com
Thu Mar 6 04:26:39 PST 2014


Hello!
I am trying to allocate a new image in OpenNebula using the
Image.allocate(client,imageTemplate) method from the Java api.

I am doing:
OneResponse resonse =Image.allocate(client, image.toString());

where image.toString() is:

NAME = "ImageTest"
PATH = /var/lib/one/datastores/108/c10ddf1eb1bb078c4b1116652c5c9a55
PUBLIC = YES
PERSISTENT = NO
TYPE = OS
DESCRIPTION = "this is a test"

 response.getErrorMessage()  is :"Not enough parameters"

But as I read from:
http://archives.opennebula.org/documentation:archives:rel3.4:img_template
I have set all the required parameters.
Do you know what am I missing? Any help will be much appreciated.

Thank you!
Regards,
-- 
*Roxana Ioana Roman*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20140306/7f69d044/attachment.htm>


More information about the Users mailing list