Bug 1947673

Summary: 'rbd trash purge' gets hung on rbds with clones or snapshots and should skip to continue progress [4.2z2]
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: mamccoma
Component: RBDAssignee: Ilya Dryomov <idryomov>
Status: CLOSED ERRATA QA Contact: Harish Munjulur <hmunjulu>
Severity: high Docs Contact:
Priority: unspecified    
Version: 4.2CC: assingh, ceph-eng-bugs, ceph-qe-bugs, gfarnum, idryomov, madam, mamccoma, mhackett, mmuench, mmurthy, mrajanna, muagarwa, ndevos, nojha, owasserm, pdhange, pnataraj, r.martinez, srangana, tnielsen, tserlin, vereddy, ygupta
Target Milestone: ---   
Target Release: 4.2z2   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ceph-14.2.11-179.el8cp, ceph-14.2.11-179.el7cp Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1964373 1966687 (view as bug list) Environment:
Last Closed: 2021-06-15 17:14:13 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1898565, 1964373    

Comment 1 RHEL Program Management 2021-04-08 20:49:36 UTC
Please specify the severity of this bug. Severity is defined here:
https://bugzilla.redhat.com/page.cgi?id=fields.html#bug_severity.

Comment 8 Michael Adam 2021-05-04 15:13:58 UTC
Adding needinfo on Travis and Niels to comment on the rook and csi questions about ability to disable the rbd trash.

Comment 10 Travis Nielsen 2021-05-04 17:27:36 UTC
Running one-time Ceph configuration commands such as "rbd trash rm" need to be done in the toolbox. The rook operator does not automate such commands. When running toolbox commands, it gives the full power of the ceph commands, but also comes with the risks of unintended side effects. I'm not aware of limitations with "rbd trash rm" specifically either.

Comment 29 Harish Munjulur 2021-06-10 18:43:36 UTC
QA verified

1. Create multiple images
2. create clones to few images
3. thrash move all the images # rbd trash mv testpool/testimage
4. thrash purge all the trash images #rbd trash purge testpool
5. check the status of cluster 
Progress is not stuck
6. Verify the images with no clones are successfully deleted

Comment 31 errata-xmlrpc 2021-06-15 17:14:13 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 (Important: Red Hat Ceph Storage 4.2 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-2021:2445