Sometime deleting heat stack fails

Bug #1427157 reported by Nobuhiko Nagataki
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
Trunk
Fix Released
Undecided
Praneet Bachheti

Bug Description

Sometime deleting heat stack fails, because of instance IP(s) in use. Re-trying heat delete can delete it.

| stack_status_reason | Resource DELETE failed: NeutronClientException: |
| | 400-{u'NeutronError': {u'message': u'Bad network |
| | request: Cannot Delete IP Block, Instance IP(s) in |
| | use', u'type': u'BadRequest', u'detail': u''}}

root@vCPE-contrail1:~/heat# heat delete heat-vCPE-FF-135
+--------------------------------------+-------------------------+--------------------+----------------------+
| id | stack_name | stack_status | creation_time |
+--------------------------------------+-------------------------+--------------------+----------------------+
| e26d7463-d8ae-4338-b09f-7a959ff33811 | heat-vSRX-template | CREATE_COMPLETE | 2015-03-02T03:38:52Z |
| 49b9ee8e-75fc-453f-8f80-6fcedf537ef5 | heat-vCPE-FF-133 | CREATE_COMPLETE | 2015-03-02T08:24:13Z |
| 78ddaab5-a29f-46f6-b403-06fdee6d6213 | heat-vSRX-DHCP-template | CREATE_COMPLETE | 2015-03-02T09:19:54Z |
| 06b5c1cd-47a0-4fc0-8a3c-8e0b3619829f | heat-vCPE-FF-135 | DELETE_IN_PROGRESS | 2015-03-02T09:38:34Z |
+--------------------------------------+-------------------------+--------------------+----------------------+
root@vCPE-contrail1:~/heat# heat stack-list
+--------------------------------------+-------------------------+-----------------+----------------------+
| id | stack_name | stack_status | creation_time |
+--------------------------------------+-------------------------+-----------------+----------------------+
| e26d7463-d8ae-4338-b09f-7a959ff33811 | heat-vSRX-template | CREATE_COMPLETE | 2015-03-02T03:38:52Z |
| 49b9ee8e-75fc-453f-8f80-6fcedf537ef5 | heat-vCPE-FF-133 | CREATE_COMPLETE | 2015-03-02T08:24:13Z |
| 78ddaab5-a29f-46f6-b403-06fdee6d6213 | heat-vSRX-DHCP-template | CREATE_COMPLETE | 2015-03-02T09:19:54Z |
| 06b5c1cd-47a0-4fc0-8a3c-8e0b3619829f | heat-vCPE-FF-135 | DELETE_FAILED | 2015-03-02T09:38:34Z |
+--------------------------------------+-

root@vCPE-contrail1:~/heat# heat stack-show heat-vCPE-FF-133
+----------------------+-----------------------------------------------------------------------------------------------------------------------------+
| Property | Value |
+----------------------+-----------------------------------------------------------------------------------------------------------------------------+
| capabilities | [] |
| creation_time | 2015-03-02T08:24:13Z |
| description | HOT template to creates two virtual network with one |
| | subnet each. Create a service instance Creates a |
| | network policy for applying service between two VNs |
| | created before. Attach the network policy to two |
| | virtual networks |
| disable_rollback | True |
| id | 49b9ee8e-75fc-453f-8f80-6fcedf537ef5 |
| links | http://192.168.123.21:8004/v1/39d61836fd424c76a92bb684cea54ac7/stacks/heat-vCPE-FF-133/49b9ee8e-75fc-453f-8f80-6fcedf537ef5 |
| notification_topics | [] |
| parameters | { |
| | "policy_name": "heat_pol_vCPE_FF", |
| | "private_net_1_forward_mode": "l2_l3", |
| | "private_template": "default-domain:heat-vSRX-template", |
| | "private_net_1_gateway": "100.0.100.1", |
| | "private_net_1_rt": "[u'64512:100']", |
| | "private_net_1_name": "heat-left-vn1", |
| | "private_net_2_name": "heat-right-vn3", |
| | "private_net_2_pool_end": "100.0.200.254", |
| | "end_src_ports": "-1", |
| | "private_net_1_pool_start": "100.0.100.2", |
| | "private_net_1_cidr": "100.0.100.0/24", |
| | "direction": "<>", |
| | "end_dst_ports": "-1", |
| | "OS::stack_name": "heat-vCPE-FF-133", |
| | "private_net_2_pool_start": "100.0.200.2", |
| | "private_net_1_pool_end": "100.0.100.254", |
| | "private_net_2_cidr": "100.0.200.0/24", |
| | "start_src_ports": "-1", |
| | "OS::stack_id": "49b9ee8e-75fc-453f-8f80-6fcedf537ef5", |
| | "private_instance_name": "heat-svc-vCPE-FF", |
| | "private_net_2_gateway": "100.0.200.1", |
| | "private_net_2_rt": "[u'64512:200']", |
| | "start_dst_ports": "-1", |
| | "private_net_2_forward_mode": "l2_l3" |
| | } |
| stack_name | heat-vCPE-FF-133 |
| stack_status | DELETE_FAILED |
| stack_status_reason | Resource DELETE failed: NeutronClientException: |
| | 400-{u'NeutronError': {u'message': u'Bad network |
| | request: Cannot Delete IP Block, Instance IP(s) in |
| | use', u'type': u'BadRequest', u'detail': u''}} |
| template_description | HOT template to creates two virtual network with one |
| | subnet each. Create a service instance Creates a |
| | network policy for applying service between two VNs |
| | created before. Attach the network policy to two |
| | virtual networks |
| timeout_mins | 60 |
| updated_time | None |
+----------------------+-----------------------------------------------------------------------------------------------------------------------------+

Tags: heat-support
information type: Proprietary → Public
no longer affects: ubuntu
Changed in juniperopenstack:
assignee: nobody → Praneet Bachheti (praneetb)
Revision history for this message
Praneet Bachheti (praneetb) wrote :

Reviewed: https://review.opencontrail.org/14097
Committed: http://github.org/Juniper/contrail-heat/commit/14a7bfa2868147adab295c68d942498251b2b7cc
Submitter: Zuul
Branch: master

commit 14a7bfa2868147adab295c68d942498251b2b7cc
Author: Praneet Bachheti <email address hidden>
Date: Mon Sep 28 16:20:24 2015 -0700

heat stack-delete issue for service-instance:
upon deleting service-instance delete the service
vm and wait for it to disappear from Nova.

Change-Id: Ic774512264bca36c38f0c0c84f81f5475ecf390c
Closes-bug: 1464059

Changed in juniperopenstack:
status: New → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.