Description of problem: Rbd trash purge is not deleting images in rbdtrash Version-Release number of selected component (if applicable): ceph version 14.2.21-5.el8cp (d28483a1292101da901e98abb008bc59817e7fca) nautilus (stable) How reproducible: 3/3 Steps to Reproduce: 1.create an image 2.create a snapshot for the image 3.move the images to trash 4. purge the trash example: 1. #rbd create --image-format 2 --size 256 testimg1 2. #rbd create --image-format 2 --size 256 testimg3 3. #rbd create --image-format 2 --size 256 testimg2 4. #rbd snap create testimg1@snap 5. #rbd trash mv testimg1 6. #rbd trash mv testimg2 7. #rbd trash mv testimg3 8. #rbd trash purge Actual results: Images are not deleted [root@ceph ~]# rbd trash purge Removing images: 0% complete...failed. [root@ceph ~]# rbd trash ls 3ac3d9fe911b testimg1 3acfaae99e93 testimg2 3ad5bede1697 testimg3 Expected results: [root@ceph-hary ~]# rbd trash purge Removing images: 66% complete...failed. rbd: some expired images could not be removed Ensure that they are closed/unmapped, do not have snapshots (including trashed snapshots with linked clones), are not in a group and were moved to the trash successfully.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (Moderate: Red Hat Ceph Storage 4.3 Security and Bug Fix update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2022:1716