mirror of
https://github.com/ceph/ceph
synced 2025-02-21 18:17:42 +00:00
Merge pull request #28328 from tchaikov/wip-fix-ceph-helper-test
qa/standalone/ceph-helpers: resurrect all OSD before waiting for health Reviewed-by: Sage Weil <sage@redhat.com>
This commit is contained in:
commit
f3c9a47d6b
@ -1,7 +1,7 @@
|
||||
#!/usr/bin/env bash
|
||||
set -e
|
||||
|
||||
if [ ! -e Makefile -o ! -d bin ]; then
|
||||
if [ ! -e CMakeCache.txt -o ! -d bin ]; then
|
||||
echo 'run this from the build dir'
|
||||
exit 1
|
||||
fi
|
||||
|
@ -1628,13 +1628,18 @@ function test_wait_for_health_ok() {
|
||||
setup $dir || return 1
|
||||
run_mon $dir a --osd_failsafe_full_ratio=.99 --mon_pg_warn_min_per_osd=0 || return 1
|
||||
run_mgr $dir x --mon_pg_warn_min_per_osd=0 || return 1
|
||||
# start osd_pool_default_size OSDs
|
||||
run_osd $dir 0 || return 1
|
||||
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
|
||||
# expect TOO_FEW_OSDS warning
|
||||
! TIMEOUT=1 wait_for_health_ok || return 1
|
||||
# resurrect all OSDs
|
||||
activate_osd $dir 0 || return 1
|
||||
activate_osd $dir 1 || return 1
|
||||
activate_osd $dir 2 || return 1
|
||||
wait_for_health_ok || return 1
|
||||
teardown $dir || return 1
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user