get_resource fails in list
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Heat |
Fix Released
|
Medium
|
Alexander Chudnovets | ||
Havana |
Fix Released
|
Medium
|
Thomas Herve |
Bug Description
It seems that calling functions like a get_resource in lists in HOT template does not work.
When I use template like this:
mylb:
type: OS::Neutron:
dependson: server2
properties:
pool_id: { get_resource: pool }
protocol_
members: [c420bb4c-
It works perfectly, but when I use something like this:
server1:
type: OS::Nova::Server
properties:
name: server1
image: { get_param: image }
flavor: { get_param: flavor }
key_name: { get_param: key_name }
networks:
- port: { get_resource: server1_port }
mylb:
type: OS::Neutron:
dependson: server2
properties:
pool_id: { get_resource: pool }
protocol_
members: [ {get_resource: server1} ]
or
mylb:
type: OS::Neutron:
dependson: server2
properties:
pool_id: { get_resource: pool }
protocol_
members:
- { get_resource: server1 }
it does not work with the same error:
WARNING heat.engine.
And this leads to neutronclient error:
TRACE heat.engine.
It seems that HOT template parser does not handle function calls in lists.
Changed in heat: | |
status: | New → Triaged |
milestone: | none → icehouse-1 |
importance: | Undecided → Medium |
Changed in heat: | |
assignee: | nobody → Alexander Chudnovets (achudnovets) |
Changed in heat: | |
status: | Triaged → In Progress |
Changed in heat: | |
status: | Fix Committed → Fix Released |
Changed in heat: | |
milestone: | icehouse-1 → 2014.1 |
Have you tried `Ref' in this scenario?