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 b3a6998 commit c6f9565
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion dist/images/start-db.sh
Expand Up @@ -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
6 changes: 3 additions & 3 deletions dist/images/start-ic-db.sh
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.sh
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
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 c6f9565

Please sign in to comment.