cinder-volume crashes on rbd not found exception

Bug #1403172 reported by jordan tardif
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Cinder
Fix Released
Medium
jordan tardif
Icehouse
Fix Released
Undecided
jordan tardif
Juno
Fix Released
Undecided
jordan tardif

Bug Description

When deleting a rbd volume it is possible for remove() to throw a ImageNotFound exception. Since this exception is not being
caught by the rbd driver, cinder-volume ends up crashing anytime this exception is hit.

Changed in cinder:
assignee: nobody → jordan tardif (jordan-tardif)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to cinder (master)

Reviewed: https://review.openstack.org/121688
Committed: https://git.openstack.org/cgit/openstack/cinder/commit/?id=ddc8d7a4233aee139f9c91aeee885d7f2e45f8ac
Submitter: Jenkins
Branch: master

commit ddc8d7a4233aee139f9c91aeee885d7f2e45f8ac
Author: Jordan Tardif <email address hidden>
Date: Mon Sep 15 17:59:06 2014 -0400

    Catch ImageNotFound exception when deleting rbd volume

    When deleting a rbd volume it is possible for remove() to
    throw a ImageNotFound exception. In this case we should
    catch the exception, so the volume delete can continue.

    Closes-Bug: 1403172
    Change-Id: I32cf9d3774c129cda4449996ceeb4b43b7e42904

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

Fix proposed to branch: stable/icehouse
Review: https://review.openstack.org/142860

Jay Bryant (jsbryant)
tags: added: drivers rbd
Changed in cinder:
importance: Undecided → Medium
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to cinder (stable/juno)

Fix proposed to branch: stable/juno
Review: https://review.openstack.org/143507

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

Reviewed: https://review.openstack.org/143507
Committed: https://git.openstack.org/cgit/openstack/cinder/commit/?id=36bb8c285b75fb025095baf26c7a2e3feb136b0c
Submitter: Jenkins
Branch: stable/juno

commit 36bb8c285b75fb025095baf26c7a2e3feb136b0c
Author: Jordan Tardif <email address hidden>
Date: Mon Sep 15 17:59:06 2014 -0400

    Catch ImageNotFound exception when deleting rbd volume

    When deleting a rbd volume it is possible for remove() to
    throw a ImageNotFound exception. In this case we should
    catch the exception, so the volume delete can continue.

    Closes-Bug: 1403172
    Change-Id: I32cf9d3774c129cda4449996ceeb4b43b7e42904
    (cherry picked from commit ddc8d7a4233aee139f9c91aeee885d7f2e45f8ac)

tags: added: in-stable-juno
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to cinder (stable/icehouse)

Reviewed: https://review.openstack.org/142860
Committed: https://git.openstack.org/cgit/openstack/cinder/commit/?id=303d02106112b4c3766a580d5ccb75f756892e02
Submitter: Jenkins
Branch: stable/icehouse

commit 303d02106112b4c3766a580d5ccb75f756892e02
Author: Jordan Tardif <email address hidden>
Date: Mon Sep 15 17:59:06 2014 -0400

    Catch ImageNotFound exception when deleting rbd volume

    When deleting a rbd volume it is possible for remove() to
    throw a ImageNotFound exception. In this case we should
    catch the exception, so the volume delete can continue.

    Closes-Bug: 1403172
    Change-Id: I32cf9d3774c129cda4449996ceeb4b43b7e42904
    (cherry picked from commit ddc8d7a4233aee139f9c91aeee885d7f2e45f8ac)

tags: added: in-stable-icehouse
Thierry Carrez (ttx)
Changed in cinder:
milestone: none → kilo-2
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in cinder:
milestone: kilo-2 → 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.