[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-API] XCP - XenAPI.Failure: ['FIELD_TYPE_ERROR', 'vm']


  • To: xen-api@xxxxxxxxxxxxxxxxxxx
  • From: Rama Rajesh <rama.rajesh100120@xxxxxxxxx>
  • Date: Sat, 5 Mar 2011 20:50:12 +0530
  • Delivery-date: Sat, 05 Mar 2011 07:20:23 -0800
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=Y7HxmryrUNTaMpRjBnRL69LHFnUPPdwmoPtvI95jZonDeKRu161ok++X++mvM0sFvZ 7owEZn3mYL2yNkH9hopPs67e4LumcJoTuY91jBjWJmZwK8E4syJTeZrhm8IYe/RlhBvj oSo/VNMCYbYLEKPERzagQ365WZRbr7kpyJXIA=
  • List-id: Discussion of API issues surrounding Xen <xen-api.lists.xensource.com>

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

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.