Skip to content

Commit 1fb5210

Browse files
Merge pull request #907 from jlojosnegros/refactor-gather
Use new `podinfo` command to gather pod data
2 parents 0c9fb1f + acae878 commit 1fb5210

File tree

5 files changed

+213
-6
lines changed

5 files changed

+213
-6
lines changed

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ require (
1313
github.com/jaypipes/ghw v0.8.1-0.20210605191321-eb162add542b
1414
github.com/onsi/ginkgo v1.16.5
1515
github.com/onsi/gomega v1.17.0
16-
github.com/openshift-kni/debug-tools v0.1.3
16+
github.com/openshift-kni/debug-tools v0.1.7
1717
github.com/openshift/api v3.9.1-0.20191111211345-a27ff30ebf09+incompatible
1818
github.com/openshift/cluster-node-tuning-operator v0.0.0-20200914165052-a39511828cf0
1919
github.com/openshift/custom-resource-status v0.0.0-20200602122900-c002fd1547ca

go.sum

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -799,8 +799,8 @@ github.com/opencontainers/runtime-spec v1.0.3-0.20200929063507-e6143ca7d51d/go.m
799799
github.com/opencontainers/runtime-spec v1.0.3-0.20210326190908-1c3f411f0417/go.mod h1:jwyrGlmzljRJv/Fgzds9SsS/C5hL+LL3ko9hs6T5lQ0=
800800
github.com/opencontainers/selinux v1.5.2/go.mod h1:yTcKuYAh6R95iDpefGLQaPaRwJFwyzAJufJyiTt7s0g=
801801
github.com/opencontainers/selinux v1.8.2/go.mod h1:MUIHuUEvKB1wtJjQdOyYRgOnLD2xAPP8dBsCoU0KuF8=
802-
github.com/openshift-kni/debug-tools v0.1.3 h1:DYcF3ZMR5tJEO1smZMkW+lZ1fhnOcnttyqqewhPZ2g4=
803-
github.com/openshift-kni/debug-tools v0.1.3/go.mod h1:HW2qp9MZgRM8mmzEbWoeoJxQH7A0kbqOMzSa9/dktcQ=
802+
github.com/openshift-kni/debug-tools v0.1.7 h1:FCg1xY94Zi3WB04dMKZdTn/OVEsKYEwpVJfgdO+JbR4=
803+
github.com/openshift-kni/debug-tools v0.1.7/go.mod h1:oq0XTqe9bAYyQUXZdHwRmRrMqHZTEC+yuJbipYzvqvI=
804804
github.com/openshift/api v0.0.0-20210610130314-a6ac319a7eed h1:8Q94GlNfhBoMqQFw9gCNQ0Q9V1B+tw5VBn+M4e5ooaI=
805805
github.com/openshift/api v0.0.0-20210610130314-a6ac319a7eed/go.mod h1:izBmoXbUu3z5kUa4FjZhvekTsyzIWiOoaIgJiZBBMQs=
806806
github.com/openshift/build-machinery-go v0.0.0-20200211121458-5e3d6e570160/go.mod h1:1CkcsT3aVebzRBzVTSbiKSkJMsC/CASqxesfqEMfJEc=
@@ -891,6 +891,7 @@ github.com/russross/blackfriday/v2 v2.0.1/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQD
891891
github.com/rwcarlsen/goexif v0.0.0-20190401172101-9e8deecbddbd/go.mod h1:hPqNNc0+uJM6H+SuU8sEs5K5IQeKccPqeSjfgcKGgPk=
892892
github.com/ryanuber/columnize v0.0.0-20160712163229-9b3edd62028f/go.mod h1:sm1tb6uqfes/u+d4ooFouqFdy9/2g9QGwK3SQygK0Ts=
893893
github.com/ryanuber/go-glob v0.0.0-20170128012129-256dc444b735/go.mod h1:807d1WSdnB0XRJzKNil9Om6lcp/3a0v4qIHxIXzX/Yc=
894+
github.com/safchain/ethtool v0.2.0/go.mod h1:WkKB1DnNtvsMlDmQ50sgwowDJV/hGbJSOvJoEXs1AJQ=
894895
github.com/sean-/seed v0.0.0-20170313163322-e2103e2c3529/go.mod h1:DxrIzT+xaE7yg65j358z/aeFdxmN0P9QXhEzd20vsDc=
895896
github.com/seccomp/libseccomp-golang v0.9.1/go.mod h1:GbW5+tmTXfcxTToHLXlScSlAvWlF4P2Ca7zGrPiEpWo=
896897
github.com/securego/gosec v0.0.0-20191002120514-e680875ea14d/go.mod h1:w5+eXa0mYznDkHaMCXA4XYffjlH+cy1oyKbfzJXa2Do=

must-gather/collection-scripts/gather_nodes

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ do
7171

7272
oc exec $pod -n perf-node-gather -- gather_sysinfo snapshot --debug --root=/host --output=- > $NODE_PATH/sysinfo.tgz 2> $NODE_PATH/sysinfo.log
7373

74-
oc get pods -A --field-selector spec.nodeName=$node,status.phase=Running -o go-template='[{{range $idx, $item := .items}} {{if (ne $idx 0)}},{{end}}{"namespace":"{{.metadata.namespace}}", "name":"{{.metadata.name}}", "nodeName":"{{.spec.nodeName}}", "qosClass": "{{.status.qosClass}}" }{{"\n"}}{{end}}]' > $NODE_PATH/pods_info.json
74+
oc exec $pod -n perf-node-gather -- gather_sysinfo podinfo --node-name $node > $NODE_PATH/pods_info.json
7575
done
7676

7777
# Collect journal logs for specified units for all nodes

vendor/github.com/openshift-kni/debug-tools/pkg/knit/cmd/k8s/podinfo.go

Lines changed: 206 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/modules.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -305,8 +305,8 @@ github.com/onsi/gomega/matchers/support/goraph/edge
305305
github.com/onsi/gomega/matchers/support/goraph/node
306306
github.com/onsi/gomega/matchers/support/goraph/util
307307
github.com/onsi/gomega/types
308-
# github.com/openshift-kni/debug-tools v0.1.3
309-
## explicit; go 1.17
308+
# github.com/openshift-kni/debug-tools v0.1.7
309+
## explicit; go 1.18
310310
github.com/openshift-kni/debug-tools/pkg/fswrap
311311
github.com/openshift-kni/debug-tools/pkg/irqs
312312
github.com/openshift-kni/debug-tools/pkg/irqs/soft

0 commit comments

Comments
 (0)