WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-api

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

To: xen-api@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-API] XCP - XenAPI.Failure: ['FIELD_TYPE_ERROR', 'vm']
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
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:date:message-id:subject:from:to :content-type; bh=yJzyjlYuz9KoRmF6frY1ll6nwBo7YsrLpLR9EvcP4jo=; b=T8Da1yQiKLvm8ZxF+CPSOt0ocUumGTpbOj1irwTyE5Lcn03rUWQmPhvDEl4lb/SmqP AoTnZxN9qK30sVvAx//JLYAm8ijF1I/CdSHfqm7uuYDgtRyKf/2Vb2BodUZxM/E0SQDj UVqB7bQrbm0ji4zHWLy5gkiP2WdYGYaSWsnyw=
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=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-api-request@lists.xensource.com?subject=help>
List-id: Discussion of API issues surrounding Xen <xen-api.lists.xensource.com>
List-post: <mailto:xen-api@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-api>, <mailto:xen-api-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-api>, <mailto:xen-api-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-api-bounces@xxxxxxxxxxxxxxxxxxx
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
<Prev in Thread] Current Thread [Next in Thread>