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] Xen XMLRPC error when issuing VM.migrate()

To: xen-api@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-API] Xen XMLRPC error when issuing VM.migrate()
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
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=FkQx57gYWymRzcG1BrpQ2njGBWjs8OXLynTLGPInwaI=; b=TpJ4yMexEUtefQi5F6jepUmqqEA1c9wO/GC4Wn1/cG7Niv60QkD4Dq99df4tcbQopx 22oiJOFv0iOATNDKr80I8ZrPYHJ8Hat7YRWwupreiGaIfB6NYuOYv5C/C7zzMcM9jE3Y qhD8IM/hNktGRpH2AMmhM3nF/5PWBVzFQYWOM=
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=
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 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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-API] Xen XMLRPC error when issuing VM.migrate(), Daniel Meier <=