X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=yardstick%2Forchestrator%2Fheat.py;h=7958b1cfb55f58f4664d9882abf4f93d072c29ab;hb=41136dafb30d0c410e92f9f7a7c19eae60f224e2;hp=fd6c4f6ff15ab61d4db326df5c9fec4d9079bb8c;hpb=ffe83c920736716f0caea36dceeff7b7e910db7c;p=yardstick.git diff --git a/yardstick/orchestrator/heat.py b/yardstick/orchestrator/heat.py index fd6c4f6ff..7958b1cfb 100644 --- a/yardstick/orchestrator/heat.py +++ b/yardstick/orchestrator/heat.py @@ -564,8 +564,9 @@ name (i.e. %s).\ for status in iter(self.status, u'CREATE_COMPLETE'): log.debug("stack state %s", status) if status == u'CREATE_FAILED': - raise RuntimeError( - heat_client.stacks.get(self.uuid).stack_status_reason) + stack_status_reason = heat_client.stacks.get(self.uuid).stack_status_reason + heat_client.stacks.delete(self.uuid) + raise RuntimeError(stack_status_reason) if time.time() > time_limit: raise RuntimeError("Heat stack create timeout")