heat stack-delete failures - Neutron exception

Bug #1524079 reported by Deepak Jeyaraman
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
R2.20
Fix Committed
Medium
Praneet Bachheti
R2.20.x
Fix Committed
Medium
Praneet Bachheti
R2.21.x
Fix Committed
Medium
Praneet Bachheti
Trunk
Fix Committed
Medium
Praneet Bachheti

Bug Description

Praneet debugged the following issue on 2.21-14

heat stack-deletes were failing:

root cause:

Deepak,
  The latest stack-delete points to a bug. A subnet get happened after the subnet delete. We should handle it as “Subnet not found” instead of just bailing out. Here is the diff. Please file a bug and we will put the fix in.

>> root@ccra-15:~# heat stack-list
>> +--------------------------------------+------------------------------------------+---------------+----------------------+
>> | id | stack_name | stack_status | creation_time |
>> +--------------------------------------+------------------------------------------+---------------+----------------------+
>> | 28be9b35-dc55-4e34-a193-30b5bde5f184 | jsm-575cec1a-7282-4dda-97d1-41295d93fd78 | DELETE_FAILED | 2015-12-08T02:43:33Z |
>> | abf6ba58-a33c-4c44-ad4d-ab613ca8f0b1 | jsm-0e6579b6-ca86-45ec-bd74-22c823b229b6 | DELETE_FAILED | 2015-12-08T02:48:50Z |
>> | 27e2d7be-7cd9-4937-8adb-b8418e7b6225 | jsm-a89e1cd8-69f1-4098-849d-4142d37b43be | DELETE_FAILED | 2015-12-08T02:48:56Z |
>> | c45f1fc5-8283-48fa-9e63-987f34b3513a | jsm-4b8ef044-0a59-45c8-885d-fe3b41fa0970 | DELETE_FAILED | 2015-12-08T03:02:16Z |
>> | fa42cebc-ef7c-4b25-9548-de6172f725a0 | jsm-efbd7e32-313d-4162-88df-a27c157e6a43 | DELETE_FAILED | 2015-12-08T03:02:24Z |
>> | 4963f771-d187-4422-997a-f22a0ac76f2f | jsm-043cc82a-33c9-4523-bb57-1b6cca639179 | DELETE_FAILED | 2015-12-08T03:02:45Z |
>> | e28304c1-dc46-431c-abc8-43695edb781a | jsm-d1f3dd68-08bc-4f20-be51-79381ed7a4d8 | DELETE_FAILED | 2015-12-08T03:11:19Z |
>> | 14427269-5210-4c97-9a6c-87c5d90395c2 | jsm-5b47b9a6-0c6b-49e2-93cd-ffa11cd47e82 | DELETE_FAILED | 2015-12-08T03:11:42Z |
>> | 939dfe41-a40a-4935-8e0c-c629cc4a2ea7 | jsm-d6078406-ecb2-4624-89f3-0e5aab75762e | DELETE_FAILED | 2015-12-08T03:12:30Z |
>> +--------------------------------------+------------------------------------------+---------------+----------------------+
>> root@ccra-15:~#
>> root@ccra-15:~#
>> root@ccra-15:~# heat stack-show 28be9b35-dc55-4e34-a193-30b5bde5f184
>> +----------------------+----------------------------------------------------------------------------------------------------------------------------------------------------+
>> | Property | Value |
>> +----------------------+----------------------------------------------------------------------------------------------------------------------------------------------------+
>> | capabilities | [] |
>> | creation_time | 2015-12-08T02:43:33Z |
>> | description | HOT template to create network service |
>> | disable_rollback | True |
>> | id | 28be9b35-dc55-4e34-a193-30b5bde5f184 |
>> | links | http://10.102.28.111:8004/v1/6e75b3168fa342edbe1b8b4f77c64bec/stacks/jsm-575cec1a-7282-4dda-97d1-41295d93fd78/28be9b35-dc55-4e34-a193-30b5bde5f184 |
>> | notification_topics | [] |
>> | parameters | { |
>> | | "right-net-id": "920deddc-a75a-4cf5-924b-e42ee721da68", |
>> | | "OS::stack_name": "jsm-575cec1a-7282-4dda-97d1-41295d93fd78", |
>> | | "nsid": "575cec1a-7282-4dda-97d1-41295d93fd78", |
>> | | "mgmt-net-id": "eb6705d9-ee00-4b31-9c58-2ebf6e9d9a4c", |
>> | | "OS::stack_id": "28be9b35-dc55-4e34-a193-30b5bde5f184", |
>> | | "left-net-rt": "[u'64512:3101']", |
>> | | "left-subnet-cidr": "17.23.1.0/24" |
>> | | } |
>> | stack_name | jsm-575cec1a-7282-4dda-97d1-41295d93fd78 |
>> | stack_status | DELETE_FAILED |
>> | stack_status_reason | Resource DELETE failed: NeutronClientException: |
>> | | 500-{u'NeutronError': {u'message': u'An unknown |
>> | | exception occurred.', u'type': u'NeutronException', |
>> | | u'detail': u''}} |
>> | template_description | HOT template to create network service |
>> | timeout_mins | None |
>> | updated_time | 2015-12-08T02:45:45Z |
>> +----------------------+----------------------------------------------------------------------------------------------------------------------------------------------------+
>>

information type: Proprietary → Public
Changed in juniperopenstack:
assignee: nobody → Praneet Bachheti (praneetb)
importance: Undecided → Medium
status: New → In Progress
Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R2.21.x

Review in progress for https://review.opencontrail.org/15751
Submitter: Praneet Bachheti (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : A change has been merged

Reviewed: https://review.opencontrail.org/15751
Committed: http://github.org/Juniper/contrail-controller/commit/dd1e2a8ac7253d4d419f33a4de202a903cc0232f
Submitter: Zuul
Branch: R2.21.x

commit dd1e2a8ac7253d4d419f33a4de202a903cc0232f
Author: Praneet Bachheti <email address hidden>
Date: Thu Dec 10 13:45:02 2015 -0800

raise subnet_not_found if we dont find any ipam refs

Change-Id: Ia9d5c213fe9f748e1c528553f79718baa8fbd982
Closes-bug: 1524079

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R2.20.x

Review in progress for https://review.opencontrail.org/15800
Submitter: Praneet Bachheti (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R2.20

Review in progress for https://review.opencontrail.org/15801
Submitter: Praneet Bachheti (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] master

Review in progress for https://review.opencontrail.org/15802
Submitter: Praneet Bachheti (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : A change has been merged

Reviewed: https://review.opencontrail.org/15800
Committed: http://github.org/Juniper/contrail-controller/commit/5dbe6a57bc89b30bd8065a4abb771705fed5a4ce
Submitter: Zuul
Branch: R2.20.x

commit 5dbe6a57bc89b30bd8065a4abb771705fed5a4ce
Author: Praneet Bachheti <email address hidden>
Date: Thu Dec 10 13:45:02 2015 -0800

raise subnet_not_found if we dont find any ipam refs

Change-Id: Ia9d5c213fe9f748e1c528553f79718baa8fbd982
Closes-bug: 1524079

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote :

Reviewed: https://review.opencontrail.org/15801
Committed: http://github.org/Juniper/contrail-controller/commit/f47699840962e384bcd3594158bab86d6e615e12
Submitter: Zuul
Branch: R2.20

commit f47699840962e384bcd3594158bab86d6e615e12
Author: Praneet Bachheti <email address hidden>
Date: Thu Dec 10 13:45:02 2015 -0800

raise subnet_not_found if we dont find any ipam refs

Change-Id: Ia9d5c213fe9f748e1c528553f79718baa8fbd982
Closes-bug: 1524079

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote :

Reviewed: https://review.opencontrail.org/15802
Committed: http://github.org/Juniper/contrail-controller/commit/8c818af88cd4b82cc19a55333d2567d8b1b3fc0b
Submitter: Zuul
Branch: master

commit 8c818af88cd4b82cc19a55333d2567d8b1b3fc0b
Author: Praneet Bachheti <email address hidden>
Date: Thu Dec 10 13:45:02 2015 -0800

raise subnet_not_found if we dont find any ipam refs

Change-Id: Ia9d5c213fe9f748e1c528553f79718baa8fbd982
Closes-bug: 1524079

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.