Skip to content

Commit

Permalink
qa: workunits/mon/rbd_snaps_ops.sh: ENOTSUP on snap rm from copied pool
Browse files Browse the repository at this point in the history
'rados cppool' copies the contents but that doesn't make the destination
pool an unmanaged snaps pool.  Therefore, we must get an ENOTSUP when
we try to remove an unmanaged snap from a not-unmanaged pool.

Signed-off-by: Joao Eduardo Luis <[email protected]>
  • Loading branch information
Joao Eduardo Luis committed Mar 7, 2014
1 parent c13e1b7 commit 38fd666
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions qa/workunits/mon/rbd_snaps_ops.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,18 @@ expect 'ceph osd pool mksnap test snapshot' 22

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

# reproduce 7210 and expect it to be fixed
# basically create such a scenario where we end up deleting what used to
# be an unmanaged snapshot from a not-unmanaged pool

expect 'rados mkpool test-foo' 0
expect 'rbd --pool test-foo create --size 1024 image' 0
expect 'rbd --pool test-foo snap create image@snapshot' 0
expect 'rados mkpool test-bar' 0
expect 'rados cppool test-foo test-bar' 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
expect 'ceph osd pool delete test-bar test-bar --yes-i-really-really-mean-it' 0


echo OK

0 comments on commit 38fd666

Please sign in to comment.