-
Notifications
You must be signed in to change notification settings - Fork 442
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: use ovn/ovs-ctl to health check
- Loading branch information
Showing
3 changed files
with
17 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
#!/bin/bash | ||
set -euo pipefail | ||
|
||
ovn-nbctl show | ||
# wait 5 seconds | ||
ovn-sbctl -t 5 show | ||
alias ovn-ctl='/usr/share/openvswitch/scripts/ovn-ctl' | ||
|
||
ovn-ctl status_northd | ||
ovn-ctl status_ovnnb | ||
ovn-ctl status_ovnsb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,11 @@ | ||
#!/bin/bash | ||
set -euo pipefail | ||
|
||
ovn-nbctl show | ||
# wait 5 seconds | ||
ovn-sbctl -t 5 show | ||
alias ovn-ctl='/usr/share/openvswitch/scripts/ovn-ctl' | ||
|
||
ovn-ctl status_northd | ||
ovn-ctl status_ovnnb | ||
ovn-ctl status_ovnsb | ||
|
||
# For data consistency, only store leader address in endpoint | ||
echo $(cat /var/log/openvswitch/ovn-northd.log) | grep -oP "lock acquired(?!.*lock lost).*$" | ||
echo $(cat /var/log/openvswitch/ovn-northd.log) | grep -oP "lock acquired(?!.*lock lost).*$" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,9 @@ | ||
#!/bin/bash | ||
set -euo pipefail | ||
|
||
ovs-vsctl show | ||
alias ovs-ctl='/usr/share/openvswitch/scripts/ovs-ctl' | ||
alias ovn-ctl='/usr/share/openvswitch/scripts/ovn-ctl' | ||
|
||
ovs-ctl status | ||
ovn-ctl status_controller | ||
ovn-ctl status_controller_vtep |