Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge "Updates launched_at in the finish and revert_migration calls"

  • Loading branch information...
commit ab7e5907ff0fdad759d5e00a351c757c1e5de452 2 parents fa554ec + 30ccfc3
Jenkins authored openstack-gerrit committed
Showing with 2 additions and 0 deletions.
  1. +2 −0  nova/compute/manager.py
View
2  nova/compute/manager.py
@@ -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,
Please sign in to comment.
Something went wrong with that request. Please try again.