Bug 1958362 - rbd_support: Attempting to background remove images with clones results in apparent stuck progress
Summary: rbd_support: Attempting to background remove images with clones results in ap...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Ceph Storage
Classification: Red Hat Storage
Component: RBD
Version: 4.2
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
: 4.2z2
Assignee: Ilya Dryomov
QA Contact: Harish Munjulur
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-05-07 17:57 UTC by Greg Farnum
Modified: 2021-06-15 17:14 UTC (History)
7 users (show)

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:
Clone Of:
Environment:
Last Closed: 2021-06-15 17:14:17 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Ceph Project Bug Tracker 48296 0 None None None 2021-05-07 17:57:42 UTC
Github ceph ceph pull 38196 0 None closed pybind/mgr/rbd_support: delay creation of progress module events 2021-06-07 21:55:36 UTC
Red Hat Product Errata RHSA-2021:2445 0 None None None 2021-06-15 17:14:35 UTC

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


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