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

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

To: Rama Rajesh <rama.rajesh100120@xxxxxxxxx>
Subject: Re: [Xen-API] XCP - XenAPI.Failure: ['FIELD_TYPE_ERROR', 'vm']
From: Alberto González Rodríguez <alberto@xxxxxxxxxxxxx>
Date: Sat, 5 Mar 2011 16:26:53 +0100
Cc: xen-api@xxxxxxxxxxxxxxxxxxx
Delivery-date: Sat, 05 Mar 2011 07:27:07 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <AANLkTiktrLNX7H97+i5VOvs-pFR=ZG9=e8WEM59b_oPY@xxxxxxxxxxxxxx>
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>
References: <AANLkTiktrLNX7H97+i5VOvs-pFR=ZG9=e8WEM59b_oPY@xxxxxxxxxxxxxx>
Sender: xen-api-bounces@xxxxxxxxxxxxxxxxxxx
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
<Prev in Thread] Current Thread [Next in Thread>