cinder volume deletions-in-progress lead to stack deletion errors

Bug #1362708 reported by Joe D'Andrea
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack Heat
Fix Released
High
Rakesh H S

Bug Description

Scenario: A stack containing a significantly-sized OS::Cinder::Volume has been queued for deletion via stack-delete (not out-of-band).

Consider the case where this stack deletion was interrupted (e.g., an error). Meanwhile, the cinder volume still happens to be in a deleting state.

The stack-delete request is made once again, and a new error is thrown:

http://paste.openstack.org/show/101829/

I propose that Heat should gracefully ignore the volume and not throw an error, as it is already being deleted.

Steven Hardy (shardy)
Changed in heat:
status: New → Triaged
importance: Undecided → Medium
Rakesh H S (rh-s)
Changed in heat:
assignee: nobody → Rakesh H S (rh-s)
Revision history for this message
Rakesh H S (rh-s) wrote :

I was able to reproduce this issue

Changed in heat:
status: Triaged → Confirmed
Changed in heat:
importance: Medium → High
Rakesh H S (rh-s)
Changed in heat:
status: Confirmed → In Progress
Revision history for this message
Joe D'Andrea (jdandrea) wrote :

I have a basic patch (which would be my first ever). I will review the procedure for supplying that.

In the meantime, is Bug 1298350 related? I just noticed it.

https://bugs.launchpad.net/heat/+bug/1298350

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/118374

Revision history for this message
Rakesh H S (rh-s) wrote :

Hi Joe,

Bug 1298350 is not related. Anyways we are able to reproduce the issue on the latest code base, so we need to fix this.
I had taken this bug in launchpad(check the "Assigned to" flag) and already worked on it. I have pushed one patchset to gerrit and working on unit tests for the same.

I am sorry but you are a bit late.
One suggestion: you need first assign the bug to your name and then start working on the fix.

Regards,
Rakesh

Revision history for this message
Joe D'Andrea (jdandrea) wrote :

Good to hear!

No worries about being late. I'm glad that you could address it. (I was unsure if I should wait for it to be triaged before assigning it to my name. I'll get used to the process before long, I'm sure.)

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

Reviewed: https://review.openstack.org/118374
Committed: https://git.openstack.org/cgit/openstack/heat/commit/?id=6aca29e05bb0cfe469ed17f4ab9bb9351b2f108a
Submitter: Jenkins
Branch: master

commit 6aca29e05bb0cfe469ed17f4ab9bb9351b2f108a
Author: Rakesh H S <email address hidden>
Date: Tue Sep 2 20:06:53 2014 +0530

    fixes stack deletion failure, when vol in deleting

    when an delete operation is requested on a stack, and the volume in stack
    is already in 'deleting' state, heat fails to delete the stack and goes to
    DELETE_FAILED state instantly.

    Instead of going to DELETE_FAILED state instantly, heat needs to safely
    wait for the volume to complete its deletion process, so that heat can
    then go ahead and complete stack deletion successfully.

    Closes-Bug: #1362708

    Change-Id: I088eab90bee4bc804abe9e505fd61b17b266def1

Changed in heat:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in heat:
milestone: none → kilo-1
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in heat:
milestone: kilo-1 → 2015.1.0
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.