xenapi live migration without pools: empty vdi-map will cause VM.migrate_send operation to fail as of XenServer 6.1 RC1

Bug #1040332 reported by Mike McClurg
18
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
High
Mate Lakat
Tags: xenserver
Revision history for this message
Mark McLoughlin (markmc) wrote : Re: xenapi live migration without pools: empty vdi-map will cause VM.migrate_send operation to fail as of XenServer 6.0 RC1

The code in question is:

                try:
                    vdi_map = {}
                    vif_map = {}
                    options = {}
                    self._session.call_xenapi("VM.migrate_send", vm_ref,
                                              migrate_data, True,
                                              vdi_map, vif_map, options)

and Mike's comment was:

  If the vdi_map is left empty, the VM.migrate_send operation will fail as of XenServer 6.0 RC1.

Vish asked Mike to submit this bug and assign it to Renuka

summary: - Change I5feb6756 - xenapi live migration without pools: vdi-map must not
- be empty
+ xenapi live migration without pools: empty vdi-map will cause
+ VM.migrate_send operation to fail as of XenServer 6.0 RC1
Changed in nova:
assignee: nobody → Renuka Apte (renukaapte)
status: New → Confirmed
importance: Undecided → Medium
milestone: none → folsom-rc1
Mark McLoughlin (markmc)
tags: added: xenserver
Renuka Apte (renukaapte)
Changed in nova:
assignee: Renuka Apte (renukaapte) → nobody
assignee: nobody → Renuka Apte (renukaapte)
Changed in nova:
importance: Medium → Critical
Mate Lakat (mate-lakat)
Changed in nova:
assignee: Renuka Apte (renukaapte) → Citrix OpenStack development team (citrix-openstack)
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (master)

Fix proposed to branch: master
Review: https://review.openstack.org/12580

Changed in nova:
assignee: Citrix OpenStack development team (citrix-openstack) → John Garbutt (johngarbutt)
Thierry Carrez (ttx)
Changed in nova:
importance: Critical → High
Changed in nova:
assignee: John Garbutt (johngarbutt) → Mate Lakat (mate-lakat)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)

Reviewed: https://review.openstack.org/12580
Committed: http://github.com/openstack/nova/commit/4c72bfc8856ace121ab389279479c9afc1b5960b
Submitter: Jenkins
Branch: master

commit 4c72bfc8856ace121ab389279479c9afc1b5960b
Author: John Garbutt <email address hidden>
Date: Fri Sep 7 12:17:48 2012 +0100

    xapi: Fix live block migration

    Fixes bug 1040332.

    Xapi VM.migrate_send and VM.assert_can_migrate calls require that
    vdi_map parameter is a (source_vdi_ref -> target_sr_ref) mapping, for block
    live migration to work, as of XenServer 6.0 RC1.

    On the destination side:
    This fix modifies the check_can_live_migrate_destination call, so that the
    value returned contains the "destination_sr_ref" (XenAPI specific data is
    stored under the "migrate_send_data key").

    On the source side:
    check_can_live_migrate_source and live_migrate calls assemble the
    vdi_map by mapping all the local sr contained vdis of the VM to
    destination_sr_ref, and passing this parameter to the VM.migrate_send and
    VM.assert_can_migrate Xapi calls.

    Change-Id: I95f3dca651d2e72fc727646580092a25f558d6ba

Changed in nova:
status: In Progress → Fix Committed
summary: xenapi live migration without pools: empty vdi-map will cause
- VM.migrate_send operation to fail as of XenServer 6.0 RC1
+ VM.migrate_send operation to fail as of XenServer 6.1 RC1
Thierry Carrez (ttx)
Changed in nova:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in nova:
milestone: folsom-rc1 → 2012.2
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.