[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-API] Xen XMLRPC error when issuing VM.migrate()
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
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |