File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed
Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments