From b2d74a8a44216de54acda957ff5245a92fbbdcba Mon Sep 17 00:00:00 2001 From: Sergey Lukjanov Date: Fri, 21 Aug 2015 17:00:45 +0300 Subject: [PATCH] Print Heat stack before create/update to debug logs Change-Id: I72e3366f9933f4a8d4caac5cd11b20dcffa664ee --- sahara/service/heat/templates.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sahara/service/heat/templates.py b/sahara/service/heat/templates.py index e1cf7a6a..4ebeb151 100644 --- a/sahara/service/heat/templates.py +++ b/sahara/service/heat/templates.py @@ -127,9 +127,13 @@ class ClusterStack(object): 'files': self.files} if not update_existing: + LOG.debug("Creating Heat stack with args: {args}" + .format(args=kwargs)) b.execute_with_retries(heat.stacks.create, **kwargs) else: stack = h.get_stack(self.cluster.name) + LOG.debug("Updating Heat stack {stack} with args: " + "{args}".format(stack=stack, args=kwargs)) b.execute_with_retries(stack.update, **kwargs) self.heat_stack = h.get_stack(self.cluster.name)