From: Sage Weil Date: Fri, 8 Mar 2019 23:21:05 +0000 (-0600) Subject: qa/standalone/ceph-helpers.sh: fix test_run_mon X-Git-Tag: v14.1.1~8^2~3 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=1e2b0c7252c9a7db82e19e351cf734589544e292;p=ceph.git qa/standalone/ceph-helpers.sh: fix test_run_mon - Only create each osd once - forget the first osdmap dump test; it's pointless Signed-off-by: Sage Weil --- diff --git a/qa/standalone/ceph-helpers.sh b/qa/standalone/ceph-helpers.sh index 20c345913025..8850a235000f 100755 --- a/qa/standalone/ceph-helpers.sh +++ b/qa/standalone/ceph-helpers.sh @@ -496,11 +496,8 @@ function test_run_mon() { setup $dir || return 1 - run_mon $dir a --mon-initial-members=a --osd_pool_default_size=1 || return 1 - run_osd $dir 0 || return 1 - create_rbd_pool || return 1 - # rbd has not been deleted / created, hence it has pool id 1 - ceph osd dump | grep "pool 1 'rbd'" || return 1 + run_mon $dir a --mon-initial-members=a || return 1 + ceph mon dump | grep "mon.a" || return 1 kill_daemons $dir || return 1 run_mon $dir a --osd_pool_default_size=3 || return 1 @@ -508,8 +505,7 @@ function test_run_mon() { run_osd $dir 1 || return 1 run_osd $dir 2 || return 1 create_rbd_pool || return 1 - # rbd has been deleted / created, hence it does not have pool id 0 - ! ceph osd dump | grep "pool 1 'rbd'" || return 1 + ceph osd dump | grep "pool 1 'rbd'" || return 1 local size=$(CEPH_ARGS='' ceph --format=json daemon $(get_asok_path mon.a) \ config get osd_pool_default_size) test "$size" = '{"osd_pool_default_size":"3"}' || return 1