add_dependencies does not work for floating ip resource
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Heat |
Fix Released
|
High
|
Sergey Kraynev | ||
Juno |
Fix Released
|
High
|
Sergey Kraynev |
Bug Description
1. create stack with template:
heat_template_
parameters:
public_net:
type: string
default: public
cidr:
type: string
default: 11.11.11.0/24
resources:
router:
type: OS::Neutron::Router
properties:
external_
network: {get_param: public_net}
router_interface:
type: OS::Neutron:
properties:
router_id: { get_resource: router }
subnet_id: { get_resource: private_subnet }
private_net:
type: OS::Neutron::Net
private_subnet:
type: OS::Neutron::Subnet
properties:
network: { get_resource: private_net }
cidr: {get_param: cidr}
s2_port:
type: OS::Neutron::Port
properties:
network: {get_resource: private_net}
fixed_ips:
- subnet_id: { get_resource: private_subnet }
s2_floating_ip:
type: OS::Neutron:
properties:
floating_
port_id: { get_resource: s2_port }
In this stack resource floating ip should have dependency from router_interface.
But it does not work and you MAY get error during deletion:
2. [skr@ubuntu ~]$ heat event-list demos
+------
| resource_name | id | resource_
+------
| router_interface | 1392b71c-
| router_interface | a2bb0785-
| s2_floating_ip | c7c3d494-
| s2_floating_ip | 32932820-
| router_interface | a61016cb-
| s2_port | eb7cb453-
| router_interface | 2055d04e-
| s2_port | 49fc1f88-
| private_subnet | 97eae964-
| private_subnet | 0a7804f3-
| private_net | 4d67c463-
| router | 281dc4ea-
| private_net | 1957b3a1-
| router | e6f923f2-
+------
3. I notice, that it MAY be reproduced with not 100 % chance.
The cause of this, that resulted graph of dependencies has two resources which may be used as first in chain for deletion (RouterInterface and FloatingIP).
When deletion starts from FIP all is ok, otherwise you will get error.
tags: | added: juno-backport-potential |
Changed in heat: | |
status: | Fix Committed → Fix Released |
Changed in heat: | |
milestone: | kilo-1 → 2015.1.0 |
tags: |
added: in-stable-juno removed: juno-backport-potential |
Fix proposed to branch: master /review. openstack. org/130176
Review: https:/