From: Steve Baker Date: Tue, 2 Apr 2013 23:41:13 +0000 (+1300) Subject: Log tracepath for stack validate exceptions. X-Git-Tag: 2014.1~735^2 X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=4aac0292266d711ac17bcc486c1e0fa2764c35cc;p=openstack-build%2Fheat-build.git Log tracepath for stack validate exceptions. Calling validate on each resource exercises a lot of code, and will at times cause non-validation related exceptions. This change just logs the tracepath for any exception that happens during validate. This may be a contender for backporting to milestone-proposed, since diagnosing some problems on the grizzly branch will be difficult without it Change-Id: Ib010a8ec826552e2817da3a22c633dcac6c3ffc6 Fixes: bug #1163586 --- diff --git a/heat/engine/parser.py b/heat/engine/parser.py index 0f383af6..203c5bc8 100644 --- a/heat/engine/parser.py +++ b/heat/engine/parser.py @@ -241,6 +241,7 @@ class Stack(object): try: result = res.validate() except Exception as ex: + logger.exception(ex) raise StackValidationFailed(message=str(ex)) if result: raise StackValidationFailed(message=result)