Skip to content

Commit

Permalink
update ovs health check, delete connection to ovn sb db (#1588)
Browse files Browse the repository at this point in the history
  • Loading branch information
hongzhen-ma committed Jun 9, 2022
1 parent d891a84 commit 34dc29d
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 13 deletions.
4 changes: 2 additions & 2 deletions charts/templates/monitor-deploy.yaml
Expand Up @@ -81,14 +81,14 @@ spec:
exec:
command:
- cat
- /var/run/ovn/ovnnb_db.pid
- /var/run/ovn/ovn-controller.pid
periodSeconds: 10
timeoutSeconds: 45
livenessProbe:
exec:
command:
- cat
- /var/run/ovn/ovnnb_db.pid
- /var/run/ovn/ovn-controller.pid
initialDelaySeconds: 30
periodSeconds: 10
failureThreshold: 5
Expand Down
4 changes: 2 additions & 2 deletions dist/images/install.sh
Expand Up @@ -3016,14 +3016,14 @@ spec:
exec:
command:
- cat
- /var/run/ovn/ovnnb_db.pid
- /var/run/ovn/ovn-controller.pid
periodSeconds: 10
timeoutSeconds: 45
livenessProbe:
exec:
command:
- cat
- /var/run/ovn/ovnnb_db.pid
- /var/run/ovn/ovn-controller.pid
initialDelaySeconds: 30
periodSeconds: 10
failureThreshold: 5
Expand Down
6 changes: 3 additions & 3 deletions dist/images/ovs-healthcheck.sh
Expand Up @@ -23,11 +23,11 @@ function gen_conn_str {
echo "$x"
}

echo Connecting OVN SB "$(gen_conn_str 6642)"
# echo Connecting OVN SB "$(gen_conn_str 6642)"
if [[ "$ENABLE_SSL" == "false" ]]; then
ovsdb-client list-dbs "$(gen_conn_str 6642)"
ovsdb-client list-dbs
else
ovsdb-client -p /var/run/tls/key -c /var/run/tls/cert -C /var/run/tls/cacert list-dbs "$(gen_conn_str 6642)"
ovsdb-client -p /var/run/tls/key -c /var/run/tls/cert -C /var/run/tls/cacert list-dbs
fi
alias ovs-ctl='/usr/share/openvswitch/scripts/ovs-ctl'
alias ovn-ctl='/usr/share/ovn/scripts/ovn-ctl'
Expand Down
4 changes: 2 additions & 2 deletions yamls/kube-ovn-dual-stack.yaml
Expand Up @@ -443,14 +443,14 @@ spec:
exec:
command:
- cat
- /var/run/ovn/ovnnb_db.pid
- /var/run/ovn/ovn-controller.pid
periodSeconds: 10
timeoutSeconds: 45
livenessProbe:
exec:
command:
- cat
- /var/run/ovn/ovnnb_db.pid
- /var/run/ovn/ovn-controller.pid
initialDelaySeconds: 30
periodSeconds: 10
failureThreshold: 5
Expand Down
4 changes: 2 additions & 2 deletions yamls/kube-ovn-ipv6.yaml
Expand Up @@ -415,14 +415,14 @@ spec:
exec:
command:
- cat
- /var/run/ovn/ovnnb_db.pid
- /var/run/ovn/ovn-controller.pid
periodSeconds: 10
timeoutSeconds: 45
livenessProbe:
exec:
command:
- cat
- /var/run/ovn/ovnnb_db.pid
- /var/run/ovn/ovn-controller.pid
initialDelaySeconds: 30
periodSeconds: 10
failureThreshold: 5
Expand Down
4 changes: 2 additions & 2 deletions yamls/kube-ovn.yaml
Expand Up @@ -458,14 +458,14 @@ spec:
exec:
command:
- cat
- /var/run/ovn/ovnnb_db.pid
- /var/run/ovn/ovn-controller.pid
periodSeconds: 10
timeoutSeconds: 45
livenessProbe:
exec:
command:
- cat
- /var/run/ovn/ovnnb_db.pid
- /var/run/ovn/ovn-controller.pid
initialDelaySeconds: 30
periodSeconds: 10
failureThreshold: 5
Expand Down

0 comments on commit 34dc29d

Please sign in to comment.