From 3718851df4087e92cdc2d68d2dd4592413c61742 Mon Sep 17 00:00:00 2001 From: Mengxin Liu Date: Thu, 7 Nov 2019 10:00:45 +0800 Subject: [PATCH] fix: add keepalive to ovn-controller --- dist/images/start-db.sh | 3 ++- dist/images/start-ovs.sh | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/dist/images/start-db.sh b/dist/images/start-db.sh index aa6a4fef16a..2a871c3bae4 100755 --- a/dist/images/start-db.sh +++ b/dist/images/start-db.sh @@ -62,5 +62,6 @@ fi # ovn-nb and ovn-sb listen on tcp ports for ovn-controller to connect ovn-nbctl set-connection ptcp:${DB_NB_PORT}:[${DB_NB_ADDR}] ovn-sbctl set-connection ptcp:${DB_SB_PORT}:[${DB_SB_ADDR}] +ovn-sbctl set Connection . inactivity_probe=0 -tail -f /var/log/openvswitch/ovn-northd.log \ No newline at end of file +tail -f /var/log/openvswitch/ovn-northd.log diff --git a/dist/images/start-ovs.sh b/dist/images/start-ovs.sh index 98db12a45d8..8be0dd8df73 100755 --- a/dist/images/start-ovs.sh +++ b/dist/images/start-ovs.sh @@ -55,6 +55,7 @@ fi # Set remote ovn-sb for ovn-controller to connect to ovs-vsctl set open . external-ids:ovn-remote=tcp:${OVN_SB_SERVICE_HOST}:${OVN_SB_SERVICE_PORT} +ovs-vsctl set open . external-ids:ovn-remote-probe-interval=10000 ovs-vsctl set open . external-ids:ovn-encap-type=geneve tail -f /var/log/openvswitch/ovs-vswitchd.log