Bug 1986684 - [RBD] - rbd trash purge command not deleting images in trash
Summary: [RBD] - rbd trash purge command not deleting images in trash
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Ceph Storage
Classification: Red Hat Storage
Component: RBD
Version: 4.3
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: ---
: 4.3
Assignee: Ilya Dryomov
QA Contact: Chaithra
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-07-28 05:50 UTC by Harish Munjulur
Modified: 2022-05-05 07:53 UTC (History)
5 users (show)

Fixed In Version: ceph-14.2.21-8.el8cp, ceph-14.2.21-8.el7cp
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-05-05 07:53:24 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHCEPH-1368 0 None None None 2021-08-31 12:33:13 UTC
Red Hat Product Errata RHSA-2022:1716 0 None None None 2022-05-05 07:53:50 UTC

Description Harish Munjulur 2021-07-28 05:50:06 UTC
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.

Comment 11 errata-xmlrpc 2022-05-05 07:53:24 UTC
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


Note You need to log in before you can comment on or make changes to this bug.