Merge "Add debug logs to determine when a heat stack is deleted/created"

This commit is contained in:
Zuul 2021-02-25 10:48:01 +00:00 committed by Gerrit Code Review
commit 18bd58cbd3
1 changed files with 5 additions and 0 deletions

View File

@ -247,6 +247,7 @@ class HeatStackFixture(tobiko.SharedFixture):
self.stack = stack = self.client.stacks.get( self.stack = stack = self.client.stacks.get(
self.stack_name, resolve_outputs=resolve_outputs) self.stack_name, resolve_outputs=resolve_outputs)
except exc.HTTPNotFound: except exc.HTTPNotFound:
LOG.debug('Stack %s not found' % self.stack_name)
self.stack = stack = None self.stack = stack = None
finally: finally:
self._outputs = self._resources = None self._outputs = self._resources = None
@ -285,6 +286,10 @@ class HeatStackFixture(tobiko.SharedFixture):
time.sleep(self.wait_interval) time.sleep(self.wait_interval)
stack = self.get_stack() stack = self.get_stack()
if stack:
LOG.debug('%s reached one of the expected stack status: %s' %
(self.stack_name, stack.stack_status))
if check: if check:
if stack is None: if stack is None:
if DELETE_COMPLETE not in expected_status: if DELETE_COMPLETE not in expected_status: