summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSage Weil <sage@inktank.com>2013-08-27 14:07:01 -0700
committerSage Weil <sage@inktank.com>2013-08-27 15:48:50 -0700
commit68945f1e93d3359e7fcc90c5a725cca3b5398685 (patch)
tree466c01866e1481f1dd155512bd28f0d6d94da453
parenta6689e1d1132a730126144dfff65dc0284a4920f (diff)
downloadceph-68945f1e93d3359e7fcc90c5a725cca3b5398685.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.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/qa/workunits/cephtool/test.sh b/qa/workunits/cephtool/test.sh
index 7915e48a6ed..1c43bf82fd1 100755
--- a/qa/workunits/cephtool/test.sh
+++ b/qa/workunits/cephtool/test.sh
@@ -47,6 +47,22 @@ 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
+expect_false ceph osd tier remove data cache
+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