template-validate doesn't validate the same as stack-create
Bug #1467573 reported by
Steven Hardy
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Heat |
Fix Released
|
Medium
|
Steven Hardy |
Bug Description
https:/
-bash-4.3$ cat tmp.yaml
heat_template_
resources:
Foo:
type: validate_me.yaml
-bash-4.3$ cat validate_me.yaml
heat_template_
resources:
Foo:
-bash-4.3$ heat template-validate -f tmp.yaml
{
"Description": "No description",
"Parameters": {}
}
-bash-4.3$ echo $?
0
-bash-4.3$ heat stack-create foo -f tmp.yaml
ERROR: Failed to validate : : resources.Foo: : Each resource must contain a type key.
Changed in heat: | |
assignee: | nobody → Steven Hardy (shardy) |
Changed in heat: | |
importance: | Undecided → Medium |
status: | New → Triaged |
Changed in heat: | |
milestone: | none → liberty-3 |
Changed in heat: | |
milestone: | liberty-3 → liberty-rc1 |
Changed in heat: | |
status: | Fix Committed → Fix Released |
Changed in heat: | |
milestone: | liberty-rc1 → 5.0.0 |
To post a comment you must log in.
Actually it's not just nested stacks, there's a bunch of stuff we do in Stack.validate(), for example validation of outputs, which we don't do in the template-validate path - so we should probably just align these two code paths as far as is practical.