live migration fails when using non-image backed disk

Bug #1257355 reported by Dirk Mueller
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Medium
Dirk Mueller
Havana
Fix Released
Medium
Dirk Mueller

Bug Description

running live migration with --block-migrate fails if the disk was resized before (aka detached from the cow image). This is because nova.virt.libvirt.driver.py uses disk_size, not virt_disk_size for re-creating the qcow2 file on the destination host. in the case of qcow2 files, qemu-img however needs to get the virt_disk size passed down, otherwise the block migration step will not be able to convert all blocks.

Tags: libvirt
Revision history for this message
Matt Riedemann (mriedem) wrote :
tags: added: libvirt
Changed in nova:
status: New → In Progress
assignee: nobody → Dirk (dirk-mueller)
tags: added: havana-backport-potential
Changed in nova:
importance: Undecided → Medium
Matt Riedemann (mriedem)
Changed in nova:
assignee: Dirk (dirk-mueller) → Dirk Mueller (dmllr)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)

Reviewed: https://review.openstack.org/59771
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=c61c67c5afd100749b7b55b251bd4e4e3bb556a2
Submitter: Jenkins
Branch: master

commit c61c67c5afd100749b7b55b251bd4e4e3bb556a2
Author: Dirk Mueller <email address hidden>
Date: Tue Dec 3 17:16:58 2013 +0100

    Setup destination disk from virt_disk_size

    When running live-migration --block-migrate on a qcow2 backed
    VM without cow image, the destination qcow2 file should be created
    with the virtual disk size. For raw images, the virt_disk_size
    is set to disk_size to ensure that virt_disk_size is always the
    size of the disk that should be re-created.

    Update unit tests to be more strict and check for sizes to be correct.

    Closes-Bug: #1257355

    Change-Id: Ie3be46024f06b9f59af92f5e3918a1958386d4f1

Changed in nova:
status: In Progress → Fix Committed
Changed in nova:
milestone: none → icehouse-2
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (stable/havana)

Fix proposed to branch: stable/havana
Review: https://review.openstack.org/67795

Thierry Carrez (ttx)
Changed in nova:
status: Fix Committed → Fix Released
Alan Pevec (apevec)
tags: removed: havana-backport-potential
Thierry Carrez (ttx)
Changed in nova:
milestone: icehouse-2 → 2014.1
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.