diff --git a/dist/images/start-db.sh b/dist/images/start-db.sh index e3a5c655dbd..0f196366f64 100755 --- a/dist/images/start-db.sh +++ b/dist/images/start-db.sh @@ -269,4 +269,4 @@ ovs-appctl -t /var/run/ovn/ovnnb_db.ctl ovsdb-server/memory-trim-on-compaction o ovs-appctl -t /var/run/ovn/ovnsb_db.ctl ovsdb-server/memory-trim-on-compaction on chmod 600 /etc/ovn/* -tail -f /var/log/ovn/ovn-northd.log +tail --follow=name --retry /var/log/ovn/ovn-northd.log diff --git a/dist/images/start-ic-db.sh b/dist/images/start-ic-db.sh index 8a07c66e01d..8dd16fd1eeb 100644 --- a/dist/images/start-ic-db.sh +++ b/dist/images/start-ic-db.sh @@ -21,7 +21,7 @@ if [[ -z "$NODE_IPS" && -z "$LOCAL_IP" ]]; then /usr/share/ovn/scripts/ovn-ctl status_ic_ovsdb ovn-ic-nbctl --may-exist ts-add "$TS_NAME" ovn-ic-nbctl set Transit_Switch ts external_ids:subnet="$TS_CIDR" - tail -f /var/log/ovn/ovsdb-server-ic-nb.log + tail --follow=name --retry /var/log/ovn/ovsdb-server-ic-nb.log else if [[ -z "$LEADER_IP" ]]; then echo "leader start with local ${LOCAL_IP} and cluster $(gen_conn_str 6647)" @@ -35,7 +35,7 @@ else /usr/share/ovn/scripts/ovn-ctl status_ic_ovsdb ovn-ic-nbctl --may-exist ts-add "$TS_NAME" ovn-ic-nbctl set Transit_Switch ts external_ids:subnet="$TS_CIDR" - tail -f /var/log/ovn/ovsdb-server-ic-nb.log + tail --follow=name --retry /var/log/ovn/ovsdb-server-ic-nb.log else echo "follower start with local ${LOCAL_IP}, leader ${LEADER_IP} and cluster $(gen_conn_str 6647)" /usr/share/ovn/scripts/ovn-ctl --db-ic-nb-create-insecure-remote=yes \ @@ -47,6 +47,6 @@ else --ovn-ic-nb-db="$(gen_conn_str 6647)" \ --ovn-ic-sb-db="$(gen_conn_str 6648)" \ start_ic_ovsdb - tail -f /var/log/ovn/ovsdb-server-ic-nb.log + tail --follow=name --retry /var/log/ovn/ovsdb-server-ic-nb.log fi fi diff --git a/dist/images/start-ovs-dpdk.sh b/dist/images/start-ovs-dpdk.sh index 0803883e540..dbed8a1f10b 100755 --- a/dist/images/start-ovs-dpdk.sh +++ b/dist/images/start-ovs-dpdk.sh @@ -49,4 +49,4 @@ ovs-vsctl set open . external-ids:ovn-remote-probe-interval=10000 ovs-vsctl set open . external-ids:ovn-openflow-probe-interval=180 ovs-vsctl set open . external-ids:ovn-encap-type=geneve -tail -f /var/log/openvswitch/ovs-vswitchd.log +tail --follow=name --retry /var/log/openvswitch/ovs-vswitchd.log diff --git a/dist/images/start-ovs.sh b/dist/images/start-ovs.sh index 1b1a32e7b28..6e694fe977a 100755 --- a/dist/images/start-ovs.sh +++ b/dist/images/start-ovs.sh @@ -245,4 +245,4 @@ sleep ${FLOW_WAIT} ovs-vsctl --no-wait set open_vswitch . other_config:flow-restore-wait="false" chmod 600 /etc/openvswitch/* -tail -f /var/log/ovn/ovn-controller.log +tail --follow=name --retry /var/log/ovn/ovn-controller.log