summaryrefslogtreecommitdiffstats
path: root/nova
diff options
context:
space:
mode:
authorMatt Dietz <matt.dietz@rackspace.com>2012-04-17 12:53:49 -0500
committerMatt Dietz <matt.dietz@rackspace.com>2012-04-18 17:01:45 +0000
commit30ccfc35fc51c1ce0666be37b20eeb10162fa143 (patch)
treea3e3030537a7fc217d7b680c3d98881e50021aa1 /nova
parentc457ec03806269785c994af9b75383a0f52d628d (diff)
downloadnova-30ccfc35fc51c1ce0666be37b20eeb10162fa143.tar.gz
nova-30ccfc35fc51c1ce0666be37b20eeb10162fa143.tar.xz
nova-30ccfc35fc51c1ce0666be37b20eeb10162fa143.zip
Updates launched_at in the finish and revert_migration calls
Fixes lp984219 Change-Id: I06b113355acbc954052734ecb33a281649ec5876
Diffstat (limited to 'nova')
-rw-r--r--nova/compute/manager.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/nova/compute/manager.py b/nova/compute/manager.py
index bf6ff476a..fd4b18c16 100644
--- a/nova/compute/manager.py
+++ b/nova/compute/manager.py
@@ -1245,6 +1245,7 @@ class ComputeManager(manager.SchedulerDependentManager):
root_gb=instance_type['root_gb'],
ephemeral_gb=instance_type['ephemeral_gb'],
instance_type_id=instance_type['id'],
+ launched_at=utils.utcnow(),
vm_state=vm_states.ACTIVE,
task_state=None)
@@ -1390,6 +1391,7 @@ class ComputeManager(manager.SchedulerDependentManager):
instance_ref.uuid,
vm_state=vm_states.ACTIVE,
host=migration_ref['dest_compute'],
+ launched_at=utils.utcnow(),
task_state=task_states.RESIZE_VERIFY)
self.db.migration_update(context, migration_ref.id,