Bug 2021036 - must-gather: gather-sysinfo binary not present in the container image
Summary: must-gather: gather-sysinfo binary not present in the container image
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Performance Addon Operator
Version: 4.9
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: 4.10.0
Assignee: Mario Fernández
QA Contact: Gowrishankar Rajaiyan
URL:
Whiteboard:
Depends On:
Blocks: 2021407
TreeView+ depends on / blocked
 
Reported: 2021-11-08 07:32 UTC by Mario Fernández
Modified: 2022-03-10 19:34 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Cause: Missing COPY statement under the Dockerfile. Consequence: must-gather fails to collect node data because the gather-sysinfo binary is missing under the image. Fix: Add Dockerfile necessary statements to generate and copy the binaries. Result: The gather-sysinfo binary presents under the image, and must-gather succeeds in collecting node data.
Clone Of:
: 2021407 (view as bug list)
Environment:
Last Closed: 2022-03-10 19:34:25 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2022:0640 0 None None None 2022-03-10 19:34:50 UTC

Description Mario Fernández 2021-11-08 07:32:13 UTC
Description of problem:

must-gather fails to copy gather_sysinfo
Cause: missing COPY statement in dockerfile

Error:
[must-gather-xpd5p] POD 2021-11-04T16:35:55.803698303Z time="2021-11-04T16:35:55Z" level=error msg="exec failed: container_linux.go:380: st arting container process caused: exec: \"gather_sysinfo\": executable file not found in $PATH"



Version-Release number of selected component (if applicable):
4.9

How reproducible:
100%

Steps to Reproduce:
1. oc adm must-gather --image=registry.redhat.io/openshift4/performance-addon-operator-must-gather-rhel8:TAG
2. Inspect the logs sysinfo.log


Actual results:
Error in sysinfo.log
gather-info not launched

Expected results:
gather-info works


Additional info:

Comment 5 Shereen Haj Makhoul 2021-12-01 13:25:39 UTC
Verification
++++++++++++

Image: registry-proxy.engineering.redhat.com/rh-osbs/openshift4-performance-addon-operator-must-gather-rhel8:v4.10.0-16

oc adm must-gather --image-stream=openshift/must-gather --image=registry-proxy.engineering.redhat.com/rh-osbs/openshift4-performance-addon-operator-must-gather-rhel8:v4.10.0-16

Inspect into both logs & check they are as expected with no errors:

[root@dell-r640-014 ~]# cd must-gather.local.7897968282288974473
[root@dell-r640-014 must-gather.local.7897968282288974473]# find -iname "sysinfo.log"
./registry-proxy-engineering-redhat-com-rh-osbs-openshift4-performance-addon-operator-must-gather-rhel8-sha256-6399859c67f01ddd78f05a082aba0d3ab40399c92fb939f05478e05e32408da6/nodes/ocp49-worker-0.demo.lab.mniranja/sysinfo.log
./registry-proxy-engineering-redhat-com-rh-osbs-openshift4-performance-addon-operator-must-gather-rhel8-sha256-6399859c67f01ddd78f05a082aba0d3ab40399c92fb939f05478e05e32408da6/nodes/ocp49-worker-1.demo.lab.mniranja/sysinfo.log

- Check the results in both files:

cat ./registry-proxy-engineering-redhat-com-rh-osbs-openshift4-performance-addon-operator-must-gather-rhel8-sha256-6399859c67f01ddd78f05a082aba0d3ab40399c92fb939f05478e05e32408da6/nodes/ocp49-worker-0.demo.lab.mniranja/sysinfo.log

knit2021/12/01 13:12:03 copying spec: "/host/sys/devices/pci0000:00/0000:00:03.0/vendor"
knit2021/12/01 13:12:03   copying path: "/host/sys/devices/pci0000:00/0000:00:03.0/vendor"
knit2021/12/01 13:12:03     copying file: "/host/sys/devices/pci0000:00/0000:00:03.0/vendor"
knit2021/12/01 13:12:03 creating /tmp/perf-must-gather-716161370/host/sys/devices/pci0000:00/0000:00:03.0/vendor
knit2021/12/01 13:12:03 copying spec: "/host/sys/devices/pci0000:00/0000:00:06.0/numa_node"
...
knit2021/12/01 13:12:04 processing symlink /tmp/perf-must-gather-716161370/host/sys/devices/system/node/node0/cpu5
knit2021/12/01 13:12:04 processing symlink /tmp/perf-must-gather-716161370/host/sys/devices/system/node/node0/cpu6
knit2021/12/01 13:12:04 processing symlink /tmp/perf-must-gather-716161370/host/sys/devices/system/node/node0/cpu7
knit2021/12/01 13:12:04 processing symlink /tmp/perf-must-gather-716161370/host/sys/devices/system/node/node0/cpu8
knit2021/12/01 13:12:04 processing symlink /tmp/perf-must-gather-716161370/host/sys/devices/system/node/node0/cpu9

cat ./registry-proxy-engineering-redhat-com-rh-osbs-openshift4-performance-addon-operator-must-gather-rhel8-sha256-6399859c67f01ddd78f05a082aba0d3ab40399c92fb939f05478e05e32408da6/nodes/ocp49-worker-1.demo.lab.mniranja/sysinfo.log

knit2021/12/01 13:12:10 copying spec: "/host/sys/devices/system/node/node*/distance"
knit2021/12/01 13:12:10   copying path: "/host/sys/devices/system/node/node0/distance"
knit2021/12/01 13:12:10     copying file: "/host/sys/devices/system/node/node0/distance"
knit2021/12/01 13:12:10 creating /tmp/perf-must-gather-2626296914/host/sys/devices/system/node/node0/distance
knit2021/12/01 13:12:10 copying spec: "/host/sys/devices/pci0000:00/0000:00:01.1/numa_node"
...
knit2021/12/01 13:12:15 processing symlink /tmp/perf-must-gather-2626296914/host/sys/devices/system/node/node0/cpu4
knit2021/12/01 13:12:15 processing symlink /tmp/perf-must-gather-2626296914/host/sys/devices/system/node/node0/cpu5
knit2021/12/01 13:12:15 processing symlink /tmp/perf-must-gather-2626296914/host/sys/devices/system/node/node0/cpu6
knit2021/12/01 13:12:15 processing symlink /tmp/perf-must-gather-2626296914/host/sys/devices/system/node/node0/cpu7
knit2021/12/01 13:12:15 processing symlink /tmp/perf-must-gather-2626296914/host/sys/devices/system/node/node0/cpu8
knit2021/12/01 13:12:15 processing symlink /tmp/perf-must-gather-2626296914/host/sys/devices/system/node/node0/cpu9

No error/fail words were found in the above logs. Hence, verified successfully.

Comment 7 errata-xmlrpc 2022-03-10 19:34:25 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (OpenShift Container Platform 4.10 low-latency extras update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHEA-2022:0640


Note You need to log in before you can comment on or make changes to this bug.