Skip to content

Commit 26ca478

Browse files
Merge pull request #935 from marioferh/add_ethtool_mustgather
Add ethtool -k and ethtool -l to must gather collected data
2 parents a78afbc + e226013 commit 26ca478

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

must-gather/collection-scripts/gather_nodes

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,9 @@ do
6767
oc exec $pod -n perf-node-gather -- lscpu -e > $NODE_PATH/lscpu
6868
oc exec $pod -n perf-node-gather -- cat /proc/cmdline > $NODE_PATH/proc_cmdline
6969
oc exec $pod -n perf-node-gather -- dmesg > $NODE_PATH/dmesg
70+
oc exec $pod -n perf-node-gather -- ethtool -k eth0 > $NODE_PATH/ethtool_features
71+
oc exec $pod -n perf-node-gather -- ethtool -l eth0 > $NODE_PATH/ethtool_channels
72+
7073
COLLECTABLE_NODES+=($node)
7174

7275
oc exec $pod -n perf-node-gather -- gather_sysinfo --json cpuaff --procfs=/host/proc --sysfs=/host/sys > $NODE_PATH/cpu_affinities.json

openshift-ci/Dockerfile.must-gather

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
FROM quay.io/openshift/origin-must-gather:4.10.0 AS builder
22

33
FROM registry.access.redhat.com/ubi8/ubi-minimal:latest
4-
RUN microdnf install -y pciutils util-linux hostname rsync tar
4+
RUN microdnf install -y pciutils util-linux hostname rsync tar ethtool
55

66
# Copy must-gather required binaries
77
COPY --from=builder /usr/bin/openshift-must-gather /usr/bin/openshift-must-gather

0 commit comments

Comments
 (0)