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 1890109

Summary: [rbd_support] passing invalid interval removes entire schedule
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: Gopi <gpatta>
Component: RBD-MirrorAssignee: Sunny Kumar <sunkumar>
Status: CLOSED ERRATA QA Contact: Gopi <gpatta>
Severity: low Docs Contact:
Priority: unspecified    
Version: 4.2CC: ceph-eng-bugs, ceph-qe-bugs, idryomov, sunkumar, tserlin, vereddy
Target Milestone: ---   
Target Release: 5.1   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ceph-16.2.7-49.el8cp Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-04-04 10:19:53 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 Gopi 2020-10-21 12:15:29 UTC
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)

Comment 2 Sunny Kumar 2021-11-16 12:51:58 UTC
Upstream tracker for delete issue:

https://tracker.ceph.com/issues/53250

Comment 10 Gopi 2022-03-09 14:02:14 UTC
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

Comment 12 errata-xmlrpc 2022-04-04 10:19:53 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 (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