Can't retrieve OS::Heat::WaitCondition data by index
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Heat |
Fix Released
|
Medium
|
Ishant Tyagi |
Bug Description
Hi,
According to http://
value: { get_attr: [wait_condition, data, '1'] }
But that doesn't seem to work on heat master.
Here's my stack to reproduce it:
heat_template_
resources:
wait_condition:
type: OS::Heat:
properties:
handle: {get_resource: wait_handle}
timeout: 60
wait_handle:
type: OS::Heat:
supervisor:
type: OS::Nova::Server
properties:
image: "Ubuntu 14.04 amd64"
flavor: m1.small
key_name: jordan
name: supervisor
user_
user_data:
params:
template: |
set -x
outputs:
nodes_ip:
description: Data1
value: { get_attr: ['wait_condition', 'data'] }
nodes_ip2:
description: Data2
value: { get_attr: ['wait_condition', 'data', "1"] }
nodes_ip3:
description: Data3
value: { get_attr: ['wait_condition', 'data', 1] }
nodes_ip4:
description: Data4
value: { get_attr: ['wait_condition', data, "1"] }
nodes_ip5:
description: Data5
value: { get_attr: ['wait_condition', data, 1] }
nodes_ip6:
description: Data6
value: { get_attr: [wait_condition, data, 1] }
nodes_ip7:
description: Data7
value: { get_attr: [wait_condition, data, "1"] }
Then take a look at the output of the stack.
I might be doing something wrong. I am not sure how to properly use WaitCondition but I am pretty sure there's a bug here.
Thanks !
Jordan
Changed in heat: | |
assignee: | nobody → Ishant Tyagi (ishant-tyagi) |
Changed in heat: | |
status: | New → Triaged |
Changed in heat: | |
milestone: | kilo-rc1 → next |
Changed in heat: | |
status: | Fix Committed → Won't Fix |
status: | Won't Fix → Fix Released |
Output is
| outputs | [ |
| | { |
| | "output_value": "\"", |
| | "description": "Data6", |
| | "output_key": "nodes_ip6" |
| | }, |
| | { |
| | "output_value": null, |
| | "description": "Data7", |
| | "output_key": "nodes_ip7" |
| | }, |
| | { |
| | "output_value": null, |
| | "description": "Data4", |
| | "output_key": "nodes_ip4" |
| | }, |
| | { |
| | "output_value": "\"", |
| | "description": "Data5", |
| | "output_key": "nodes_ip5" |
| | }, |
| | { ...