From 4e118a45e7cce335efe9d1286eac4f6c8bd69e4d Mon Sep 17 00:00:00 2001 From: Dan Prince Date: Tue, 5 Mar 2013 12:59:11 -0500 Subject: [PATCH] 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 --- nova/compute/api.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/nova/compute/api.py b/nova/compute/api.py index 415162339c1c..252f326d44c3 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,