Merge "Fixes bug #919390 - Block Migration fails when keystone is un use."

This commit is contained in:
Jenkins
2012-01-22 20:42:23 +00:00
committed by Gerrit Code Review
2 changed files with 5 additions and 7 deletions
+1
View File
@@ -92,6 +92,7 @@ masukotm<masukotm@nttdata.co.jp>
Ken Pepple <ken.pepple@gmail.com>
Kevin Bringard <kbringard@attinteractive.com>
Kevin L. Mitchell <kevin.mitchell@rackspace.com>
Kiall Mac Innes <kiall@managedit.ie>
Kirill Shileev <kshileev@gmail.com>
Koji Iida <iida.koji@lab.ntt.co.jp>
Likitha Shetty <likitha.shetty@citrix.com>
+4 -7
View File
@@ -1797,20 +1797,17 @@ class LibvirtConnection(driver.ComputeDriver):
# if image has kernel and ramdisk, just download
# following normal way.
if instance_ref['kernel_id']:
user = manager.AuthManager().get_user(instance_ref['user_id'])
project = manager.AuthManager().get_project(
instance_ref['project_id'])
libvirt_utils.fetch_image(nova_context.get_admin_context(),
os.path.join(instance_dir, 'kernel'),
instance_ref['kernel_id'],
user,
project)
instance_ref['user_id'],
instance_ref['project_id'])
if instance_ref['ramdisk_id']:
libvirt_utils.fetch_image(nova_context.get_admin_context(),
os.path.join(instance_dir, 'ramdisk'),
instance_ref['ramdisk_id'],
user,
project)
instance_ref['user_id'],
instance_ref['project_id'])
def post_live_migration_at_destination(self, ctxt,
instance_ref,