From dbcabce3f501a46800d88bb07c24651fe32195ad Mon Sep 17 00:00:00 2001 From: Lorenzo Bianconi Date: Fri, 18 Oct 2024 15:30:12 +0200 Subject: [PATCH] scripts: log-collector: Add ovs open-flows dump to log results Signed-off-by: Lorenzo Bianconi --- ovn-fake-multinode-utils/scripts/log-collector.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ovn-fake-multinode-utils/scripts/log-collector.sh b/ovn-fake-multinode-utils/scripts/log-collector.sh index 9d0c788e..9471291e 100755 --- a/ovn-fake-multinode-utils/scripts/log-collector.sh +++ b/ovn-fake-multinode-utils/scripts/log-collector.sh @@ -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