Skip to content

Commit

Permalink
fix ovn nb/sb health check (#2019)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangzujian committed Nov 7, 2022
1 parent ce4861f commit 97424b1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dist/images/ovn-healthcheck.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,11 @@ sb_role=$(ovn-appctl -t /var/run/ovn/ovnsb_db.ctl cluster/status OVN_Southbound

if ! echo ${nb_status} | grep -v "failed"; then
echo "nb health check failed"
exit 1
fi
if ! echo ${sb_status} | grep -v "failed"; then
echo "sb health check failed"
exit 1
fi

if echo ${nb_status} | grep "disconnected" && echo ${nb_role} | grep "candidate"; then
Expand Down

0 comments on commit 97424b1

Please sign in to comment.