From 52f30927af40efb3edaa58d1f57ad02f64492fe1 Mon Sep 17 00:00:00 2001 From: yatin karel Date: Sat, 13 Aug 2016 23:21:43 +0530 Subject: [PATCH] Set bay status: DELETE_IN_PROGRESS before updated by poll Set bay status to DELETE_IN_PROGRESS as soon as delete stack request returns. Currently this status is updated by Heat poller. Change-Id: I44a3cea1a5d6e9735b0b74637d7c62db2e9cffa3 Closes-Bug: #1612408 --- magnum/conductor/handlers/bay_conductor.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/magnum/conductor/handlers/bay_conductor.py b/magnum/conductor/handlers/bay_conductor.py index f1e88ab40d..e3a5be6efa 100644 --- a/magnum/conductor/handlers/bay_conductor.py +++ b/magnum/conductor/handlers/bay_conductor.py @@ -246,6 +246,9 @@ class Handler(object): conductor_utils.notify_about_bay_operation( context, taxonomy.ACTION_DELETE, taxonomy.OUTCOME_FAILURE) raise + + bay.status = bay_status.DELETE_IN_PROGRESS + self._poll_and_check(osc, bay) return None