Properly handle volume cleanup with RBD driver

Bug #1254318 reported by Mike Perez
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Cinder
Fix Released
High
Mike Perez
Havana
Fix Released
High
Mike Perez

Bug Description

If a volume gets deleted in the Ceph backend, and Cinder still knows about it in a 'deleting' state, cinder-volume on startup will try to clean it up. rbd.Image() will however raise a rbd.ImageNotFound exception in these cases. These should be disregarded so cinder can continue the delete if it's no longer in the backend.

Stack trace:
http://paste.openstack.org/show/53858/

Tags: drivers rbd
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to cinder (master)

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

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

Reviewed: https://review.openstack.org/58107
Committed: http://github.com/openstack/cinder/commit/3de7da12d1098ef777305099e5f4a039e536bf99
Submitter: Jenkins
Branch: master

commit 3de7da12d1098ef777305099e5f4a039e536bf99
Author: Mike Perez <email address hidden>
Date: Sat Nov 23 10:50:15 2013 -0800

    Continue to delete volumes that DNE in rbd backend

    If a volume has already been deleted in the RBD backend, catch the
    exception and let Cinder continue removing it in the database.

    Closes-Bug: #1254318
    Change-Id: I99b591ce78d82c6eaabff0459d9c523e85c8e65f

Changed in cinder:
status: In Progress → Fix Committed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to cinder (stable/havana)

Fix proposed to branch: stable/havana
Review: https://review.openstack.org/58178

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to cinder (stable/havana)

Reviewed: https://review.openstack.org/58178
Committed: http://github.com/openstack/cinder/commit/22f257bd6c0eff06e51662233b484dcfab91a93d
Submitter: Jenkins
Branch: stable/havana

commit 22f257bd6c0eff06e51662233b484dcfab91a93d
Author: Mike Perez <email address hidden>
Date: Sat Nov 23 10:50:15 2013 -0800

    Continue to delete volumes that DNE in rbd backend

    If a volume has already been deleted in the RBD backend, catch the
    exception and let Cinder continue removing it in the database.

    Closes-Bug: #1254318
    Change-Id: I99b591ce78d82c6eaabff0459d9c523e85c8e65f
    (cherry picked from commit 3de7da12d1098ef777305099e5f4a039e536bf99)

tags: added: in-stable-havana
Thierry Carrez (ttx)
Changed in cinder:
status: Fix Committed → Fix Released
Alan Pevec (apevec)
tags: removed: in-stable-havana
Thierry Carrez (ttx)
Changed in cinder:
milestone: icehouse-1 → 2014.1
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.