Delete stack sometimes fails

Bug #1195596 reported by Pekka Rinne
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Heat
Fix Released
Medium
Steve Baker

Bug Description

Sometimes it happens that stack delete fails. I think there is such problem that subnet is tried to be deleted before all its ports have been deleted. With same template delete sometimes work - sometimes not. This happens even if DependsOn has been set between port-subnet-network resources.

2013-06-28 16:42:32.036 22788 ERROR heat.engine.resource [-] Delete Subnet "public-subnet"
2013-06-28 16:42:32.036 22788 TRACE heat.engine.resource Traceback (most recent call last):
2013-06-28 16:42:32.036 22788 TRACE heat.engine.resource File "/usr/local/lib/python2.7/dist-packages/heat-2013.1.1.a1.g6ed78c2-py2.7.egg/heat/engine/resource.py", line 413, in delete
2013-06-28 16:42:32.036 22788 TRACE heat.engine.resource self.handle_delete()
2013-06-28 16:42:32.036 22788 TRACE heat.engine.resource File "/usr/local/lib/python2.7/dist-packages/heat-2013.1.1.a1.g6ed78c2-py2.7.egg/heat/engine/resources/quantum/subnet.py", line 65, in handle_delete
2013-06-28 16:42:32.036 22788 TRACE heat.engine.resource raise ex
2013-06-28 16:42:32.036 22788 TRACE heat.engine.resource QuantumClientException: Unable to complete operation on subnet c3f40080-c66b-42d0-a7fa-82a29185f90e. One or more ports have an IP allocation from this subnet.
2013-06-28 16:42:32.036 22788 TRACE heat.engine.resource
2013-06-28 16:42:32.457 22788 ERROR heat.engine.parser [-] Failed to delete Subnet "public-subnet" error: Unable to complete operation on subnet c3f40080-c66b-42d0-a7fa-82a29185f90e. One or more ports have an IP allocation from this subnet.

Revision history for this message
Pekka Rinne (tsierkkis) wrote :
Revision history for this message
Pekka Rinne (tsierkkis) wrote :

used release: grizzly

Changed in heat:
assignee: nobody → Steve Baker (steve-stevebaker)
milestone: none → havana-3
importance: Undecided → Medium
status: New → Triaged
Changed in heat:
status: Triaged → In Progress
Revision history for this message
Steve Baker (steve-stevebaker) wrote :

I have reproduced this with the attached template

Changed in heat:
milestone: havana-3 → havana-2
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to heat (master)

Fix proposed to branch: master
Review: https://review.openstack.org/36763

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to heat (master)

Reviewed: https://review.openstack.org/36763
Committed: http://github.com/openstack/heat/commit/324475bd2a63d9d36914fddfed6ad672d13f8ebf
Submitter: Jenkins
Branch: master

commit 324475bd2a63d9d36914fddfed6ad672d13f8ebf
Author: Steve Baker <email address hidden>
Date: Fri Jul 12 13:31:09 2013 +1200

    Wait until quantum resources are deleted.

    Races on delete have occured where a quantum resource cannot
    be deleted due to an associated resource delete being incomplete.

    Fixes bug: #1195596

    Change-Id: I52a358d05d30b9c50a771864d036156f00df67ab

Changed in heat:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in heat:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in heat:
milestone: havana-2 → 2013.2
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.