summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Prince <dprince@redhat.com>2013-03-05 12:59:11 -0500
committerDan Prince <dprince@redhat.com>2013-03-05 12:59:11 -0500
commit4e118a45e7cce335efe9d1286eac4f6c8bd69e4d (patch)
tree9957eabe60cca55b2bca80bd95c3ce5dbf59eab3
parentad57a303f1916d99f73eb8123f60c8a2fd1e6a78 (diff)
downloadnova-4e118a45e7cce335efe9d1286eac4f6c8bd69e4d.tar.gz
nova-4e118a45e7cce335efe9d1286eac4f6c8bd69e4d.tar.xz
nova-4e118a45e7cce335efe9d1286eac4f6c8bd69e4d.zip
Add missing action_start if deleting resized inst.
When trying to delete a resized instance Nova will automatically call confirm on the resized instance to help clean things up. With some of the recent action event changes in grizzly this code path was broken due to a missing record_action_start call on the confirm_resize operation. Fixes LP Bug #1147387. Change-Id: I23e84de8675c980656a71b71e34ffa0a0801f389
-rw-r--r--nova/compute/api.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/nova/compute/api.py b/nova/compute/api.py
index 415162339..252f326d4 100644
--- a/nova/compute/api.py
+++ b/nova/compute/api.py
@@ -1080,6 +1080,10 @@ class API(base.Base):
migration_ref)
downsize_reservations = self._reserve_quota_delta(context,
deltas)
+
+ self._record_action_start(context, instance,
+ instance_actions.CONFIRM_RESIZE)
+
self.compute_rpcapi.confirm_resize(context,
instance, migration_ref,
host=src_host, cast=False,