From c9c6e12535ebc5ee5d0fcbcbb4c43aa0b12f8b18 Mon Sep 17 00:00:00 2001 From: Eduardo Olivares Date: Thu, 18 Feb 2021 18:32:15 +0100 Subject: [PATCH] Add debug logs to determine when a heat stack is deleted/created Change-Id: Ie1592a9d45764adb64c269bb9f1eed83101f1f2e --- tobiko/openstack/heat/_stack.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tobiko/openstack/heat/_stack.py b/tobiko/openstack/heat/_stack.py index 4d611585e..945a77e9b 100644 --- a/tobiko/openstack/heat/_stack.py +++ b/tobiko/openstack/heat/_stack.py @@ -247,6 +247,7 @@ class HeatStackFixture(tobiko.SharedFixture): self.stack = stack = self.client.stacks.get( self.stack_name, resolve_outputs=resolve_outputs) except exc.HTTPNotFound: + LOG.debug('Stack %s not found' % self.stack_name) self.stack = stack = None finally: self._outputs = self._resources = None @@ -285,6 +286,10 @@ class HeatStackFixture(tobiko.SharedFixture): time.sleep(self.wait_interval) 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 stack is None: if DELETE_COMPLETE not in expected_status: