Check for physical_resource_id before getting deployments
Heat does non-strict validation of nested stack resources.
Most constraints are not enforced for nested stack resources
It's possible to set {Role}DeploymentActions as something like
[''] and it would not fail in validation. This would result in
a deployment resource with no physical_resource_id. The existing
check[1] for config-download would not be sufficient for some
cases as it can be another nested stack (we alias
both OS::Tripleo::SoftwareDeployment and
OS::Heat::StructuredDeployment).
Reviewed: https:/ /review. openstack. org/632023 /git.openstack. org/cgit/ openstack/ tripleo- common/ commit/ ?id=54c448f6835 4d48df49ca83a71 932938e9c84810
Committed: https:/
Submitter: Zuul
Branch: master
commit 54c448f68354d48 df49ca83a719329 38e9c84810
Author: Rabi Mishra <email address hidden>
Date: Fri Jan 18 22:21:03 2019 +0530
Check for physical_ resource_ id before getting deployments
Heat does non-strict validation of nested stack resources. tActions as something like resource_ id. The existing :SoftwareDeploy ment and :Heat:: StructuredDeplo yment).
Most constraints are not enforced for nested stack resources
It's possible to set {Role}Deploymen
[''] and it would not fail in validation. This would result in
a deployment resource with no physical_
check[1] for config-download would not be sufficient for some
cases as it can be another nested stack (we alias
both OS::Tripleo:
OS:
[1] attributes[ 'value' ].get(' deployment' ) == \
'TripleOSoftw areDeployment'
deployment.
This adds a new check not to try and download heat deployments with resource_ id.
no physical_
Change-Id: I234e629cc5377c da8d5d01bfe4416 ad967cdc067
Closes-Bug: #1812604