]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/workunits: cephtool: pool needs to be a tier to be used as such
authorJoao Eduardo Luis <joao.luis@inktank.com>
Tue, 8 Jul 2014 18:22:49 +0000 (19:22 +0100)
committerSage Weil <sage@redhat.com>
Fri, 1 Aug 2014 23:58:56 +0000 (16:58 -0700)
Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
(cherry picked from commit 704b0a33f2071eabeb8c5b000a6805ef6d498961)

qa/workunits/cephtool/test.sh

index 72b7940e1ccf5a2fb7dffc3cb3ddfecc123b424c..ab4ff4671ec713f98fc1413ebf6095eb720a717d 100755 (executable)
@@ -208,6 +208,7 @@ function test_tiering()
 
   # check health check
   ceph osd pool create cache4 2
+  ceph osd tier add data 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
@@ -220,6 +221,7 @@ 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 pool delete cache4 cache4 --yes-i-really-really-mean-it
 
   # make sure 'tier remove' behaves as we expect