resource creation failes with type error if derived from a parameter
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Heat |
Fix Released
|
Medium
|
Peter Razumovsky |
Bug Description
I have a testing environment with several interchangeable and modular templates.
The 'parent' template calls other templates by using resource type: template.yaml.
I would like to be able to use different templates with the same parent for different test scenarios and so I have tried to do this:
parameters:
networking:
type: string
default: simple.yaml
server:
.
.
.
etc'
resources:
network:
type: {get_param: networking} <-- sometimes I'd like to use a different yaml without having to change the template manually...
This is probably not working, but the error in this case is misleading:
# heat stack-show test
.
.
.
| stack_status_reason | Resource CREATE failed: TypeError: Resource volume type
| | typemust be string
If this should not work on the first place, then this is a validation issue that should be caught earlier on.
Tested on 0.2.12
Changed in heat: | |
assignee: | nobody → Sergey Kraynev (skraynev) |
Changed in heat: | |
assignee: | Sergey Kraynev (skraynev) → nobody |
assignee: | nobody → Razumovsky Peter (prazumovsky) |
Changed in heat: | |
status: | In Progress → Fix Committed |
Changed in heat: | |
milestone: | none → liberty-1 |
status: | Fix Committed → Fix Released |
Changed in heat: | |
milestone: | liberty-1 → 5.0.0 |
> type: {get_param: networking}
This is not expected to work, you should use the environment resource_registry instead.
We should fail fast though, at validation rather than create time.