From: Sage Weil Date: Tue, 5 Mar 2019 15:19:38 +0000 (-0600) Subject: qa/standalone: make sure an osd is running before create_rbd_pool X-Git-Tag: v12.2.13~93^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=44cc3deab15b9f532acfb3da9b6ed2962dc954f9;p=ceph.git qa/standalone: make sure an osd is running before create_rbd_pool 'rbd pool init' now does IO. Drop the pool, or change the pool size to 1. Fixes: http://tracker.ceph.com/issues/38585 Signed-off-by: Sage Weil (cherry picked from commit cba0483b090a6370390e8ed88d3f9d7767d56be5) --- diff --git a/qa/standalone/ceph-helpers.sh b/qa/standalone/ceph-helpers.sh index d1b82766352..65fd6ddf6ef 100755 --- a/qa/standalone/ceph-helpers.sh +++ b/qa/standalone/ceph-helpers.sh @@ -490,13 +490,17 @@ function test_run_mon() { setup $dir || return 1 - run_mon $dir a --mon-initial-members=a || 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 0 + # rbd has not been deleted / created, hence it has pool id 1 ceph osd dump | grep "pool 1 'rbd'" || return 1 kill_daemons $dir || return 1 - run_mon $dir a || return 1 + run_mon $dir a --osd_pool_default_size=3 || return 1 + run_osd $dir 0 || return 1 + 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 @@ -1461,6 +1465,7 @@ function test_wait_for_clean() { setup $dir || return 1 run_mon $dir a --osd_pool_default_size=1 || return 1 + run_osd $dir 0 || return 1 run_mgr $dir x || return 1 create_rbd_pool || return 1 ! TIMEOUT=1 wait_for_clean || return 1 diff --git a/qa/standalone/erasure-code/test-erasure-eio.sh b/qa/standalone/erasure-code/test-erasure-eio.sh index 195362cacb9..d15aaa82eea 100755 --- a/qa/standalone/erasure-code/test-erasure-eio.sh +++ b/qa/standalone/erasure-code/test-erasure-eio.sh @@ -33,7 +33,6 @@ function run() { setup $dir || return 1 run_mon $dir a || return 1 run_mgr $dir x || return 1 - create_rbd_pool || return 1 # check that erasure code plugins are preloaded CEPH_ARGS='' ceph --admin-daemon $(get_asok_path mon.a) log flush || return 1 diff --git a/qa/standalone/mon/misc.sh b/qa/standalone/mon/misc.sh index e025e070812..4e0a2b6a15e 100755 --- a/qa/standalone/mon/misc.sh +++ b/qa/standalone/mon/misc.sh @@ -39,7 +39,6 @@ function TEST_osd_pool_get_set() { setup $dir || return 1 run_mon $dir a || return 1 - create_rbd_pool || return 1 create_pool $TEST_POOL 8 local flag diff --git a/qa/standalone/mon/osd-crush.sh b/qa/standalone/mon/osd-crush.sh index 747e30db5ae..3cd4821f7bc 100755 --- a/qa/standalone/mon/osd-crush.sh +++ b/qa/standalone/mon/osd-crush.sh @@ -210,7 +210,7 @@ function TEST_crush_rename_bucket() { function TEST_crush_reject_empty() { local dir=$1 - run_mon $dir a || return 1 + run_mon $dir a --osd_pool_default_size=1 || return 1 # should have at least one OSD run_osd $dir 0 || return 1 create_rbd_pool || return 1 diff --git a/qa/standalone/osd/osd-rep-recov-eio.sh b/qa/standalone/osd/osd-rep-recov-eio.sh index f4babde19e0..af6b57e1649 100755 --- a/qa/standalone/osd/osd-rep-recov-eio.sh +++ b/qa/standalone/osd/osd-rep-recov-eio.sh @@ -27,13 +27,14 @@ function run() { export CEPH_ARGS CEPH_ARGS+="--fsid=$(uuidgen) --auth-supported=none " CEPH_ARGS+="--mon-host=$CEPH_MON " - CEPH_ARGS+="--osd-objectstore=filestore " + CEPH_ARGS+="--osd-objectstore=filestore --osd_pool_default_size=1 " local funcs=${@:-$(set | sed -n -e 's/^\(TEST_[0-9a-z_]*\) .*/\1/p')} for func in $funcs ; do setup $dir || return 1 run_mon $dir a || return 1 run_mgr $dir x || return 1 + run_osd $dir 0 || return 1 create_rbd_pool || return 1 $func $dir || return 1