Skip to content

Commit 1e36be9

Browse files
committed
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 <[email protected]>
1 parent 9352fc9 commit 1e36be9

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

qa/standalone/mon/health-mute.sh

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,20 +75,33 @@ function TEST_mute() {
7575
ceph osd down 0 1
7676
ceph -s
7777
ceph health detail | grep OSD_DOWN || return 1
78+
7879
ceph health mute OSD_DOWN
7980
kill_daemons $dir TERM osd.0
8081
ceph osd unset noup
82+
sleep 10
8183
ceph -s
8284
ceph health detail | grep OSD_DOWN || return 1
85+
ceph health detail | grep '1 osds down' || return 1
8386
ceph health | grep HEALTH_OK || return 1
84-
sleep 10
87+
88+
sleep 10 # give time for mon tick to rachet the mute
8589
ceph osd set noup
8690
ceph health mute OSDMAP_FLAGS
8791
ceph -s
92+
ceph health detail
8893
ceph health | grep HEALTH_OK || return 1
94+
8995
ceph osd down 1
9096
ceph -s
97+
ceph health detail
98+
ceph health detail | grep '2 osds down' || return 1
99+
100+
sleep 10 # give time for mute to clear
101+
ceph -s
102+
ceph health detail
91103
ceph health | grep HEALTH_WARN || return 1
104+
ceph health detail | grep '2 osds down' || return 1
92105

93106
teardown $dir || return 1
94107
}

0 commit comments

Comments
 (0)