Bug #53250
closed[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
Updated by Sunny Kumar over 2 years ago
- Status changed from New to Fix Under Review
- Pull request ID set to 43910
Updated by Ilya Dryomov about 2 years 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
Updated by Ilya Dryomov about 2 years ago
- Status changed from Fix Under Review to Pending Backport
Updated by Backport Bot about 2 years ago
- Copied to Backport #54168: pacific: [rbd_support] passing invalid interval removes entire schedule added
Updated by Backport Bot about 2 years ago
- Copied to Backport #54169: octopus: [rbd_support] passing invalid interval removes entire schedule added
Updated by Ilya Dryomov about 2 years ago
- Translation missing: en.field_tag_list deleted (
rbd)
Updated by Ilya Dryomov almost 2 years ago
- Status changed from Pending Backport to Resolved