From 63eb2551bc0230884dfe4a07f4820452fe554620 Mon Sep 17 00:00:00 2001 From: lut777 Date: Thu, 23 Jun 2022 10:49:20 +0800 Subject: [PATCH] fix: diskfull may lead to wrong raft status for ovs db (#1635) --- dist/images/ovn-healthcheck.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dist/images/ovn-healthcheck.sh b/dist/images/ovn-healthcheck.sh index 0b8bf9e0a44..91f4d2074a4 100755 --- a/dist/images/ovn-healthcheck.sh +++ b/dist/images/ovn-healthcheck.sh @@ -7,3 +7,6 @@ alias ovn-ctl='/usr/share/ovn/scripts/ovn-ctl' ovn-ctl status_northd ovn-ctl status_ovnnb | grep -q '^running' ovn-ctl status_ovnsb | grep -q '^running' + +ovn-appctl -t /var/run/ovn/ovnnb_db.ctl cluster/status OVN_Northbound | grep Status | grep -v "failed" +ovn-appctl -t /var/run/ovn/ovnsb_db.ctl cluster/status OVN_Southbound | grep Status | grep -v "failed"