[RBD] Volume can't be removed if other volumes were created from a snapshot of this volume and were not removed
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Cinder |
Fix Released
|
Medium
|
Sofia Enriquez |
Bug Description
Description of problem:
It is not possible to remove a volume e.g. test-pvc if that volume was used to
* create a snapshot e.g. test-pvc-snap (that was removed later)
* create a volume from that snapshot e.g. test-pvc-from-snap
Until you remove the volume from that snapshot (test-pvc-
openstack client returns 0 but cinder-volume logs returns:
2021-08-03 13:09:28.616 135 DEBUG cinder.
2021-08-03 13:09:28.621 135 ERROR cinder.
Cinder Version-Release: current version and
* ceph osd set-require-
Steps to Reproduce:
Create a volume:
openstack volume create --size 1 test-pvc
Create a snapshot:
openstack volume snapshot create --volume test-pvc test-snapshot-pvc
Create a volume from the snapshot:
openstack volume create --snapshot test-snapshot-pvc test-pvc-clone
Try deleting the initial volume, it fails as expected:
openstack volume delete test-pvc
Delete the snapshot:
openstack volume snapshot delete test-snapshot-pvc
Now, retry to delete the initial volume: it doesn't report any error:
openstack volume delete test-pvc
But the volume is still here and available:
openstack volume list
Actual results:
openstackclient returns 0 but the volume isn't removed, an ERROR is seen in the logs.
Expected results:
The volume should be removed.
Changed in cinder: | |
status: | New → In Progress |
Changed in cinder: | |
milestone: | none → xena-rc2 |
I guess we are going to need https:/ /review. opendev. org/c/openstack /devstack- plugin- ceph/+/ 806264 if we'd like to add CI coverage for this.