Skip to content

Commit

Permalink
Merge "Set instance['host'] to the original host value on revert resi…
Browse files Browse the repository at this point in the history
…ze." into stable/diablo
  • Loading branch information
Jenkins authored and openstack-gerrit committed Jan 11, 2012
2 parents 8c48fa5 + 50f82d1 commit 02e94ac
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions nova/compute/manager.py
Expand Up @@ -928,6 +928,7 @@ def finish_revert_resize(self, context, instance_id, migration_id):
self._instance_update(context,
instance_ref["uuid"],
memory_mb=instance_type['memory_mb'],
host=migration_ref['source_compute'],
vcpus=instance_type['vcpus'],
local_gb=instance_type['local_gb'],
instance_type_id=instance_type['id'])
Expand Down
1 change: 1 addition & 0 deletions nova/tests/test_compute.py
Expand Up @@ -723,6 +723,7 @@ def fake(*args, **kwargs):
instance_type_ref = db.instance_type_get(context,
inst_ref['instance_type_id'])
self.assertEqual(instance_type_ref['flavorid'], 1)
self.assertEqual(inst_ref['host'], migration_ref['source_compute'])

self.compute.terminate_instance(context, instance_id)

Expand Down

0 comments on commit 02e94ac

Please sign in to comment.