mirror of
https://github.com/ceph/ceph
synced 2025-01-10 21:20:46 +00:00
qa/standalone/mon/misc.sh: tweak test to be more robust
Signed-off-by: Sage Weil <sage@redhat.com>
This commit is contained in:
parent
2f786f3299
commit
7559a47f5b
@ -125,8 +125,12 @@ function TEST_mon_add_to_single_mon() {
|
||||
# without the fix of #5454, mon.a will assert failure at seeing the MMonJoin
|
||||
# from mon.b
|
||||
run_mon $dir b --public-addr $MONB || return 1
|
||||
# make sure mon.b get's it's join request in first, then
|
||||
sleep 2
|
||||
# wait for the quorum
|
||||
timeout 120 ceph -s > /dev/null || return 1
|
||||
ceph mon dump
|
||||
ceph mon dump -f json-pretty
|
||||
local num_mons
|
||||
num_mons=$(ceph mon dump --format=json 2>/dev/null | jq ".mons | length") || return 1
|
||||
[ $num_mons == 2 ] || return 1
|
||||
|
Loading…
Reference in New Issue
Block a user