Block migration doesn't work

Bug #1039356 reported by Akira Yoshiyama
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
High
Yaguang Tang

Bug Description

Summary
=======

Block migration doesn't work on Nova folsom-3 with an error message below:

Live Migration failure: Unable to allow access for disk
path /var/lib/nova/instances/instance-0000000c/disk: No such file or directory

Related commit
==============

https://review.openstack.org/#/c/11395/

Patch to fix this problem
=========================

diff --git a/nova/virt/libvirt/driver.py b/nova/virt/libvirt/driver.py
index 8d3a364..a2817b3 100644
--- a/nova/virt/libvirt/driver.py
+++ b/nova/virt/libvirt/driver.py
@@ -2554,7 +2554,8 @@ class LibvirtDriver(driver.ComputeDriver):
                 # Remove any size tags which the cache manages
                 cache_name = cache_name.split('_')[0]

- image = self.image_backend.image(instance['name'], cache_name,
+ image = self.image_backend.image(instance['name'],
+ instance_disk,
                                                  FLAGS.libvirt_images_type)
                 image.cache(fn=libvirt_utils.fetch_image,
                             context=ctxt,

Akira Yoshiyama (yosshy)
description: updated
Revision history for this message
Mark McLoughlin (markmc) wrote :

From a quick look, it does look like the code is wrong and your patch is correct

Care to submit the patch to gerrit? http://wiki.openstack.org/HowToContribute

Changed in nova:
status: New → Confirmed
importance: Undecided → High
milestone: none → folsom-rc1
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/11934

Changed in nova:
assignee: nobody → Yaguang Tang (heut2008)
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)

Reviewed: https://review.openstack.org/11934
Committed: http://github.com/openstack/nova/commit/e4044c64de09a1b2bd78a344ecd54472d07b30d2
Submitter: Jenkins
Branch: master

commit e4044c64de09a1b2bd78a344ecd54472d07b30d2
Author: Yaguang Tang <email address hidden>
Date: Sat Aug 25 00:34:58 2012 +0800

    Make pre block migration create correct disk files.

    fix bug lp:1039356

    Change-Id: Iede2c6d2ec2b1a68c37d1e8f8735fd2e5d273c67

Changed in nova:
status: In Progress → Fix Committed
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.