Bug 2354498

Summary: GroupUnlinkPeerRequest: handle_remove_group_snapshot: failed to remove image snapshot metadata: (30) Read-only file system
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: aarsharm
Component: RBD-MirrorAssignee: Prasanna Kumar Kalever <prasanna.kalever>
Status: CLOSED ERRATA QA Contact: Chaitanya <cdommeti>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 8.1CC: cdommeti, ceph-eng-bugs, cephqe-warriors, idryomov, sangadi, tserlin
Target Milestone: ---   
Target Release: 8.1   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ceph-19.2.1-74.el9cp Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2025-06-26 12:29:22 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 aarsharm 2025-03-24 10:09:28 UTC
Description of problem:
On running "rbd mirror group demote --pool pool_1 --group group_1"
Consistency group is demoted in addition with below error string.

"2025-03-24T09:23:03.559+0000 7fe7fa4db640 -1 librbd::mirror::snapshot::GroupUnlinkPeerRequest: 0x557f20c810b0 handle_remove_group_snapshot: failed to remove image snapshot metadata: (30) Read-only file system"

Above error string gives an impression to the user that something has gone wrong/bad. but the group is demoted successfully, so raising this bz to analyze and remove this error string from the output display. 

Version-Release number of selected component (if applicable):
[ceph: root@ceph-rbd1-cg-ds-tf74dn-node1-installer /]# ceph version
ceph version 19.2.1-57.el9cp (25ca432e5c2874ac833d0f13057a1b7d98913317) squid (stable)
[ceph: root@ceph-rbd1-cg-ds-tf74dn-node1-installer /]#


How reproducible: every time


Steps to Reproduce:
1. promote a consistency group on site-a/cluster1
[ceph: root@ceph-rbd1-cg-ds-tf74dn-node1-installer /]# rbd mirror group promote --pool pool_1 --group group_1
rbd: error promoting group to primary
2025-03-24T09:22:47.266+0000 7f1b0bd53200 -1 librbd::api::Mirror: group_promote: group group_1 is already primary

2. demote a consietnct group on site-a/cluster1
[ceph: root@ceph-rbd1-cg-ds-tf74dn-node1-installer /]# rbd mirror group demote --pool pool_1 --group group_1
2025-03-24T09:23:03.559+0000 7fe7fa4db640 -1 librbd::mirror::snapshot::GroupUnlinkPeerRequest: 0x557f20c810b0 handle_remove_group_snapshot: failed to remove image snapshot metadata: (30) Read-only file system
Group demoted to non-primary
[ceph: root@ceph-rbd1-cg-ds-tf74dn-node1-installer /]#


Actual results:
[ceph: root@ceph-rbd1-cg-ds-tf74dn-node1-installer /]# rbd mirror group promote --pool pool_1 --group group_1
rbd: error promoting group to primary
2025-03-24T09:22:47.266+0000 7f1b0bd53200 -1 librbd::api::Mirror: group_promote: group group_1 is already primary
[ceph: root@ceph-rbd1-cg-ds-tf74dn-node1-installer /]# rbd mirror group demote --pool pool_1 --group group_1
2025-03-24T09:23:03.559+0000 7fe7fa4db640 -1 librbd::mirror::snapshot::GroupUnlinkPeerRequest: 0x557f20c810b0 handle_remove_group_snapshot: failed to remove image snapshot metadata: (30) Read-only file system
Group demoted to non-primary
[ceph: root@ceph-rbd1-cg-ds-tf74dn-node1-installer /]#


Expected results:
[ceph: root@ceph-rbd1-cg-ds-tf74dn-node1-installer /]# rbd mirror group promote --pool pool_1 --group group_1
rbd: error promoting group to primary
2025-03-24T09:22:47.266+0000 7f1b0bd53200 -1 librbd::api::Mirror: group_promote: group group_1 is already primary
[ceph: root@ceph-rbd1-cg-ds-tf74dn-node1-installer /]# rbd mirror group demote --pool pool_1 --group group_1
Group demoted to non-primary
[ceph: root@ceph-rbd1-cg-ds-tf74dn-node1-installer /]#


Additional info: NA

Comment 4 errata-xmlrpc 2025-06-26 12:29:22 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 8.1 security, bug fix, and enhancement updates), 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-2025:9775