can't delete (rbd) snapshot if volume missing

Bug #1774619 reported by Edward Hope-Morley
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Cinder
In Progress
Low
Unassigned

Bug Description

If I try to delete a snapshot whose base volume is ImageNotFound in Ceph the operation currently fails with https://pastebin.ubuntu.com/p/CjK8FGJJtw/ because the RBDVolumeProxy does not tolerate a missing volume an we don't handle the exception like we would for a volume delete. If the base volume is missing this in all likelihood indicates an error on the backend and since a snapshot can't exist without its base, it is valid to allow the delete to succeed. We should therefore handle this case to allow snapshots to be deleted as well as volumes in the case where the volume and/or snapshot does not exist on the backend.

Tags: ceph drivers
Jon Bernard (jbernard)
Changed in cinder:
assignee: nobody → Jon Bernard (jbernard)
status: New → Confirmed
Eric Harney (eharney)
Changed in cinder:
importance: Undecided → Low
tags: added: ceph drivers
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to cinder (master)

Fix proposed to branch: master
Review: https://review.opendev.org/658993

Changed in cinder:
assignee: Jon Bernard (jbernard) → renminmin (rmm0811)
status: Confirmed → In Progress
renminmin (rmm0811)
Changed in cinder:
assignee: renminmin (rmm0811) → nobody
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.