From 0de7ac79b5c91ec488d6665dbbfb23ada330da91 Mon Sep 17 00:00:00 2001 From: Mingxin Liu Date: Fri, 27 May 2016 18:42:52 +0800 Subject: [PATCH] test: cannot create pool snap on tier Signed-off-by: Mingxin Liu --- qa/workunits/cephtool/test.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/qa/workunits/cephtool/test.sh b/qa/workunits/cephtool/test.sh index 914705055bdf..f2fa3dd26300 100755 --- a/qa/workunits/cephtool/test.sh +++ b/qa/workunits/cephtool/test.sh @@ -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 -- 2.47.3