From: Joao Eduardo Luis Date: Fri, 7 Mar 2014 19:45:50 +0000 (+0000) Subject: qa: workunits/mon/rbd_snaps_ops.sh: ENOTSUP on snap rm from copied pool X-Git-Tag: v0.78~63^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=38fd666ac6fbf1066cfad01ca35cae141e57fbf5;p=ceph.git qa: workunits/mon/rbd_snaps_ops.sh: ENOTSUP on snap rm from copied pool '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 --- diff --git a/qa/workunits/mon/rbd_snaps_ops.sh b/qa/workunits/mon/rbd_snaps_ops.sh index 29e94df7cad93..97c99966c528b 100755 --- a/qa/workunits/mon/rbd_snaps_ops.sh +++ b/qa/workunits/mon/rbd_snaps_ops.sh @@ -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