summaryrefslogtreecommitdiffstats
path: root/docker
diff options
context:
space:
mode:
authorAmeed Ashour <Ameed.Ashour.ext@nokia.com>2018-07-10 13:49:40 +0300
committerAmeed Ashour <Ameed.Ashour.ext@nokia.com>2018-07-10 16:13:19 +0300
commit6114b084b3fd47e638172cbbe64c6ea9e627e66d (patch)
treec1fce7faa990d03bb3d497c34532be3e6a4eba90 /docker
parent3de258b9d0f6d4249a5e7f42eec41fcb0080bc66 (diff)
Set self.stack_id = None after delete stack
Change-Id: I09ad953776804f17f5eedf296955ced51c5ed3a4 JIRA: STORPERF-251 Signed-off-by: Ameed Ashour <Ameed.Ashour.ext@nokia.com>
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={}):