]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/workunits: cephtool: adjust pool name where missing as it has changed
authorJoao Eduardo Luis <joao.luis@inktank.com>
Thu, 10 Jul 2014 23:40:47 +0000 (00:40 +0100)
committerSage Weil <sage@redhat.com>
Fri, 1 Aug 2014 23:59:08 +0000 (16:59 -0700)
Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
(cherry picked from commit 50e93c2138978f7f7c2fbafacc1611c8705a8eab)

qa/workunits/cephtool/test.sh

index 4d3fa75151bca3c719d97e3622d78c8c6c576497..73267eb79d0776b031cd4707bffe4fa928198230 100755 (executable)
@@ -210,8 +210,9 @@ function test_tiering()
   ceph osd pool delete datapool datapool --yes-i-really-really-mean-it
 
   # check health check
+  ceph osd pool create datapool 2
   ceph osd pool create cache4 2
-  ceph osd tier add data cache4
+  ceph osd tier add datapool cache4
   ceph osd pool set cache4 target_max_objects 5
   ceph osd pool set cache4 target_max_bytes 1000
   for f in `seq 1 5` ; do
@@ -224,8 +225,9 @@ function test_tiering()
   ceph health | grep WARN | grep cache4
   ceph health detail | grep cache4 | grep 'target max' | grep objects
   ceph health detail | grep cache4 | grep 'target max' | grep 'B'
-  ceph osd tier remove data cache4
+  ceph osd tier remove datapool cache4
   ceph osd pool delete cache4 cache4 --yes-i-really-really-mean-it
+  ceph osd pool delete datapool datapool --yes-i-really-really-mean-it
 
   # make sure 'tier remove' behaves as we expect
   # i.e., removing a tier from a pool that's not its base pool only