Bug 1890109 - [rbd_support] passing invalid interval removes entire schedule
Summary: [rbd_support] passing invalid interval removes entire schedule
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Ceph Storage
Classification: Red Hat Storage
Component: RBD-Mirror
Version: 4.2
Hardware: Unspecified
OS: Unspecified
unspecified
low
Target Milestone: ---
: 5.1
Assignee: Sunny Kumar
QA Contact: Gopi
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-10-21 12:15 UTC by Gopi
Modified: 2022-04-04 10:20 UTC (History)
6 users (show)

Fixed In Version: ceph-16.2.7-49.el8cp
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-04-04 10:19:53 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Ceph Project Bug Tracker 53250 0 None None None 2022-01-06 15:16:12 UTC
Red Hat Product Errata RHSA-2022:1174 0 None None None 2022-04-04 10:20:24 UTC

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


Note You need to log in before you can comment on or make changes to this bug.