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

[Xen-API] Xen XMLRPC error when issuing VM.migrate()


  • To: xen-api@xxxxxxxxxxxxxxxxxxx
  • From: Daniel Meier <herr.schnegg@xxxxxxxxx>
  • Date: Thu, 14 Oct 2010 15:35:58 +0200
  • Delivery-date: Thu, 14 Oct 2010 06:36:11 -0700
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=oUt5UB53pLqQljUYBHr1XRKy5EHUAOVWsEUjSHDd/RK2qSVTvkupq9h/3lvnO6yx3o NvXTlpXOW5loNTSz+A6T6vx/FmZgo4jaVLZZyHYSq3dGR9PY5p60C4KojL84lBe4eLRw oNfVrJbcByZLTzWzistbwidR4MnrvaUqV2iKE=
  • List-id: Discussion of API issues surrounding Xen <xen-api.lists.xensource.com>

Hi list

I'm currently playing with the XenAPI XMLRPC interface. On the client
side, I'm using Python with the xmlrpclib module. I can log in, and
issue RPC calls. However, I'm getting an error at VM.migrate(). The
following shows an example session:

Python 2.5.2 (r252:60911, Jan 24 2010, 14:53:14)
[GCC 4.3.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import xmlrpclib
>>> server_url = 'http://localhost:9363'
>>> server = xmlrpclib.Server(server_url)
>>> server.session.login_with_password('xxxxx', 'xxxxx')
{'Status': 'Success', 'Value': 'f16a07eb-01f3-b18d-ba35-5e7dd2677d3a'}
>>> server.VM.get_all('f16a07eb-01f3-b18d-ba35-5e7dd2677d3a')
{'Status': 'Success', 'Value':
['00000000-0000-0000-0000-000000000000',
'33af4e69-b141-6ef4-c628-c29b882c8a01']}
>>> server.VM.migrate('f16a07eb-01f3-b18d-ba35-5e7dd2677d3a', 
>>> '33af4e69-b141-6ef4-c628-c29b882c8a01', 'xennode2', True)
{'Status': 'Failure', 'ErrorDescription': ['INTERNAL_ERROR',
'VM_migrate() takes exactly 6 arguments (5 given)']

What is the 6th argument? According to the XenAPI documentation, it
takes only four:

void migrate (session_id s, VM ref vm, string dest, bool live, (string
-> string) Map options)

Thanks,
Daniel

_______________________________________________
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®.