]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
qa/standalone/ceph-helpers.sh: remove osd down check
authorSage Weil <sage@redhat.com>
Sat, 23 Nov 2019 14:55:00 +0000 (08:55 -0600)
committerSage Weil <sage@redhat.com>
Sun, 24 Nov 2019 18:19:33 +0000 (12:19 -0600)
A kill doesn't induce a mark-down of the OSD with osd_fast_shutdown=true.

Signed-off-by: Sage Weil <sage@redhat.com>
qa/standalone/ceph-helpers.sh

index b367f951584bf21ac38417095c8efb844aece184..c4efcd8bf8fbd73a87d83816b6a6b6411ba95b97 100755 (executable)
@@ -293,8 +293,6 @@ function test_kill_daemon() {
         kill_daemon $pidfile TERM || return 1
     done
 
-    ceph osd dump | grep "osd.0 down" || return 1
-
     name_prefix=mgr
     for pidfile in $(find $dir 2>/dev/null | grep $name_prefix'[^/]*\.pid') ; do
         #
@@ -381,7 +379,6 @@ function test_kill_daemons() {
     # killing just the osd and verify the mon still is responsive
     #
     kill_daemons $dir TERM osd || return 1
-    ceph osd dump | grep "osd.0 down" || return 1
     #
     # kill the mgr
     #
@@ -936,8 +933,10 @@ function test_wait_for_osd() {
     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_osd up 0 || return 1
-    kill_daemons $dir TERM osd || return 1
+    wait_for_osd up 1 || return 1
+    kill_daemons $dir TERM osd.0 || return 1
     wait_for_osd down 0 || return 1
     ( TIMEOUT=1 ; ! wait_for_osd up 0 ) || return 1
     teardown $dir || return 1