]> review.fuel-infra Code Review - openstack-build/heat-build.git/commit
Raise suitable exception when stack validation fails
authorZhang Lei (Sneeze) <sneezezhang@cienet.com.cn>
Wed, 26 Jun 2013 05:39:42 +0000 (13:39 +0800)
committerZhang Lei (Sneeze) <sneezezhang@cienet.com.cn>
Wed, 26 Jun 2013 05:41:24 +0000 (13:41 +0800)
commitf1ea0f2d9be21e1a013ed9990f0f86adabb2ecbd
treed727ccd696fbdc27c2d3d4e343e67166357d4bda
parent481f84af73e61e8d1935997643553f3c96474d40
Raise suitable exception when stack validation fails

fixed Bug#1191009

If nova returns an error looking up images during stack validation, we
return a StackValidationFailed, but we should probably catch
this and return ServerError instead, since this is really an internal
error not a validation failure.

Change-Id: Id509b2fa9f78e197cacfe44bae6c3db37cfd6179
heat/engine/parser.py
heat/engine/resources/instance.py
heat/tests/test_validate.py