diff options
author | user <user@TRAFCLASS-PACKET1.fuel.local> | 2016-03-15 08:16:39 -0400 |
---|---|---|
committer | Jörgen Karlsson <jorgen.w.karlsson@ericsson.com> | 2016-03-22 14:07:17 +0000 |
commit | 4d388368bed7ee6febd1da0a69257674905be758 (patch) | |
tree | 9354f6ede7a039dfd745c2ef6bffd3220c4b0b8e /yardstick/vTC/apexlake/experimental_framework/deployment_unit.py | |
parent | f90f8ca7fc28589cc2e741ebd015b4b971e3180b (diff) |
Improvement of debug messages to the user
Change-Id: I09fa9cd865021701f53e0df2a2cd79d60ea04d6c
Signed-off-by: user <user@TRAFCLASS-PACKET1.fuel.local>
(cherry picked from commit 6a4bd2c4bdce07b945ab61e1151e67da99be7489)
Diffstat (limited to 'yardstick/vTC/apexlake/experimental_framework/deployment_unit.py')
-rw-r--r-- | yardstick/vTC/apexlake/experimental_framework/deployment_unit.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/yardstick/vTC/apexlake/experimental_framework/deployment_unit.py b/yardstick/vTC/apexlake/experimental_framework/deployment_unit.py index 596ee7a96..22fec1392 100644 --- a/yardstick/vTC/apexlake/experimental_framework/deployment_unit.py +++ b/yardstick/vTC/apexlake/experimental_framework/deployment_unit.py @@ -50,7 +50,8 @@ class DeploymentUnit: time.sleep(5) status = self.heat_manager.check_stack_status(stack_name) return True - except: + except Exception as e: + common.LOG.debug(e.message) return False def destroy_all_deployed_stacks(self): @@ -80,14 +81,16 @@ class DeploymentUnit: self.heat_manager.create_stack(template_file, stack_name, parameters) deployed = True - except: + except Exception as e: + common.LOG.debug(e.message) deployed = False if not deployed and 'COMPLETE' in \ self.heat_manager.check_stack_status(stack_name): try: self.destroy_heat_template(stack_name) - except: + except Exception as e: + common.LOG.debug(e.message) pass status = self.heat_manager.check_stack_status(stack_name) |