Bug #53250
[rbd_support] passing invalid interval removes entire schedule
0%
Description
If we provide a random string in the snapshot remove command the entire schedule associated with the image is getting removed.
------------------------
sunny@ws build -> rbd mirror snapshot schedule ls --pool data --image image1 --cluster site-a --recursive
POOL NAMESPACE IMAGE SCHEDULE
sunny@ws build -> rbd mirror snapshot schedule add --pool data --image image1 1m --cluster site-a
sunny@ws build -> rbd mirror snapshot schedule ls --pool data --image image1 --cluster site-a --recursive
POOL NAMESPACE IMAGE SCHEDULE
data image1 every 1m
sunny@ws build -> rbd mirror snapshot schedule ls --pool data --image image1 --cluster site-a --recursive
POOL NAMESPACE IMAGE SCHEDULE
data image1 every 1m
sunny@ws build -> rbd mirror snapshot schedule add --pool data --image image1 1h --cluster site-a
sunny@ws build -> rbd mirror snapshot schedule add --pool data --image image1 5m --cluster site-a
sunny@ws build -> rbd mirror snapshot schedule ls --pool data --image image1 --cluster site-a --recursive
POOL NAMESPACE IMAGE SCHEDULE
data image1 every 1m, every 1h, every 5m
sunny@ws build -> rbd mirror snapshot schedule remove --pool data --image image1 test --cluster site-a
rbd: rbd mirror snapshot schedule remove failed: (22) Invalid argument: Invalid interval (test)
sunny@ws build -> rbd mirror snapshot schedule ls --pool data --image image1 --cluster site-a --recursive
POOL NAMESPACE IMAGE SCHEDULE
Related issues
History
#1 Updated by Sunny Kumar about 1 year ago
- Status changed from New to Fix Under Review
- Pull request ID set to 43910
#2 Updated by Ilya Dryomov 12 months ago
- Subject changed from rbd mirror snapshot schedule remove command is broken to [rbd_support] passing invalid interval removes entire schedule
- Backport set to octopus,pacific
#3 Updated by Ilya Dryomov 12 months ago
- Status changed from Fix Under Review to Pending Backport
#4 Updated by Backport Bot 12 months ago
- Copied to Backport #54168: pacific: [rbd_support] passing invalid interval removes entire schedule added
#5 Updated by Backport Bot 12 months ago
- Copied to Backport #54169: octopus: [rbd_support] passing invalid interval removes entire schedule added
#6 Updated by Ilya Dryomov 12 months ago
- Tags deleted (
rbd)
#7 Updated by Ilya Dryomov 6 months ago
- Status changed from Pending Backport to Resolved