Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug 1990631: ovnkube: use ovn-nbctl daemon monitor mode to restart and log issues #1182

Merged
merged 1 commit into from Aug 27, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 2 additions & 3 deletions bindata/network/ovn-kubernetes/ovnkube-master.yaml
Expand Up @@ -794,14 +794,13 @@ spec:
--detach \
-p /ovn-cert/tls.key -c /ovn-cert/tls.crt -C /ovn-ca/ca-bundle.crt \
--db "{{.OVN_NB_DB_LIST}}" --log-file=/run/ovn/ovn-nbctl.log \
--monitor \
--unixctl=/var/run/ovn/ovn-nbctl.ctl \
-vreconnect:file:info)

# include nbctl daemon logging, allow for ovn-nbctl to create the log file
tail -F /run/ovn/ovn-nbctl.log &

# REMOVEME once OVN path for control socket is fixed (right now uses /var/run/openvswitch)
ln -sf $OVN_NB_DAEMON /var/run/ovn/ || true

echo "I$(date "+%m%d %H:%M:%S.%N") - ovnkube-master - start ovnkube --init-master ${K8S_NODE}"
exec /usr/bin/ovnkube \
--init-master "${K8S_NODE}" \
Expand Down