Bug 2027337

Summary: rbd-mirror: metadata of mirrored image are not properly cleaned up after image deletion
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: Sunny Kumar <sunkumar>
Component: RBD-MirrorAssignee: Ilya Dryomov <idryomov>
Status: CLOSED DUPLICATE QA Contact: Vasishta <vashastr>
Severity: high Docs Contact:
Priority: unspecified    
Version: 5.0CC: ceph-eng-bugs, ceph-qe-bugs, idryomov, vereddy
Target Milestone: ---   
Target Release: 5.2   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-02-07 16:39:04 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 Sunny Kumar 2021-11-29 12:46:52 UTC
Description of problem:

When rbd-mirror is enabled between cluster and image is removed from primary cluster, meta data of the deleted image not properly cleaned.

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


How reproducible:
1/1

Steps to Reproduce:
1. Enable rbd mirroring
2. Create a pool with mirroring enabled
3. Create a RBD image and enable mirroring with the journal/snapshot mode and confirm that the image is replicated
4. Delete image from the primary cluster
5. Confirm the image is removed on both primary and secondary cluster
6. Confirm that there is a unknown image checking the rbd-mirror log, the OMAP values.

Comment 1 RHEL Program Management 2021-11-29 12:46:59 UTC
Please specify the severity of this bug. Severity is defined here:
https://bugzilla.redhat.com/page.cgi?id=fields.html#bug_severity.

Comment 2 Sunny Kumar 2021-11-29 12:48:46 UTC
Upstream patch: https://github.com/ceph/ceph/pull/41696

Comment 4 Ilya Dryomov 2022-02-07 16:39:04 UTC

*** This bug has been marked as a duplicate of bug 2008587 ***