File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed
ovn-fake-multinode-utils/scripts Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change 22
33host=$1
44node_name=$2
5- limit=10
5+ limit=2
66
77mkdir /tmp/${host}
88pushd /tmp
99for c in $( podman ps --format " {{.Names}}" --filter " name=${node_name} " ) ; do
1010 mkdir ${host} /$c
1111 podman exec $c ps -aux > ${host} /$c /ps
1212 podman exec $c bash -c ' touch /tmp/process-monitor.exit && sleep 5'
13- podman exec $c bash -c ' ovs-ofctl dump-flows br-int > /tmp/open-flows.log'
1413 podman cp $c :/var/log/ovn/ovn-controller.log ${host} /$c /
1514 podman cp $c :/var/log/openvswitch/ovs-vswitchd.log ${host} /$c /
1615 podman cp $c :/var/log/openvswitch/ovsdb-server.log ${host} /$c /
1716 podman cp $c :/etc/openvswitch/conf.db ${host} /$c /
1817 podman cp $c :/var/log/process-stats.json ${host} /$c /
19- podman cp $c :/tmp/open-flows.log ${host} /$c /
2018done
2119
2220# Dump ovs groups just for latest ${limit} nodes
2321for c in $( podman ps --format " {{.Names}}" --filter " name=${node_name} " --last " ${limit} " ) ; do
22+ podman exec $c bash -c ' ovs-ofctl dump-flows br-int > /tmp/open-flows.log'
2423 podman exec $c bash -c ' ovs-ofctl dump-groups br-int > /tmp/groups.log'
24+ podman cp $c :/tmp/open-flows.log ${host} /$c /
2525 podman cp $c :/tmp/groups.log ${host} /$c /
26+
27+ # OF rules/group dumps can be very large text files.
28+ # Pre-archive them immediately.
29+ pushd ${host} /$c
30+ tar cvfz OF.tgz open-flows.log groups.log
31+ rm -f open-flows.log groups.log
32+ popd
2633done
2734
2835for c in $( podman ps --format " {{.Names}}" --filter " name=ovn-central" ) ; do
You can’t perform that action at this time.
0 commit comments