Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Xen: API

empty vdi-map will cause VM.migrate_send operation to fail

 

 

Xen api RSS feed   Index | Next | Previous | View Threaded


mate.lakat at citrix

Sep 7, 2012, 2:13 AM

Post #1 of 3 (191 views)
Permalink
empty vdi-map will cause VM.migrate_send operation to fail

Hi,

I am about to fix this bug for OpenStack:
https://bugs.launchpad.net/nova/+bug/1040332

I would like to know a bit more about what is the expected content for
vdi-map in this case, to create proper test doubles. So I am interested
in the specification of the VM.migrate_send command.

Thanks,
Mate
--
Mate Lakat

_______________________________________________
Xen-api mailing list
Xen-api [at] lists
http://lists.xen.org/cgi-bin/mailman/listinfo/xen-api


mike.mcclurg at citrix

Sep 7, 2012, 6:17 AM

Post #2 of 3 (170 views)
Permalink
Re: empty vdi-map will cause VM.migrate_send operation to fail [In reply to]

On 07/09/12 10:13, Mate Lakat wrote:
> Hi,
>
> I am about to fix this bug for OpenStack:
> https://bugs.launchpad.net/nova/+bug/1040332
>
> I would like to know a bit more about what is the expected content for
> vdi-map in this case, to create proper test doubles. So I am interested
> in the specification of the VM.migrate_send command.

The vdi-map should contain a dictionary of (vdi_ref, sr_ref) pairs. The
vdi_ref should be an Opaque_ref to the VDI on the source pool, and the
sr_ref should be an Opaque_ref to the destination SR on the destination
pool. You should specify all the VDIs for which the VM has a VBD.

In case you didn't know, you can look at the Xapi source code to see a
list of all the XenAPI commands and the name and type of each of their
parameters [1]. Here [2] is a direct link to the migrate_send function.

Mike

[1] https://github.com/xen-org/xen-api/blob/master/ocaml/idl/datamodel.ml
[2]
https://github.com/xen-org/xen-api/blob/master/ocaml/idl/datamodel.ml#L2049

_______________________________________________
Xen-api mailing list
Xen-api [at] lists
http://lists.xen.org/cgi-bin/mailman/listinfo/xen-api


mate.lakat at citrix

Sep 7, 2012, 10:37 AM

Post #3 of 3 (173 views)
Permalink
Re: empty vdi-map will cause VM.migrate_send operation to fail [In reply to]

Hi Mike,

Thanks for your email.

We made the changes for migrate_send, but I guess, we need to do the
same gymnastics for the assert_can_migrate call. We found the following log
entry:

Sep 7 10:20:42 localhost xapi: [error|epun|5997 INET
0.0.0.0:80|dispatch:VM.assert_can_migrate D:fc2677e3fc64|xmlrpc] Error:
name='unbox: Element=struct should contain 'string''; xml=
<struct><member><name>xenops</name><value><string>http
://10.219.10.22/services/xenops?session_id=OpaqueRef:82ae4a07-fca7-30fb-91cf-28d1a72b4896</string></value></member><member><name>host</name><value><string>OpaqueRef:6ec313f8-c6cf-7167-91b0-c5e1f2774b0f</string></value></member><member><nam

What do you think, could me not passing vid_ref causing this log entry?
Seems to be some sort of syntax error.

Thanks,
Mate

On Fri, Sep 07, 2012 at 02:17:04PM +0100, Mike McClurg wrote:
> On 07/09/12 10:13, Mate Lakat wrote:
> > Hi,
> >
> > I am about to fix this bug for OpenStack:
> > https://bugs.launchpad.net/nova/+bug/1040332
> >
> > I would like to know a bit more about what is the expected content for
> > vdi-map in this case, to create proper test doubles. So I am interested
> > in the specification of the VM.migrate_send command.
>
> The vdi-map should contain a dictionary of (vdi_ref, sr_ref) pairs. The
> vdi_ref should be an Opaque_ref to the VDI on the source pool, and the
> sr_ref should be an Opaque_ref to the destination SR on the destination
> pool. You should specify all the VDIs for which the VM has a VBD.
>
> In case you didn't know, you can look at the Xapi source code to see a
> list of all the XenAPI commands and the name and type of each of their
> parameters [1]. Here [2] is a direct link to the migrate_send function.
>
> Mike
>
> [1] https://github.com/xen-org/xen-api/blob/master/ocaml/idl/datamodel.ml
> [2]
> https://github.com/xen-org/xen-api/blob/master/ocaml/idl/datamodel.ml#L2049

_______________________________________________
Xen-api mailing list
Xen-api [at] lists
http://lists.xen.org/cgi-bin/mailman/listinfo/xen-api

Xen api RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.