]> 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)
committerNathan Cutler <ncutler@suse.com>
Tue, 10 Sep 2019 16:58:29 +0000 (18:58 +0200)
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>
(cherry picked from commit dcdca44aa45e7dc5aab56da26caec644e32024a6)

qa/standalone/ceph-helpers.sh

index d562649ed92ec3e732318b5cfa82d19ea6ddb09a..5d4f205dfcf06d24aea646d03659a913f85f7486 100755 (executable)
@@ -1513,6 +1513,7 @@ function test_wait_for_health_ok() {
     run_osd $dir 1 || return 1
     run_osd $dir 2 || 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