rbd: snapshot can't be deleted if its source volume is deleted from backend
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Cinder |
Fix Released
|
Medium
|
Takashi Kajinami |
Bug Description
Description
===========
A user encountered the situation where they need to clear data in their ceph cluster and started the cluster from scratch.
After re-initializing the cluster, they tried to remove a snapshot record left in cinder db but delete operation keeps failing.
It seems the problem is that the rbd driver tries to access the source volume first, and the operations fails if the source volume doesn't exist.
How reproducible
==================
Always
Steps to reproduce
==================
1. Create a volume and a snapshot
2. Delete rbd images in the backend ceph pool
3. Delete the snapshot
Expected results
==================
The snapshot is deleted
Actual results
==================
The snapshot becomes error_deleting status
Environment
==================
This issue was initially found in stable/train based deployment
Logs & Configs
==============
N/A
Note
==============
The same problem is found in unmanage but in this but we focus on delete.
description: | updated |
summary: |
- rbd: snapshot can't be deleted if the snapshot and its source volume are - both deleted + rbd: snapshot can't be deleted/unmanaged if its source volume is deleted + in ceph |
Changed in cinder: | |
assignee: | nobody → Takashi Kajinami (kajinamit) |
summary: |
rbd: snapshot can't be deleted/unmanaged if its source volume is deleted - in ceph + from backend |
Changed in cinder: | |
importance: | Undecided → Medium |
tags: | added: rbd snapshot snapshot-delete snapshot-unmanaging |
summary: |
- rbd: snapshot can't be deleted/unmanaged if its source volume is deleted - from backend + rbd: snapshot can't be deleted if its source volume is deleted from + backend |
description: | updated |
tags: | removed: snapshot-unmanaging |
Fix proposed to branch: master /review. opendev. org/c/openstack /cinder/ +/824149
Review: https:/