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 1969916

Summary: cephfs-mirror: mirroring path "remove" don't not seem to work
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: Venky Shankar <vshankar>
Component: CephFSAssignee: Venky Shankar <vshankar>
Status: CLOSED ERRATA QA Contact: Hemanth Kumar <hyelloji>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 5.0CC: ceph-eng-bugs, ceph-qe-bugs, dfuller, pdonnell, sweil, tserlin, vereddy
Target Milestone: ---Flags: hyelloji: needinfo+
Target Release: 5.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ceph-16.2.0-66.el8cp Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-08-30 08:31:02 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 Venky Shankar 2021-06-09 13:09:45 UTC
Can be reproduced when mirror daemon is not running:

$ ceph fs snapshot mirror remove cephfs /d0/d1                                                                                       
{}
$ ceph fs snapshot mirror remove cephfs /d0/d1
Error EINVAL: directory /d0/d1 is under removal
The omap entry for this directory still exists:

cephalopod@cephalopod-octo:/work/ceph/build$ rados -p cephfs.meta listomapvals cephfs_mirror
dir_map_/d0/d1
value (80 bytes) :
00000000  80 03 7d 71 00 28 58 07  00 00 00 76 65 72 73 69  |..}q.(X....versi|
00000010  6f 6e 71 01 4b 01 58 0b  00 00 00 69 6e 73 74 61  |onq.K.X....insta|
00000020  6e 63 65 5f 69 64 71 02  4e 58 0d 00 00 00 6c 61  |nce_idq.NX....la|
00000030  73 74 5f 73 68 75 66 66  6c 65 64 71 03 4e 58 07  |st_shuffledq.NX.|
00000040  00 00 00 70 75 72 67 69  6e 67 71 04 4b 01 75 2e  |...purgingq.K.u.|
00000050

Comment 1 RHEL Program Management 2021-06-09 13:09:48 UTC
Please specify the severity of this bug. Severity is defined here:
https://bugzilla.redhat.com/page.cgi?id=fields.html#bug_severity.

Comment 11 errata-xmlrpc 2021-08-30 08:31:02 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 (Red Hat Ceph Storage 5.0 bug fix and enhancement), 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/RHBA-2021:3294