summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGreg Farnum <greg@inktank.com>2013-08-28 17:47:42 -0700
committerGreg Farnum <greg@inktank.com>2013-08-30 14:06:33 -0700
commitefb7ab2ae4bfdf790bf59eec21f341b0886919d2 (patch)
treea4803a76a8416c46e975e0b48558bb709914128f
parent4e439857a694b95e2d5636aac569ae0ad80cf54d (diff)
downloadceph-efb7ab2ae4bfdf790bf59eec21f341b0886919d2.tar.gz
qa/workunits/cephtool/test.sh: test osd tier CLI
Signed-off-by: Sage Weil <sage@inktank.com>
-rwxr-xr-xqa/workunits/cephtool/test.sh15
1 files changed, 15 insertions, 0 deletions
diff --git a/qa/workunits/cephtool/test.sh b/qa/workunits/cephtool/test.sh
index 7915e48a6ed..6963ca3dce7 100755
--- a/qa/workunits/cephtool/test.sh
+++ b/qa/workunits/cephtool/test.sh
@@ -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