]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
test/osd/osd-*.sh: run mgr daemon for tests
authorSage Weil <sage@redhat.com>
Mon, 6 Mar 2017 23:47:11 +0000 (18:47 -0500)
committerSage Weil <sage@redhat.com>
Wed, 29 Mar 2017 15:39:25 +0000 (11:39 -0400)
Signed-off-by: Sage Weil <sage@redhat.com>
12 files changed:
src/test/erasure-code/test-erasure-code-plugins.sh
src/test/erasure-code/test-erasure-code.sh
src/test/erasure-code/test-erasure-eio.sh
src/test/osd/osd-bench.sh
src/test/osd/osd-config.sh
src/test/osd/osd-copy-from.sh
src/test/osd/osd-fast-mark-down.sh
src/test/osd/osd-markdown.sh
src/test/osd/osd-reactivate.sh
src/test/osd/osd-reuse-id.sh
src/test/osd/osd-scrub-repair.sh
src/test/osd/osd-scrub-snaps.sh

index 48c23195f3187cdf05f390e5d0ed5449cbdd95f6..ffba85b7f80efbd0abef9ac90de9dbcef6908877 100755 (executable)
@@ -43,6 +43,7 @@ function TEST_preload_warning() {
     for plugin in ${legacy_jerasure_plugins[*]} ${legacy_shec_plugins[*]}; do
         setup $dir || return 1
         run_mon $dir a --osd_erasure_code_plugins="${plugin}" || return 1 
+       run_mgr $dir x || return 1
         CEPH_ARGS='' ceph --admin-daemon $dir/ceph-mon.a.asok log flush || return 1
         run_osd $dir 0 --osd_erasure_code_plugins="${plugin}" || return 1 
         CEPH_ARGS='' ceph --admin-daemon $dir/ceph-osd.0.asok log flush || return 1
@@ -59,6 +60,7 @@ function TEST_preload_no_warning() {
     for plugin in ${plugins[*]}; do
         setup $dir || return 1
         run_mon $dir a --osd_erasure_code_plugins="${plugin}" || return 1 
+       run_mgr $dir x || return 1
         CEPH_ARGS='' ceph --admin-daemon $dir/ceph-mon.a.asok log flush || return 1
         run_osd $dir 0 --osd_erasure_code_plugins="${plugin}" || return 1 
         CEPH_ARGS='' ceph --admin-daemon $dir/ceph-osd.0.asok log flush || return 1
@@ -76,6 +78,7 @@ function TEST_preload_no_warning_default() {
     setup $dir || return 1
     run_mon $dir a || return 1 
     CEPH_ARGS='' ceph --admin-daemon $dir/ceph-mon.a.asok log flush || return 1
+    run_mgr $dir x || return 1
     run_osd $dir 0 || return 1 
     CEPH_ARGS='' ceph --admin-daemon $dir/ceph-osd.0.asok log flush || return 1
     ! grep "WARNING: osd_erasure_code_plugins" $dir/mon.a.log || return 1
@@ -90,6 +93,7 @@ function TEST_ec_profile_warning() {
 
     setup $dir || return 1
     run_mon $dir a || return 1 
+    run_mgr $dir x || return 1
     for id in $(seq 0 2) ; do
         run_osd $dir $id || return 1 
     done
index cec40eca815241cfdcc8516ede2a9ec23c199090..b4417f664f6cc3891062a6704bc911594f085aa7 100755 (executable)
@@ -30,6 +30,7 @@ function run() {
 
     setup $dir || return 1
     run_mon $dir a || return 1
+    run_mgr $dir x || return 1
     # check that erasure code plugins are preloaded
     CEPH_ARGS='' ceph --admin-daemon $dir/ceph-mon.a.asok log flush || return 1
     grep 'load: jerasure.*lrc' $dir/mon.a.log || return 1
index b78b420d3ec7b25b3e6039af2b03f3ffbe600677..710b20343e98bfb7a05b33a3d83dc7142f6f6924 100755 (executable)
@@ -32,6 +32,7 @@ function run() {
     for func in $funcs ; do
         setup $dir || return 1
         run_mon $dir a || return 1
+       run_mgr $dir x || return 1
         # check that erasure code plugins are preloaded
         CEPH_ARGS='' ceph --admin-daemon $dir/ceph-mon.a.asok log flush || return 1
         grep 'load: jerasure.*lrc' $dir/mon.a.log || return 1
index f14a35152f7d4542cf3b6590b8f3f08b247a58b9..c44eb28e56a7a6daf0b3ce0e12e11d8ae3ccd157 100755 (executable)
@@ -40,6 +40,7 @@ function TEST_bench() {
     local dir=$1
 
     run_mon $dir a || return 1
+    run_mgr $dir x || return 1
     run_osd $dir 0 || return 1
 
     local osd_bench_small_size_max_iops=$(CEPH_ARGS='' ceph-conf \
index a27862c2235cbc3a66930169eddecf3fecb2431d..2a924042a13749fcff917b70b61e3538131d10c5 100755 (executable)
@@ -40,6 +40,7 @@ function TEST_config_init() {
     local dir=$1
 
     run_mon $dir a || return 1
+    run_mgr $dir x || return 1
     local advance=1000
     local stale=1000
     local cache=500
@@ -57,6 +58,7 @@ function TEST_config_track() {
     local dir=$1
 
     run_mon $dir a || return 1
+    run_mgr $dir x || return 1
     run_osd $dir 0 || return 1
 
     local osd_map_cache_size=$(CEPH_ARGS='' ceph-conf \
index 3f94743ddafcbc628ca27074331323f4d70be53e..ce7c04dfe4ce3cd9f553241d28a1cd117d09597d 100755 (executable)
@@ -41,6 +41,7 @@ function TEST_copy_from() {
     local dir=$1
 
     run_mon $dir a || return 1
+    run_mgr $dir x || return 1
     run_osd $dir 0 || return 1
     run_osd $dir 1 || return 1
 
index e1bde8342107385debeeb370f859c585a65688d5..5c8f420fecbb4d3863d90575d470968d5a2ef897 100755 (executable)
@@ -53,6 +53,7 @@ function test_fast_kill() {
    # create cluster with 3 osds
    setup $dir || return 1
    run_mon $dir a --osd_pool_default_size=3 || return 1
+    run_mgr $dir x || return 1
    for oi in {0..2}; do
      run_osd $dir $oi || return 1
      pids[$oi]=$(cat $dir/osd.$oi.pid)
index f655021f3f4ae7235884a035c20fde897174c395..aa67d9e77068be89102aeebcd92728cbb9411871 100755 (executable)
@@ -56,6 +56,7 @@ function TEST_markdown_exceed_maxdown_count() {
     local dir=$1
 
     run_mon $dir a || return 1
+    run_mgr $dir x || return 1
     run_osd $dir 0 || return 1
     run_osd $dir 1 || return 1
     run_osd $dir 2 || return 1
@@ -75,6 +76,7 @@ function TEST_markdown_boot() {
     local dir=$1
 
     run_mon $dir a || return 1
+    run_mgr $dir x || return 1
     run_osd $dir 0 || return 1
     run_osd $dir 1 || return 1
     run_osd $dir 2 || return 1
@@ -96,6 +98,7 @@ function TEST_markdown_boot_exceed_time() {
     local dir=$1
 
     run_mon $dir a || return 1
+    run_mgr $dir x || return 1
     run_osd $dir 0 || return 1
     run_osd $dir 1 || return 1
     run_osd $dir 2 || return 1
index 311bda457bcaf9b22a7ad6711bfcab5c8bc8ce66..5088baf4eb4561d7686c2e2fa54fca767ff95eb0 100755 (executable)
@@ -37,6 +37,7 @@ function TEST_reactivate() {
     local dir=$1
 
     run_mon $dir a || return 1
+    run_mgr $dir x || return 1
     run_osd $dir 0 || return 1
 
     kill_daemons $dir TERM osd || return 1
index 74f3fe38699c43aeb3c032bff9255931fec56219..fb0afb138865280dd6546a18461b0b2ceb651399 100755 (executable)
@@ -37,6 +37,7 @@ function TEST_reuse_id() {
 
     setup $dir || return 1
     run_mon $dir a --osd_pool_default_size=1 || return 1
+    run_mgr $dir x || return 1
     run_osd $dir 0 || return 1
     run_osd $dir 1 || return 1
     wait_for_clean || return 1
index a912933c0c858ce271dbc1affba2bba189bdfd42..b98ef99034044eacf80f53f2db0029ed070ef8f6 100755 (executable)
@@ -75,6 +75,7 @@ function TEST_corrupt_and_repair_replicated() {
 
     setup $dir || return 1
     run_mon $dir a --osd_pool_default_size=2 || return 1
+    run_mgr $dir x || return 1
     run_osd $dir 0 || return 1
     run_osd $dir 1 || return 1
     wait_for_clean || return 1
@@ -182,6 +183,7 @@ function TEST_auto_repair_erasure_coded() {
     # Launch a cluster with 5 seconds scrub interval
     setup $dir || return 1
     run_mon $dir a || return 1
+    run_mgr $dir x || return 1
     local ceph_osd_args="--osd-scrub-auto-repair=true \
             --osd-deep-scrub-interval=5 \
             --osd-scrub-max-interval=5 \
@@ -227,6 +229,7 @@ function TEST_corrupt_and_repair_jerasure() {
 
     setup $dir || return 1
     run_mon $dir a || return 1
+    run_mgr $dir x || return 1
     for id in $(seq 0 3) ; do
         run_osd $dir $id || return 1
     done
@@ -247,6 +250,7 @@ function TEST_corrupt_and_repair_lrc() {
 
     setup $dir || return 1
     run_mon $dir a || return 1
+    run_mgr $dir x || return 1
     for id in $(seq 0 9) ; do
         run_osd $dir $id || return 1
     done
@@ -269,6 +273,7 @@ function TEST_unfound_erasure_coded() {
 
     setup $dir || return 1
     run_mon $dir a || return 1
+    run_mgr $dir x || return 1
     run_osd $dir 0 || return 1
     run_osd $dir 1 || return 1
     run_osd $dir 2 || return 1
@@ -324,6 +329,7 @@ function TEST_list_missing_erasure_coded() {
 
     setup $dir || return 1
     run_mon $dir a || return 1
+    run_mgr $dir x || return 1
     for id in $(seq 0 2) ; do
         run_osd $dir $id || return 1
     done
@@ -393,6 +399,7 @@ function TEST_corrupt_scrub_replicated() {
 
     setup $dir || return 1
     run_mon $dir a --osd_pool_default_size=2 || return 1
+    run_mgr $dir x || return 1
     run_osd $dir 0 || return 1
     run_osd $dir 1 || return 1
     wait_for_clean || return 1
@@ -1509,6 +1516,7 @@ function TEST_corrupt_scrub_erasure() {
 
     setup $dir || return 1
     run_mon $dir a || return 1
+    run_mgr $dir x || return 1
     for id in $(seq 0 2) ; do
         run_osd $dir $id || return 1
     done
@@ -2163,6 +2171,7 @@ function TEST_periodic_scrub_replicated() {
 
     setup $dir || return 1
     run_mon $dir a --osd_pool_default_size=2 || return 1
+    run_mgr $dir x || return 1
     local ceph_osd_args="--osd-scrub-interval-randomize-ratio=0 --osd-deep-scrub-randomize-ratio=0"
     run_osd $dir 0 $ceph_osd_args || return 1
     run_osd $dir 1 $ceph_osd_args || return 1
index 558ce6e2d61b2ccb16badd8c56e3f98f01eece7d..5410e820c4ab4c09de1c434650b9db4e0d50176f 100755 (executable)
@@ -40,6 +40,7 @@ function TEST_scrub_snaps() {
 
     setup $dir || return 1
     run_mon $dir a --osd_pool_default_size=1 || return 1
+    run_mgr $dir x || return 1
     run_osd $dir 0 || return 1
 
     wait_for_clean || return 1