heat stack-delete fails , when the stack event tries to delete the subnet
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Juniper Openstack | Status tracked in Trunk | |||||
R3.0 |
New
|
High
|
Praneet Bachheti | |||
Trunk |
New
|
High
|
Praneet Bachheti |
Bug Description
created loadbalancer using heat template, and when deleting the same stack , it fails.
event-list shows that the delete fails while deleting the subnet with the error saying that IP in use..it seems that subnet delete started before the ports delete is completed.
As a workaround, do heat stack-delete again.
root@b4s342:
+------
| id | stack_name | stack_status | creation_time | updated_time |
+------
| e034aaa7-
| dfcf652a-
+------
root@b4s342:
+------
| Property | Value |
+------
| capabilities | [] |
| creation_time | 2016-05-09T19:23:12 |
| description | HOT template to create a Loadbalancer: |
| disable_rollback | True |
| id | dfcf652a-
| links | http://
| notification_topics | [] |
| parameters | { |
| | "OS::project_id": "3e591fe90a174c
| | "loadbalancer_
| | "loadbalancer_
| | "loadbalancer_
| | "list_name": "HTTP_LIST", |
| | "loadbalancer_
| | "loadbalancer_
| | "loadbalancer_
| | "vn_1_cidr": "3.3.3.0/24", |
| | "loadbalancer_
| | "pool_name": "HTTP_POOL", |
| | "OS::stack_name": "LB_TEST", |
| | "loadbalancer_
| | "loadbalancer_
| | "loadbalancer_
| | "loadbalancer_
| | "name": "lb_test", |
| | "vn_1_name": "vn1", |
| | "vn_1_fq_name": "default-
| | "OS::stack_id": "dfcf652a-
| | "mem1_name": "mem1", |
| | "loadbalancer_
| | } |
| parent | None |
| stack_name | LB_TEST |
| stack_owner | None |
| stack_status | DELETE_FAILED |
| stack_status_reason | Resource DELETE failed: BadRequest: |
| | resources.
| | Delete IP Block, Instance IP(s) in use |
| stack_user_
| tags | None |
| template_
| timeout_mins | None |
| updated_time | None |
+------
root@b4s342:
+------
| resource_name | id | resource_
+------
| LB_TEST | c1f026c0-
| net1 | 8b577b1b-
| net1 | e6da232e-
| net1-subnet1 | 01497239-
| net1-subnet1 | 6f9f698e-
| host1_port0 | 5e388492-
| vip_port0 | bf4c3e2a-
| host1_port0 | 0ad79a82-
| vip_port0 | 3550ffec-
| host1 | 78203794-
| template_
| template_
| template_
| template_
| template_
| template_
| host1 | 5898410f-
| template_
| template_
| LB_TEST | 9af199f3-
| LB_TEST | 4505a36c-
| template_
| template_
| template_
| host1 | 1581c5a2-
| template_
| template_
| template_
| host1 | e3421a0e-
| host1_port0 | a357be8c-
| template_
| host1_port0 | 1fcf8589-
| template_
| vip_port0 | 9812b085-
| vip_port0 | 269dccac-
| net1-subnet1 | 13d1a096-
| net1-subnet1 | 962816f4-
| LB_TEST | 306725f0-
+------
root@b4s342:
+------
| id | stack_name | stack_status | creation_time | updated_time |
+------
| e034aaa7-
| dfcf652a-
+------
root@b4s342:
+------
| id | stack_name | stack_status | creation_time | updated_time |
+------
| e034aaa7-
+------
root@b4s342:
description: 'HOT template to create a Loadbalancer:
'
heat_template_
outputs:
subnet_details:
description: Subnet resource
value: {get_resource: net1-subnet1}
parameters:
list_name: {description: name for the LoadbalancerLis
loadbalancer_
Loadbalan
loadbalancer_
for the LoadbalancerLis
loadbalancer_
type: string}
loadbalancer_
the LoadbalancerLis
loadbalancer_
type: boolean}
loadbalancer_
Loadbalan
loadbalancer_
type: number}
loadbalancer_
type: boolean}
loadbalancer_
for the LoadbalancerPool, type: string}
loadbalancer_
type: string}
loadbalancer_
type: boolean}
loadbalancer_
type: string}
mem1_name: {description: name for the LoadbalancerMember, type: string}
name: {description: name for the Loadbalancer, type: string}
pool_name: {description: name for the LoadbalancerPool, type: string}
vn_1_cidr: {description: Web tier network block (CIDR notation), type: string}
vn_1_fq_name: {description: Web tier network name, type: string}
vn_1_name: {description: Web tier network name, type: string}
resources:
host1:
properties:
flavor: m1.medium
image: ubuntu
name: host1
networks:
- port: {get_resource: host1_port0}
type: OS::Nova::Server
host1_port0:
properties:
network_id: {get_resource: net1}
type: OS::Neutron::Port
net1:
properties:
name: {get_param: vn_1_name}
network_
- network_
type: OS::ContrailV2:
net1-subnet1:
properties:
cidr: {get_param: vn_1_cidr}
enable_dhcp: true
name: {get_resource: net1}
network_id: {get_resource: net1}
type: OS::Neutron::Subnet
template_
properties:
loadbalan
get_attr: [vip_port0, fixed_ips, 0, ip_address]
name: {get_param: name}
virtual_
- {get_resource: vip_port0}
type: OS::ContrailV2:
template_
properties:
loadbalan
loadbalan
- {get_resource: template_
name: {get_param: list_name}
type: OS::ContrailV2:
template_
properties:
loadbalan
get_attr: [host1, first_address]
loadbalan
name: {get_param: mem1_name}
type: OS::ContrailV2:
template_
properties:
loadbalan
- {get_resource: template_
loadbalan
loadbalan
name: {get_param: pool_name}
type: OS::ContrailV2:
vip_port0:
properties:
network_id: {get_resource: net1}
type: OS::Neutron::Port
summary: |
heat stack-delete fails , when the stack event tries to delete the - subnet before the ports delete complete + subnet |
Changed in juniperopenstack: | |
assignee: | nobody → Praneet Bachheti (praneetb) |
tags: | added: lbaas |
information type: | Proprietary → Public |