2012-08-21 04:51:15 |
Akira Yoshiyama |
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/
A 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, |
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, |
|