From 1e36be9567a65c69032bee4505ccb10b6b44afc8 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Mon, 19 Aug 2019 12:28:31 -0500 Subject: [PATCH] qa/standalone/mon/health-mute.sh: fix up rachet test Make sure we provide time for the mute to get cleared out by tick(). Signed-off-by: Sage Weil --- qa/standalone/mon/health-mute.sh | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/qa/standalone/mon/health-mute.sh b/qa/standalone/mon/health-mute.sh index 4e1b10be340..226d6ab31fa 100755 --- a/qa/standalone/mon/health-mute.sh +++ b/qa/standalone/mon/health-mute.sh @@ -75,20 +75,33 @@ function TEST_mute() { ceph osd down 0 1 ceph -s ceph health detail | grep OSD_DOWN || return 1 + ceph health mute OSD_DOWN kill_daemons $dir TERM osd.0 ceph osd unset noup + sleep 10 ceph -s ceph health detail | grep OSD_DOWN || return 1 + ceph health detail | grep '1 osds down' || return 1 ceph health | grep HEALTH_OK || return 1 - sleep 10 + + sleep 10 # give time for mon tick to rachet the mute ceph osd set noup ceph health mute OSDMAP_FLAGS ceph -s + ceph health detail ceph health | grep HEALTH_OK || return 1 + ceph osd down 1 ceph -s + ceph health detail + ceph health detail | grep '2 osds down' || return 1 + + sleep 10 # give time for mute to clear + ceph -s + ceph health detail ceph health | grep HEALTH_WARN || return 1 + ceph health detail | grep '2 osds down' || return 1 teardown $dir || return 1 } -- 2.39.5