File tree 1 file changed +9
-0
lines changed
ovn-fake-multinode-utils/scripts
1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change 2
2
3
3
host=$1
4
4
node_name=$2
5
+ limit=10
5
6
6
7
mkdir /tmp/${host}
7
8
pushd /tmp
8
9
for c in $( podman ps --format " {{.Names}}" --filter " name=${node_name} " ) ; do
9
10
mkdir ${host} /$c
10
11
podman exec $c ps -aux > ${host} /$c /ps
11
12
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'
12
14
podman cp $c :/var/log/ovn/ovn-controller.log ${host} /$c /
13
15
podman cp $c :/var/log/openvswitch/ovs-vswitchd.log ${host} /$c /
14
16
podman cp $c :/var/log/openvswitch/ovsdb-server.log ${host} /$c /
15
17
podman cp $c :/etc/openvswitch/conf.db ${host} /$c /
16
18
podman cp $c :/var/log/process-stats.json ${host} /$c /
19
+ podman cp $c :/tmp/open-flows.log ${host} /$c /
20
+ done
21
+
22
+ # Dump ovs groups just for latest ${limit} nodes
23
+ for c in $( podman ps --format " {{.Names}}" --filter " name=${node_name} " --last " ${limit} " ) ; do
24
+ podman exec $c bash -c ' ovs-ofctl dump-groups br-int > /tmp/groups.log'
25
+ podman cp $c :/tmp/groups.log ${host} /$c /
17
26
done
18
27
19
28
for c in $( podman ps --format " {{.Names}}" --filter " name=ovn-central" ) ; do
You can’t perform that action at this time.
0 commit comments