Skip to content

Commit

Permalink
Fixes bug #919390 - Block Migration fails when keystone is un use.
Browse files Browse the repository at this point in the history
I've Updated the calls to nova.virt.libvirt.utils.fetch_image() to match the rest of the class.

Additionally, nova.virt.images.fetch() currently makes no use of the user/project id supplied.

Change-Id: I2db4b8c1b6542909fcc2b452fc961e22fe2557bf
  • Loading branch information
kiall committed Jan 20, 2012
1 parent 9faf925 commit 13599a5
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions nova/virt/libvirt/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -1779,20 +1779,17 @@ def pre_block_migration(self, ctxt, instance_ref, disk_info_json):
# 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'])
self._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']:
self._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,
Expand Down

0 comments on commit 13599a5

Please sign in to comment.