summaryrefslogtreecommitdiffstats
path: root/docker
diff options
context:
space:
mode:
authorMark Beierl <mark.beierl@dell.com>2018-07-10 13:46:09 +0000
committerGerrit Code Review <gerrit@opnfv.org>2018-07-10 13:46:09 +0000
commitf25f1b08fc3dde78166d3217018bd77aa62e3228 (patch)
tree67af7db34647088e7afa82b976daf5d2b23ec079 /docker
parent4ac628e18e5f9d03e13b10f9b26f57374bdc0658 (diff)
parent6114b084b3fd47e638172cbbe64c6ea9e627e66d (diff)
Merge "Set self.stack_id = None after delete stack"
Diffstat (limited to 'docker')
-rw-r--r--docker/storperf-master/storperf/storperf_master.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/docker/storperf-master/storperf/storperf_master.py b/docker/storperf-master/storperf/storperf_master.py
index 7a1444e..7a94af8 100644
--- a/docker/storperf-master/storperf/storperf_master.py
+++ b/docker/storperf-master/storperf/storperf_master.py
@@ -355,7 +355,12 @@ class StorPerfMaster(object):
stack_id = None
if (self.stack_id is not None):
stack_id = self.stack_id
- self.heat_stack.clean()
+ try:
+ self.heat_stack.clean()
+ except Exception as e:
+ self.logger.error("Stack creation failed")
+ raise Exception(e)
+ self.stack_id = None
return stack_id
def execute_workloads(self, metadata={}):