Heat gets wrong id during property translation
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Heat |
In Progress
|
High
|
Unassigned |
Bug Description
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
heat stack-create subnet -f subnet.yaml
heat stack-delete subnet
heat stack-delete net
heat stack-create net -f net.yaml
heat stack-create subnet -f subnet.yaml <--- fail here:
TRACE heat.engine.
TRACE heat.engine.
TRACE heat.engine.
TRACE heat.engine.
TRACE heat.engine.
TRACE heat.engine.
TRACE heat.engine.
TRACE heat.engine.
TRACE heat.engine.
TRACE heat.engine.
TRACE heat.engine.
TRACE heat.engine.
TRACE heat.engine.
TRACE heat.engine.
TRACE heat.engine.
TRACE heat.engine.
2016-08-04 15:51:12.691 TRACE heat.engine.
2016-08-04 15:51:12.691 TRACE heat.engine.
2016-08-04 15:51:12.691 TRACE heat.engine.
2016-08-04 15:51:12.691 TRACE heat.engine.
2016-08-04 15:51:12.691 TRACE heat.engine.
I think the problem is in cache for resource finders.
Changed in heat: | |
assignee: | nobody → Oleksii Chuprykov (ochuprykov) |
Changed in heat: | |
milestone: | none → ocata-1 |
importance: | Undecided → Medium |
Changed in heat: | |
milestone: | ocata-1 → ocata-2 |
Changed in heat: | |
milestone: | ocata-2 → next |
Changed in heat: | |
assignee: | Dmitriy (duvarenkov) → nobody |
importance: | Medium → High |
Fix proposed to branch: master /review. openstack. org/362406
Review: https:/