ResourceGroup attributes references not validated
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Heat |
Confirmed
|
Undecided
|
kumari paluru |
Bug Description
When using the "attributes" interface of ResourceGroup, no validation of the attributes schema (or outputs in the case of a nested stack) is performed, so we fail slow in the event that there's an error in the template.
For example:
heat_template_
resources:
Controller:
type: OS::Heat:
properties:
count: 1
resource_def:
type: OS::Heat:
ANested:
type: nested.yaml
properties:
random_
Where nested.yaml is (dummy empty template just for the reproducer):
heat_template_
parameters:
random_values:
type: json
The typo "valuex" isn't caught during validation, so the stack create starts and we go to CREATE_FAILED, not a big deal in this case, but I discovered this working on TripleO templates where such a fail-slow situation is much less convenient :)
Changed in heat: | |
assignee: | nobody → Rico Lin (rico-lin) |
Changed in heat: | |
status: | New → Confirmed |
Changed in heat: | |
assignee: | Rico Lin (rico-lin) → nobody |
Changed in heat: | |
milestone: | none → no-priority-tag-bugs |
This may be hard to fix since some resources have a dynamic attributes schema (such as deployment resources, where arbitrary outputs become attributes). There is a danger of over-validating templates which used to work just fine.