]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/standalone/ceph-helpers: fix health_ok test
authorSage Weil <sage@redhat.com>
Tue, 5 Feb 2019 11:41:28 +0000 (05:41 -0600)
committerSage Weil <sage@redhat.com>
Thu, 7 Feb 2019 18:10:34 +0000 (12:10 -0600)
Stopping the osd daemon won't reliably get you HEALTH_WARN or ERR; you have
to make sure it is also marked down.

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

index 1a613c34fa790dfafea77cd535dc2dc164889e4f..3ed25aeddbbf2a9e36e3034acbda01d26e4b47bc 100755 (executable)
@@ -1597,6 +1597,7 @@ function test_wait_for_health_ok() {
     run_mgr $dir x --mon_pg_warn_min_per_osd=0 || return 1
     run_osd $dir 0 || return 1
     kill_daemons $dir TERM osd || return 1
+    ceph osd down 0 || return 1
     ! TIMEOUT=1 wait_for_health_ok || return 1
     activate_osd $dir 0 || return 1
     wait_for_health_ok || return 1