]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/standalone: make sure an osd is running before create_rbd_pool
authorSage Weil <sage@redhat.com>
Tue, 5 Mar 2019 15:19:38 +0000 (09:19 -0600)
committerNathan Cutler <ncutler@suse.com>
Wed, 16 Oct 2019 10:01:27 +0000 (12:01 +0200)
'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 <sage@redhat.com>
(cherry picked from commit cba0483b090a6370390e8ed88d3f9d7767d56be5)

qa/standalone/ceph-helpers.sh
qa/standalone/erasure-code/test-erasure-eio.sh
qa/standalone/mon/misc.sh
qa/standalone/mon/osd-crush.sh
qa/standalone/osd/osd-rep-recov-eio.sh

index d1b82766352b61898f77a1d16a205e55f88d9b34..65fd6ddf6ef8bf0397ba6ebd9b445884d64f7e1b 100755 (executable)
@@ -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
index 195362cacb967a64957bdcb9618e6c964d3c0aaf..d15aaa82eeade2745a0f1351ae797d937ddfdb3d 100755 (executable)
@@ -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
index e025e0708125ad92e3f0e0f5a8ebcc1bdf8742fd..4e0a2b6a15e9c8b0acd3f1ddffad97a137d358e6 100755 (executable)
@@ -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
index 747e30db5ae0cff59795d293b1dca31c8a304c67..3cd4821f7bc41a2571101086c7cc07502dace5ba 100755 (executable)
@@ -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
index f4babde19e0943af8da23b6b9e7e53abbdc019fa..af6b57e1649bd765ae61c7b609c8a999188bd0b3 100755 (executable)
@@ -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