[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Xen-API] XCP - XenAPI.Failure: ['FIELD_TYPE_ERROR', 'vm']
vms[0]
On Sat, Mar 5, 2011 at 4:20 PM, Rama Rajesh <rama.rajesh100120@xxxxxxxxx> wrote:
Hi all,
I recently started using the XCP 1.0 and I'm working with XenAPI.
When I try to start a VM after successfully logging in and creating a session using API it gives FIELD_TYPE_ERROR', 'vm'.
>>vms = session.xenapi.VM.get_by_name_label('CentOS 5 (64-bit)')
>>> vms ['OpaqueRef:0ec068bf-36d3-20a0-638a-8b8a33a30380']
>>session.xenapi.VM.start(vms, False, False)
Traceback (most recent call last): File "<stdin>", line 1, in ? File "/usr/lib/python2.4/site-packages/XenAPI.py", line 229, in __call__ return self.__send(self.__name, args)
File "/usr/lib/python2.4/site-packages/XenAPI.py", line 133, in xenapi_request result = _parse_result(getattr(self, methodname)(*full_params)) File "/usr/lib/python2.4/site-packages/XenAPI.py", line 203, in _parse_result
raise Failure(result['ErrorDescription']) XenAPI.Failure: ['FIELD_TYPE_ERROR', 'vm']
Actually I could successfully get the opaque reference for the VM object. But still it's giving me the error.
Can someone please help me to find where I am going wrong.
Thank You. Rama Rajesh.
_______________________________________________
xen-api mailing list
xen-api@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/mailman/listinfo/xen-api
_______________________________________________
xen-api mailing list
xen-api@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/mailman/listinfo/xen-api
|