Skip to content

Commit

Permalink
fix ovs-ovn logging (#1848)
Browse files Browse the repository at this point in the history
tail command should follow file name instead of file descriptor
  • Loading branch information
zhangzujian committed Aug 25, 2022
1 parent a83ec47 commit e16667c
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions dist/images/start-ic-db.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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)"
Expand All @@ -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 \
Expand All @@ -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
2 changes: 1 addition & 1 deletion dist/images/start-ovs-dpdk-v2.sh
Original file line number Diff line number Diff line change
Expand Up @@ -103,4 +103,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
2 changes: 1 addition & 1 deletion dist/images/start-ovs-dpdk.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion dist/images/start-ovs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit e16667c

Please sign in to comment.