Skip to content

Commit

Permalink
qa: make sure "rados cppool" requires --yes-i-really-mean-it for RBD
Browse files Browse the repository at this point in the history
Safeguards in rados CLI tool isn't really the subject of this test, but
it fits nicely.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
(cherry picked from commit 2b135a2)
  • Loading branch information
idryomov authored and rishabh-d-dave committed Jan 29, 2024
1 parent 05f1325 commit e64819f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions qa/workunits/mon/rbd_snaps_ops.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ expect 'rbd --pool=test snap ls image' 0
expect 'rbd --pool=test snap rm image@snapshot' 0

expect 'ceph osd pool mksnap test snapshot' 22
expect 'rados -p test mksnap snapshot' 1

expect 'ceph osd pool delete test test --yes-i-really-really-mean-it' 0

Expand All @@ -52,6 +53,8 @@ expect 'rbd --pool test-foo snap create image@snapshot' 0
ceph osd pool delete test-bar test-bar --yes-i-really-really-mean-it || true
expect 'ceph osd pool create test-bar 8' 0
expect 'ceph osd pool application enable test-bar rbd'
# "rados cppool" without --yes-i-really-mean-it should fail
expect 'rados cppool test-foo test-bar' 1
expect 'rados cppool test-foo test-bar --yes-i-really-mean-it' 0
expect 'rbd --pool test-bar snap rm image@snapshot' 95
expect 'ceph osd pool delete test-foo test-foo --yes-i-really-really-mean-it' 0
Expand Down

0 comments on commit e64819f

Please sign in to comment.