Bug 2354501

Summary: [Usability]: Removing mirror group snapshot schedule with group-spec should throw error
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: aarsharm
Component: RBD-MirrorAssignee: Ilya Dryomov <idryomov>
Status: CLOSED ERRATA QA Contact: aarsharm
Severity: low Docs Contact:
Priority: unspecified    
Version: 8.1CC: ceph-eng-bugs, cephqe-warriors, 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:29 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:37:29 UTC
Description of problem:
"mirror group snapshot schedule remove" with group-spec does not throw any error, which gives an impression to user that schedule is removed.
This bz is to keep the behavior consistent with "mirror group snapshot schedule add" which throws error on providing group-spec


mirror group snapshot schedule add throws error with group-spec.
[ceph: root@ceph-rbd1-cg-ds-tf74dn-node1-installer /]# rbd mirror group snapshot schedule add pool_1/group_1 2m
rbd: rbd mirror group snapshot schedule add failed: (22) Invalid argument: Invalid interval (pool_1/group_1)

mirror group snapshot schedule remove should also throw error with group-spec, due to below to reason.
    - to keep the behavior consistent with "mirror group snapshot schedule add"
    - as its giving false impression that group mirror snapshot schedule is removed, whereas its not.


[ceph: root@ceph-rbd1-cg-ds-tf74dn-node1-installer /]# rbd mirror group snapshot schedule list --group group_1 --pool pool_1
every 1m
[ceph: root@ceph-rbd1-cg-ds-tf74dn-node1-installer /]# rbd mirror group snapshot schedule remove pool_1/group_1 1m
[ceph: root@ceph-rbd1-cg-ds-tf74dn-node1-installer /]# rbd mirror group snapshot schedule list --group group_1 --pool pool_1
every 1m


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 /]#

Comment 7 errata-xmlrpc 2025-06-26 12:29:29 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