From 5cb4876797c46361738e57593e69ccfbb017803a 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 and group dump to log results Signed-off-by: Lorenzo Bianconi --- ovn-fake-multinode-utils/scripts/log-collector.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ovn-fake-multinode-utils/scripts/log-collector.sh b/ovn-fake-multinode-utils/scripts/log-collector.sh index 9d0c788e..01bb1500 100755 --- a/ovn-fake-multinode-utils/scripts/log-collector.sh +++ b/ovn-fake-multinode-utils/scripts/log-collector.sh @@ -9,11 +9,15 @@ 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 exec $c bash -c 'ovs-ofctl dump-groups br-int > /tmp/groups.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/ + podman cp $c:/tmp/groups.log ${host}/$c/ done for c in $(podman ps --format "{{.Names}}" --filter "name=ovn-central"); do