Merge "[Ceph-Mon] Check for ceph-mon messenger V2"
This commit is contained in:
commit
69fabcc1e4
@ -15,10 +15,22 @@ else
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
function check_mon_msgr2 {
|
||||||
|
if [[ -z "$(ceph mon versions | grep ceph\ version | grep -v nautilus)" ]]; then
|
||||||
|
if ceph health detail|grep -i "MON_MSGR2_NOT_ENABLED"; then
|
||||||
|
echo "ceph-mon msgr v2 not enabled on all ceph mons so enabling"
|
||||||
|
ceph mon enable-msgr2
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
function watch_mon_health {
|
function watch_mon_health {
|
||||||
while [ true ]; do
|
while [ true ]; do
|
||||||
echo "checking for zombie mons"
|
echo "checking for zombie mons"
|
||||||
/tmp/moncheck-reap-zombies.py || true
|
/tmp/moncheck-reap-zombies.py || true
|
||||||
|
echo "checking for ceph-mon msgr v2"
|
||||||
|
check_mon_msgr2
|
||||||
echo "sleep 30 sec"
|
echo "sleep 30 sec"
|
||||||
sleep 30
|
sleep 30
|
||||||
done
|
done
|
||||||
|
Loading…
x
Reference in New Issue
Block a user