Description of problem: The thing is that when we don't specify the interval, it will delete all the schedules at the specified level. When we don't specify a pool/namespace/name, that implies it's the global schedule level. So, we can move "<interval> <start-time>" as optional arguments. Version-Release number of selected component (if applicable): ceph version 14.2.11-49.el8cp (d2e1a152e83b4914428c2de76e9dc1e9e7bfc023) nautilus (stable)
Upstream tracker for delete issue: https://tracker.ceph.com/issues/53250
Working as expected with latest build. [ceph: root@ceph-rbd1-gpatta-k6rlay-node1-installer ~]# ceph -v ceph version 16.2.7-80.el8cp (5d0aa22dfacd69406394a8b5c2942d15e9d910cf) pacific (stable) [ceph: root@ceph-rbd1-gpatta-k6rlay-node1-installer ~]# rbd mirror snapshot schedule remove --pool YPwgjpNmIU_tier_1_rbd_mirror_pool --image bVnPRiwiqr_tier_1_rbd_mirror_image test rbd: rbd mirror snapshot schedule remove failed: (22) Invalid argument: Invalid interval (test) [ceph: root@ceph-rbd1-gpatta-k6rlay-node1-installer ~]# rbd mirror snapshot schedule ls --pool YPwgjpNmIU_tier_1_rbd_mirror_pool --image bVnPRiwiqr_tier_1_rbd_mirror_image --recursive POOL NAMESPACE IMAGE SCHEDULE YPwgjpNmIU_tier_1_rbd_mirror_pool bVnPRiwiqr_tier_1_rbd_mirror_image every 1m, every 1h, every 5m
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 (Moderate: Red Hat Ceph Storage 5.1 Security, Enhancement, 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-2022:1174