Permalink
Browse files

Merge "Updates launched_at in the finish and revert_migration calls"

  • Loading branch information...
2 parents fa554ec + 30ccfc3 commit ab7e5907ff0fdad759d5e00a351c757c1e5de452 Jenkins committed with openstack-gerrit Apr 18, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 nova/compute/manager.py
View
@@ -1245,6 +1245,7 @@ def finish_revert_resize(self, context, instance_uuid, migration_id):
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 @@ def _finish_resize(self, context, instance_ref, migration_ref, disk_info,
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,

0 comments on commit ab7e590

Please sign in to comment.