]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
test: s/osd_objectstore_type/osd_objectstore/ 16469/head
authorxie xingguo <xie.xingguo@zte.com.cn>
Fri, 21 Jul 2017 02:34:07 +0000 (10:34 +0800)
committerxie xingguo <xie.xingguo@zte.com.cn>
Sat, 22 Jul 2017 07:22:31 +0000 (15:22 +0800)
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
qa/workunits/cephtool/test.sh

index f23ec5ee7e2a20c5c9e7e0f892e3ff3814e067ab..1b2527065452411dfbe715149f08b15ed4abb7fe 100755 (executable)
@@ -1678,10 +1678,10 @@ function test_mon_osd_pool()
   ceph osd pool create ec_test 1 1 erasure
   ceph osd pool application enable ec_test rados
   set +e
-  ceph osd metadata | grep osd_objectstore_type | grep -qc bluestore
-  if [ $? -eq 0 ]; then
+  ceph osd count-metadata osd_objectstore | grep 'bluestore'
+  if [ $? -eq 1 ]; then # enable ec_overwrites on non-bluestore pools should fail
       ceph osd pool set ec_test allow_ec_overwrites true >& $TMPFILE
-      check_response $? 22 "pool must only be stored on bluestore for scrubbing to work"
+      check_response "pool must only be stored on bluestore for scrubbing to work" $? 22
   else
       ceph osd pool set ec_test allow_ec_overwrites true || return 1
       expect_false ceph osd pool set ec_test allow_ec_overwrites false