]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/standalone/mon/misc.sh: tweak test to be more robust
authorSage Weil <sage@redhat.com>
Thu, 6 Dec 2018 20:16:48 +0000 (14:16 -0600)
committerSage Weil <sage@redhat.com>
Thu, 3 Jan 2019 17:17:31 +0000 (11:17 -0600)
Signed-off-by: Sage Weil <sage@redhat.com>
qa/standalone/mon/misc.sh

index c03f7df2014f8f92ac15d2116676c3258c5ef71e..4416cb451a64504d1d918901f55b8e6018d3ac1a 100755 (executable)
@@ -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