Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
This project is now read‑only. Starting Monday, February 2, please use https://ibm-ceph.atlassian.net/ for all bug tracking management.

Bug 1958362

Summary: rbd_support: Attempting to background remove images with clones results in apparent stuck progress
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: Greg Farnum <gfarnum>
Component: RBDAssignee: Ilya Dryomov <idryomov>
Status: CLOSED ERRATA QA Contact: Harish Munjulur <hmunjulu>
Severity: high Docs Contact:
Priority: unspecified    
Version: 4.2CC: ceph-eng-bugs, ceph-qe-bugs, idryomov, mmurthy, owasserm, tserlin, vereddy
Target Milestone: ---   
Target Release: 4.2z2   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ceph-14.2.11-180.el8cp, ceph-14.2.11-180.el7cp Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-06-15 17:14:17 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:

Description Greg Farnum 2021-05-07 17:57:42 UTC
Description of problem:
The progress module gets stuck on undeletable images. We should delay adding them to the progress module instead.

Version-Release number of selected component (if applicable):
4.x

How reproducible:
Generate a clone of an rbd, move the rbd parent to trash, schedule deletion, watch progress module.

A fix is already in upstream nautilus and needs to be pulled in to our 4.x release stream.

Comment 1 RHEL Program Management 2021-05-07 17:57:50 UTC
Please specify the severity of this bug. Severity is defined here:
https://bugzilla.redhat.com/page.cgi?id=fields.html#bug_severity.

Comment 6 Harish Munjulur 2021-06-10 17:54:29 UTC
QA verified. 

1. Create a pool and image 
2. write data to image
3. create multiple clones #rbd snap create testpool/testimage@snapname1
4. trash the parent image #rbd trash mv testpool/testimage
5. verify the trash # rbd trash ls testpool
                      ade224278f76 testimage
6. purge the trashed image #rbd trash purge testpool
Removing images: 0% 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.
7. check the ceph status #ceph -s
8. watch progress module
expected: Should not see any stuck process.

Comment 8 errata-xmlrpc 2021-06-15 17:14:17 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