Steps for verify: 1. Create configs repro.yaml
heat_template_version: 2015-04-30 resources: net: type: OS::Neutron::Net properties: name: repro grp: type: OS::Heat::ResourceGroup properties: count: 1 resource_def: type: repro-nested.yaml properties: private_network_id: { get_resource: net }
repro-nested.yaml
heat_template_version: 2015-04-30 parameters: private_network_id: type: string resources: unit: type: OS::Heat::TestResource properties: value: { get_param: private_network_id }
openstack stack create repro -t repro.yaml openstack stack update repro -t repro.yaml --dry-run --show-nested
2. Run verify heat stack-update repro --template-file repro.yaml --dry-run --show-nested +-----------+---------------+--------------------------------+-----------------------------------------------------------+ | state | resource_name | resource_type | resource_identity | +-----------+---------------+--------------------------------+-----------------------------------------------------------+ | unchanged | net | OS::Neutron::Net | { | | | | | "stack_name": "repro", | | | | | "stack_id": "4442b7fe-bb2b-4766-a6dd-4947603a213b", | | | | | "tenant": "6fe6cd742c384eafa3f853dc7ecb995b", | | | | | "path": "/resources/net" | | | | | } | | updated | grp | OS::Heat::ResourceGroup | { | | | | | "stack_name": "repro", | | | | | "stack_id": "4442b7fe-bb2b-4766-a6dd-4947603a213b", | | | | | "tenant": "6fe6cd742c384eafa3f853dc7ecb995b", | | | | | "path": "/resources/grp" | | | | | } | | updated | 0 | file:///root/repro-nested.yaml | { | | | | | "stack_name": "repro-grp-zpvljfhha3zg", | | | | | "stack_id": "e233c0dc-e355-4720-95f0-65ae68b30502", | | | | | "tenant": "6fe6cd742c384eafa3f853dc7ecb995b", | | | | | "path": "/resources/0" | | | | | } | | updated | unit | OS::Heat::TestResource | { | | | | | "stack_name": "repro-grp-zpvljfhha3zg-0-3u5ylabj6wna", | | | | | "stack_id": "cdf97e3f-fc17-4e17-9501-79ef3188af1c", | | | | | "tenant": "6fe6cd742c384eafa3f853dc7ecb995b", | | | | | "path": "/resources/unit" | | | | | } | +-----------+---------------+--------------------------------+-----------------------------------------------------------+
Steps for verify:
1. Create configs
repro.yaml
heat_template_ version: 2015-04-30 :ResourceGroup
private_ network_ id: { get_resource: net }
resources:
net:
type: OS::Neutron::Net
properties:
name: repro
grp:
type: OS::Heat:
properties:
count: 1
resource_def:
type: repro-nested.yaml
properties:
repro-nested.yaml
heat_template_ version: 2015-04-30 network_ id: :TestResource
parameters:
private_
type: string
resources:
unit:
type: OS::Heat:
properties:
value: { get_param: private_network_id }
openstack stack create repro -t repro.yaml
openstack stack update repro -t repro.yaml --dry-run --show-nested
2. Run verify -----+- ------- ------- +------ ------- ------- ------- -----+- ------- ------- ------- ------- ------- ------- ------- ------- --+ -----+- ------- ------- +------ ------- ------- ------- -----+- ------- ------- ------- ------- ------- ------- ------- ------- --+ bb2b-4766- a6dd-4947603a21 3b", | afa3f853dc7ecb9 95b", | :ResourceGroup | { | bb2b-4766- a6dd-4947603a21 3b", | afa3f853dc7ecb9 95b", | /root/repro- nested. yaml | { | grp-zpvljfhha3z g", | e355-4720- 95f0-65ae68b305 02", | afa3f853dc7ecb9 95b", | :TestResource | { | grp-zpvljfhha3z g-0-3u5ylabj6wn a", | fc17-4e17- 9501-79ef3188af 1c", | afa3f853dc7ecb9 95b", | -----+- ------- ------- +------ ------- ------- ------- -----+- ------- ------- ------- ------- ------- ------- ------- ------- --+
heat stack-update repro --template-file repro.yaml --dry-run --show-nested
+------
| state | resource_name | resource_type | resource_identity |
+------
| unchanged | net | OS::Neutron::Net | { |
| | | | "stack_name": "repro", |
| | | | "stack_id": "4442b7fe-
| | | | "tenant": "6fe6cd742c384e
| | | | "path": "/resources/net" |
| | | | } |
| updated | grp | OS::Heat:
| | | | "stack_name": "repro", |
| | | | "stack_id": "4442b7fe-
| | | | "tenant": "6fe6cd742c384e
| | | | "path": "/resources/grp" |
| | | | } |
| updated | 0 | file://
| | | | "stack_name": "repro-
| | | | "stack_id": "e233c0dc-
| | | | "tenant": "6fe6cd742c384e
| | | | "path": "/resources/0" |
| | | | } |
| updated | unit | OS::Heat:
| | | | "stack_name": "repro-
| | | | "stack_id": "cdf97e3f-
| | | | "tenant": "6fe6cd742c384e
| | | | "path": "/resources/unit" |
| | | | } |
+------