]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa: workunits/mon/rbd_snaps_ops.sh: ENOTSUP on snap rm from copied pool 1401/head
authorJoao Eduardo Luis <joao.luis@inktank.com>
Fri, 7 Mar 2014 19:45:50 +0000 (19:45 +0000)
committerJoao Eduardo Luis <joao.luis@inktank.com>
Fri, 7 Mar 2014 19:49:56 +0000 (19:49 +0000)
'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 <joao.luis@inktank.com>
qa/workunits/mon/rbd_snaps_ops.sh

index 29e94df7cad9325d8418fbd72405f8a281fe4648..97c99966c528b174bcf91e116a5d6c5512acaf4f 100755 (executable)
@@ -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