Cleanup #16989
open'rbd mirror pool' commands should report error if action not executed
0%
Description
Some examples:
1. rbd mirror pool enable <PoolName> pool :- Doesn't throw a warning message when the pool is already enabled
2. rbd mirror pool disable <PoolName> :- Doesn't throw a warning message when the pool is already disabled
3. rbd mirror pool enable pool1 image :- Changing the mode from pool to image or vice versa should throw a warning
Updated by Rishabh Dave about 6 years ago
Looks like it's already resolved -
$ ./bin/rbd mirror pool enable rbd pool
$ ./bin/rbd mirror pool enable rbd pool
mirroring is already configured for pool mode
$ ./bin/rbd mirror pool disable rbd
$ ./bin/rbd mirror pool disable rbd
mirroring is already disabled
$ ./bin/rbd mirror pool enable rbd pool
$ ./bin/rbd mirror pool enable rbd image
note: changing mirroring mode from pool to image
$ ./bin/rbd mirror pool disable rbd
$ ./bin/rbd mirror pool enable rbd image
$ ./bin/rbd mirror pool enable rbd pool
note: changing mirroring mode from image to pool
Updated by Rishabh Dave about 6 years ago
Sorry, I've checked against master and not jewel.
Updated by Jason Dillaman about 6 years ago
... and make sure you test all "rbd mirror pool XYZ" commands, not just the three listed cases.