heat template fetches wrong ID's by name
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mirantis OpenStack |
Won't Fix
|
Medium
|
Peter Razumovsky | ||
9.x |
Won't Fix
|
Medium
|
Peter Razumovsky |
Bug Description
Hi,
I'm checking that our templates work also in Mitaka 9.0 and I noticed that when subnet template is using network name as a reference then it fails to find its parent network.
simplified example:
net.yaml
heat_template_
resources:
media_net:
type: OS::Neutron::Net
properties:
name: media_net
signaling_net:
type: OS::Neutron::Net
properties:
name: signaling_net
subnet.yaml
heat_template_
resources:
signaling_subnet:
type: OS::Neutron::Subnet
properties:
name: signaling_subnet
cidr: 10.0.0.0/24
network: signaling_net
gateway_ip: 10.0.0.1
allocatio
- start: 10.0.0.2
end: 10.0.0.100
media_subnet:
type: OS::Neutron::Subnet
properties:
name: media_subnet
cidr: 10.1.0.0/24
network: media_net
gateway_ip: 10.1.0.1
allocatio
- start: 10.1.0.2
end: 10.1.0.100
steps to reproduce:
heat stack-create net -f net.yaml --poll
heat stack-create subnet -f subnet.yaml --poll;openstack network list
For some reason the stacks are created fine for the first time but when you delete the stacks and create them again the failure happens.
Error msg:
| stack_status | CREATE_FAILED |
| stack_status_reason | Resource CREATE failed: NetworkNotFound
| | resources.
| | aeb7-f0692432b8bf could not be found. Neutron server |
| | returns request_ids: ['req-2b708052-
| | 4aee-8358-
Note ! the Network 76561dc7... existed on previous round (stack-create, stack-delete)
45424a2cb90ee9e
2016-07-28 10:23:40.412 97231 ERROR heat.engine.
2016-07-28 10:23:40.412 97231 ERROR heat.engine.
2016-07-28 10:23:40.412 97231 ERROR heat.engine.
2016-07-28 10:23:40.412 97231 ERROR heat.engine.
2016-07-28 10:23:40.412 97231 ERROR heat.engine.
2016-07-28 10:23:40.412 97231 ERROR heat.engine.
2016-07-28 10:23:40.412 97231 ERROR heat.engine.
2016-07-28 10:23:40.412 97231 ERROR heat.engine.
2016-07-28 10:23:40.412 97231 ERROR heat.engine.
2016-07-28 10:23:40.412 97231 ERROR heat.engine.
2016-07-28 10:23:40.412 97231 ERROR heat.engine.
2016-07-28 10:23:40.412 97231 ERROR heat.engine.
2016-07-28 10:23:40.412 97231 ERROR heat.engine.
2016-07-28 10:23:40.412 97231 ERROR heat.engine.
2016-07-28 10:23:40.412 97231 ERROR heat.engine.
Changed in mos: | |
status: | New → Confirmed |
importance: | Undecided → High |
assignee: | nobody → MOS Heat (mos-heat) |
milestone: | none → 9.1 |
tags: | added: customer-found |
tags: | added: 9.0-updates for sla1 |
tags: | removed: 9.0-updates for sla1 |
Changed in mos: | |
assignee: | MOS Heat (mos-heat) → Peter Razumovsky (prazumovsky) |
Changed in mos: | |
assignee: | Peter Razumovsky (prazumovsky) → Dmitriy (duvarenkov) |
Changed in mos: | |
importance: | High → Medium |
Changed in mos: | |
assignee: | Dmitriy (duvarenkov) → Peter Razumovsky (prazumovsky) |
It seems that the problem in turned on cache. Heat get the value for specific name from cache, instead of neutron.