fail to get nested output from OS::Heat::ResourceGroup resources
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Heat |
Fix Released
|
Medium
|
Rabi Mishra | ||
Pike |
Fix Committed
|
Medium
|
Rabi Mishra | ||
Queens |
Fix Released
|
Medium
|
Rabi Mishra |
Bug Description
heat version: 9.0.0
template:
heat_template_
description: test template
parameters:
image_name:
type: string
constraints:
- custom_constraint: glance.image
flavor_name:
type: string
constraints:
- custom_constraint: nova.flavor
resources:
test_net:
type: OS::Neutron::Net
test_subnet:
type: OS::Neutron::Subnet
properties:
network: { get_resource: test_net }
ip_version: 4
cidr: "192.168.1.0/24"
gateway_ip: null
test_server:
type: OS::Heat:
properties:
count: 1
resource_def:
type: OS::Nova::Server
properties:
image: { get_param: image_name }
flavor: { get_param: flavor_name }
networks:
- network: { get_resource: test_net }
outputs:
test:
value:
get_attr:
- test_server
- addresses
- get_resource: test_net
- 0
- addr
try to create stack and get:
ERROR: TypeError: : resources.
on heat 8.0.4 template works fine and outputs return array of addr
heat engine log:
2017-09-26 12:53:04.201 3732 DEBUG heat.engine.
2017-09-26 12:53:04.203 3732 INFO heat.engine.
2017-09-26 12:53:04.204 3732 INFO heat.engine.
2017-09-26 12:53:04.205 3732 INFO heat.engine.stack [req-a9a19cf8-
2017-09-26 12:53:04.205 3732 ERROR heat.engine.stack Traceback (most recent call last):
2017-09-26 12:53:04.205 3732 ERROR heat.engine.stack File "/usr/lib/
2017-09-26 12:53:04.205 3732 ERROR heat.engine.stack result = res.validate()
2017-09-26 12:53:04.205 3732 ERROR heat.engine.stack File "/usr/lib/
2017-09-26 12:53:04.205 3732 ERROR heat.engine.stack self.validate_
2017-09-26 12:53:04.205 3732 ERROR heat.engine.stack File "/usr/lib/
2017-09-26 12:53:04.205 3732 ERROR heat.engine.stack include_all=True)
2017-09-26 12:53:04.205 3732 ERROR heat.engine.stack File "/usr/lib/
2017-09-26 12:53:04.205 3732 ERROR heat.engine.stack get_attr):
2017-09-26 12:53:04.205 3732 ERROR heat.engine.stack File "/usr/lib/
2017-09-26 12:53:04.205 3732 ERROR heat.engine.stack output_name = ', '.join(attr)
2017-09-26 12:53:04.205 3732 ERROR heat.engine.stack TypeError: sequence item 1: expected string or Unicode, NoneType found
2017-09-26 12:53:04.205 3732 ERROR heat.engine.stack
Changed in heat: | |
milestone: | none → queens-3 |
tags: | added: pike-backport-potential |
tags: | removed: pike-backport-potential |
I think this is bug most probably introduced by I61d8e5deff45a6 48657ba685e033a 00a492412f2. For nested stack validation we may not need to check for referenced_attrs (as resolving them may give us None).