Skip to content

Commit

Permalink
scripts: log-collector: Add ovs open-flows dump to log results
Browse files Browse the repository at this point in the history
Signed-off-by: Lorenzo Bianconi <[email protected]>
  • Loading branch information
LorenzoBianconi committed Oct 18, 2024
1 parent 4ae0b40 commit dbcabce
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ovn-fake-multinode-utils/scripts/log-collector.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,13 @@ for c in $(podman ps --format "{{.Names}}" --filter "name=${node_name}"); do
mkdir ${host}/$c
podman exec $c ps -aux > ${host}/$c/ps
podman exec $c bash -c 'touch /tmp/process-monitor.exit && sleep 5'
podman exec $c bash -c 'ovs-ofctl dump-flows br-int > /tmp/open-flows.log'
podman cp $c:/var/log/ovn/ovn-controller.log ${host}/$c/
podman cp $c:/var/log/openvswitch/ovs-vswitchd.log ${host}/$c/
podman cp $c:/var/log/openvswitch/ovsdb-server.log ${host}/$c/
podman cp $c:/etc/openvswitch/conf.db ${host}/$c/
podman cp $c:/var/log/process-stats.json ${host}/$c/
podman cp $c:/tmp/open-flows.log ${host}/$c/
done

for c in $(podman ps --format "{{.Names}}" --filter "name=ovn-central"); do
Expand Down

0 comments on commit dbcabce

Please sign in to comment.