live-migrate: Change the status Migration is created with
We want to be consistent with what resize does here, and there should be no difference with regards to resource tracking (i.e. resources now should not be tracked for this state). Partial-bug: 1417667 Change-Id: I75f914fb28e337df48e8e68ae7e407b5239d2647
This commit is contained in:
parent
0bb21d5173
commit
f73fe579a6
|
@ -262,7 +262,7 @@ class ComputeTaskManager(base.Base):
|
|||
|
||||
migration = objects.Migration(context=context.elevated())
|
||||
migration.dest_compute = destination
|
||||
migration.status = 'pre-migrating'
|
||||
migration.status = 'accepted'
|
||||
migration.instance_uuid = instance.uuid
|
||||
migration.source_compute = instance.host
|
||||
migration.migration_type = 'live-migration'
|
||||
|
|
|
@ -341,7 +341,7 @@ class _BaseTaskTestCase(object):
|
|||
{'host': 'destination'}, True, False, None,
|
||||
'block_migration', 'disk_over_commit')
|
||||
|
||||
self.assertEqual('pre-migrating', migration.status)
|
||||
self.assertEqual('accepted', migration.status)
|
||||
self.assertEqual('destination', migration.dest_compute)
|
||||
self.assertEqual(inst_obj.host, migration.source_compute)
|
||||
|
||||
|
|
Loading…
Reference in New Issue