Add extra logging of stack events on timeout exception
To add more information for figuring out PRODX-12931
stack events logging was added.
Closes-Issue: PRODX-12931
Change-Id: I0a7d51230c6544a85e4ec08584a731d8547b18f8
diff --git a/heat_tempest_plugin/common/test.py b/heat_tempest_plugin/common/test.py
index a3f44a0..bca5e32 100644
--- a/heat_tempest_plugin/common/test.py
+++ b/heat_tempest_plugin/common/test.py
@@ -431,6 +431,11 @@
message = ('Stack %s failed to reach %s status within '
'the required time (%s s).' %
(stack_identifier, status, build_timeout))
+ LOG.info(
+ f"{message} "
+ f"Event list:"
+ f" {self.client.events.list(stack_identifier, nested_depth=999)}"
+ )
if log_nova_servers:
self._log_nova_servers(stack_identifier)
raise exceptions.TimeoutException(message)