]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/workunits/cephtool/test.sh: test osd tier CLI
authorGreg Farnum <greg@inktank.com>
Thu, 29 Aug 2013 00:47:42 +0000 (17:47 -0700)
committerGreg Farnum <greg@inktank.com>
Fri, 30 Aug 2013 21:06:33 +0000 (14:06 -0700)
Signed-off-by: Sage Weil <sage@inktank.com>
qa/workunits/cephtool/test.sh

index 7915e48a6edd0db6032fc77fd71da258803ccef3..6963ca3dce72388546cbc9ecf69fa5614fd8d57f 100755 (executable)
@@ -47,6 +47,21 @@ function check_response()
 }
 
 
+# tiering
+ceph osd pool create cache 2
+ceph osd pool create cache2 2
+ceph osd tier add data cache
+ceph osd tier add data cache2
+expect_false ceph osd tier add metadata cache
+ceph osd tier cache-mode cache writeback
+ceph osd tier cache-mode cache readonly
+ceph osd tier cache-mode cache none
+ceph osd tier remove data cache
+ceph osd tier add metadata cache
+ceph osd tier remove metadata cache
+ceph osd tier remove data cache2
+ceph osd pool delete cache cache --yes-i-really-really-mean-it
+ceph osd pool delete cache2 cache2 --yes-i-really-really-mean-it
 
 #
 # Assumes there are at least 3 MDSes and two OSDs