]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
test: cannot create pool snap on tier 9348/head
authorMingxin Liu <mingxin@xsky.com>
Fri, 27 May 2016 10:42:52 +0000 (18:42 +0800)
committerMingxin Liu <mingxin@xsky.com>
Sat, 21 Jan 2017 17:26:43 +0000 (01:26 +0800)
Signed-off-by: Mingxin Liu <mingxin@xsky.com>
qa/workunits/cephtool/test.sh

index 914705055bdf782217a6b85aad493d1048f625d0..f2fa3dd26300610d0e95e87a7fa46fdcac2a0391 100755 (executable)
@@ -370,6 +370,15 @@ function test_tiering()
   ceph osd pool delete snap_base snap_base --yes-i-really-really-mean-it
   ceph osd pool delete snap_cache snap_cache --yes-i-really-really-mean-it
 
+  # make sure we can't create snapshot on tier
+  ceph osd pool create basex 2
+  ceph osd pool create cachex 2
+  ceph osd tier add basex cachex
+  expect_false ceph osd pool mksnap cache snapname
+  ceph osd tier remove basex cachex
+  ceph osd pool delete basex basex --yes-i-really-really-mean-it
+  ceph osd pool delete cachex cachex --yes-i-really-really-mean-it
+
   # make sure we can't create an ec pool tier
   ceph osd pool create eccache 2 2 erasure
   ceph osd pool create repbase 2