]> review.fuel-infra Code Review - openstack-build/heat-build.git/commitdiff
Log tracepath for stack validate exceptions.
authorSteve Baker <sbaker@redhat.com>
Tue, 2 Apr 2013 23:41:13 +0000 (12:41 +1300)
committerSteve Baker <sbaker@redhat.com>
Tue, 2 Apr 2013 23:41:13 +0000 (12:41 +1300)
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
heat/engine/parser.py

index 0f383af63910663506ad5f4fa8a4b3adcd9cf414..203c5bc8649164cd822c51df9aca34fdfee73fd5 100644 (file)
@@ -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)