Description of problem: Some of the data, specifically /etc/os-release, collected when running sos report on a RHCOS node via toolbox is from the support-tools container and not the host. Version-Release number of selected component (if applicable): sos-4.1-9.el8_5 toolbox-0.0.8-4.rhaos4.10.el8 rhel8/support-tools:8.5-18 container image How reproducible: 100% Steps to Reproduce: 1. Run toolbox on RHCOS 410.84.202202251620-0 node 2. Run sos report in the toolbox container Actual results: The collected contents of /etc/os-release will be from the support-tools container # cat /var/tmp/sosreport-worker1-2022-04-14-yqrdmxj/etc/os-release NAME="Red Hat Enterprise Linux" VERSION="8.5 (Ootpa)" ID="rhel" ID_LIKE="fedora" VERSION_ID="8.5" PLATFORM_ID="platform:el8" PRETTY_NAME="Red Hat Enterprise Linux 8.5 (Ootpa)" ANSI_COLOR="0;31" CPE_NAME="cpe:/o:redhat:enterprise_linux:8::baseos" HOME_URL="https://www.redhat.com/" DOCUMENTATION_URL="https://access.redhat.com/documentation/red_hat_enterprise_linux/8/" BUG_REPORT_URL="https://bugzilla.redhat.com/" REDHAT_BUGZILLA_PRODUCT="Red Hat Enterprise Linux 8" REDHAT_BUGZILLA_PRODUCT_VERSION=8.5 REDHAT_SUPPORT_PRODUCT="Red Hat Enterprise Linux" REDHAT_SUPPORT_PRODUCT_VERSION="8.5" Expected results: The collected contens of /etc/os-release are from the host RHCOS node # cat /etc/os-release NAME="Red Hat Enterprise Linux CoreOS" VERSION="410.84.202202251620-0" ID="rhcos" ID_LIKE="rhel fedora" VERSION_ID="4.10" PLATFORM_ID="platform:el8" PRETTY_NAME="Red Hat Enterprise Linux CoreOS 410.84.202202251620-0 (Ootpa)" ANSI_COLOR="0;31" CPE_NAME="cpe:/o:redhat:enterprise_linux:8::coreos" HOME_URL="https://www.redhat.com/" DOCUMENTATION_URL="https://docs.openshift.com/container-platform/4.10/" BUG_REPORT_URL="https://bugzilla.redhat.com/" REDHAT_BUGZILLA_PRODUCT="OpenShift Container Platform" REDHAT_BUGZILLA_PRODUCT_VERSION="4.10" REDHAT_SUPPORT_PRODUCT="OpenShift Container Platform" REDHAT_SUPPORT_PRODUCT_VERSION="4.10" OPENSHIFT_VERSION="4.10" RHEL_VERSION="8.4" OSTREE_VERSION='410.84.202202251620-0' Additional info: # pwd /var/tmp/sosreport-worker1-2022-04-14-yqrdmxj # ls -l /etc/os-release lrwxrwxrwx. 1 root root 21 Mar 11 23:04 /etc/os-release -> ../usr/lib/os-release # ls -l /var/tmp/sosreport-worker1-2022-04-14-yqrdmxj/etc/os-release lrwxrwxrwx. 1 root root 21 Oct 7 2021 /var/tmp/sosreport-worker1-2022-04-14-yqrdmxj/etc/os-release -> ../usr/lib/os-release # head -n1 /etc/os-release NAME="Red Hat Enterprise Linux CoreOS" # head -n1 /var/tmp/sosreport-worker1-2022-04-14-yqrdmxj/etc/os-release NAME="Red Hat Enterprise Linux" # toolbox Spawning a container 'toolbox-root' with image 'registry.redhat.io/rhel8/support-tools' Detected RUN label in the container image. Using that as the default... [root@worker1 /]# head -n1 /etc/os-release NAME="Red Hat Enterprise Linux" [root@worker1 /]# head -n1 /host/etc/os-release NAME="Red Hat Enterprise Linux CoreOS" # ls -l /host/etc/os-release lrwxrwxrwx. 1 root root 21 Mar 11 23:04 /host/etc/os-release -> ../usr/lib/os-release # head -n1 ../usr/lib/os-release NAME="Red Hat Enterprise Linux" So, sos follows the symlink and gets os-release contents from the container. There may be other files where the same thing is happening, but I haven't fully explored that yet.
I do feel we have fixed such sort of an issue but I cant find when; could you please try it with sos-4.2 or sos-4.3 or current upstream (e.g. from https://github.com/sosreport/sos/releases)?
This doesn't appear to be fixed in 4.2 or 4.3 * Testing sos-4.2 # toolbox Spawning a container 'toolbox-root' with image 'registry.redhat.io/rhel8/support-tools' Detected RUN label in the container image. Using that as the default... [root@worker1 /]# rpm -q sos sos-4.2-15.el8.noarch [root@worker1 /]# sos report --batch sosreport (version 4.2) This command will collect diagnostic and configuration information from this Red Hat CoreOS system. [...] Finished running plugins Creating compressed archive... Your sosreport has been generated and saved in: /host/var/tmp/sosreport-worker1-2022-05-25-atsvalj.tar.xz Size 88.83MiB Owner root sha256 e5f4d1a0f92e6d2543c053afb30b2aeec88d03fb125243f353d84f407dfec63c Please send this file to your support representative. [root@worker1 /]# exit exit # cd /var/tmp/ && tar xf sosreport-worker1-2022-05-25-atsvalj.tar.xz # cat sosreport-worker1-2022-05-25-atsvalj/etc/os-release NAME="Red Hat Enterprise Linux" VERSION="8.6 (Ootpa)" ID="rhel" ID_LIKE="fedora" VERSION_ID="8.6" PLATFORM_ID="platform:el8" PRETTY_NAME="Red Hat Enterprise Linux 8.6 (Ootpa)" ANSI_COLOR="0;31" CPE_NAME="cpe:/o:redhat:enterprise_linux:8::baseos" HOME_URL="https://www.redhat.com/" DOCUMENTATION_URL="https://access.redhat.com/documentation/red_hat_enterprise_linux/8/" BUG_REPORT_URL="https://bugzilla.redhat.com/" REDHAT_BUGZILLA_PRODUCT="Red Hat Enterprise Linux 8" REDHAT_BUGZILLA_PRODUCT_VERSION=8.6 REDHAT_SUPPORT_PRODUCT="Red Hat Enterprise Linux" REDHAT_SUPPORT_PRODUCT_VERSION="8.6" # cat /etc/os-release NAME="Red Hat Enterprise Linux CoreOS" VERSION="410.84.202204261500-0" ID="rhcos" ID_LIKE="rhel fedora" VERSION_ID="4.10" PLATFORM_ID="platform:el8" PRETTY_NAME="Red Hat Enterprise Linux CoreOS 410.84.202204261500-0 (Ootpa)" ANSI_COLOR="0;31" CPE_NAME="cpe:/o:redhat:enterprise_linux:8::coreos" HOME_URL="https://www.redhat.com/" DOCUMENTATION_URL="https://docs.openshift.com/container-platform/4.10/" BUG_REPORT_URL="https://bugzilla.redhat.com/" REDHAT_BUGZILLA_PRODUCT="OpenShift Container Platform" REDHAT_BUGZILLA_PRODUCT_VERSION="4.10" REDHAT_SUPPORT_PRODUCT="OpenShift Container Platform" REDHAT_SUPPORT_PRODUCT_VERSION="4.10" OPENSHIFT_VERSION="4.10" RHEL_VERSION="8.4" OSTREE_VERSION='410.84.202204261500-0' * Testing sos-4.3 # podman rm toolbox-root 8fd28056c32728fd9cf2cf9c6663b4023b32bebbf22f78b97412fcf2d9e0e3d1 # toolbox Spawning a container 'toolbox-root' with image 'registry.redhat.io/rhel8/support-tools' Detected RUN label in the container image. Using that as the default... [root@worker1 /]# rpm -Uvh http://download-node-02.eng.bos.redhat.com/brewroot/packages/sos/4.3/1.el8/noarch/sos-4.3-1.el8.noarch.rpm Retrieving http://download-node-02.eng.bos.redhat.com/brewroot/packages/sos/4.3/1.el8/noarch/sos-4.3-1.el8.noarch.rpm Verifying... ################################# [100%] Preparing... ################################# [100%] Updating / installing... 1:sos-4.3-1.el8 ################################# [ 50%] Cleaning up / removing... 2:sos-4.2-15.el8 ################################# [100%] [root@worker1 /]# sos report -o release --batch sosreport (version 4.3) WARNING: unable to set option for disabled or non-existing plugin (networking). This command will collect diagnostic and configuration information from this Red Hat CoreOS system. [...] Starting 1/1 release [Running: release] Finished running plugins Creating compressed archive... Your sosreport has been generated and saved in: /host/var/tmp/sosreport-worker1-2022-05-26-etxvnhy.tar.xz Size 2.87KiB Owner root sha256 f203c8c928f10d43869d6ef244087d8697a8bdbcee98c298db699248848b1337 Please send this file to your support representative. [root@worker1 /]# exit exit # cd /var/tmp/ && tar xf sosreport-worker1-2022-05-26-etxvnhy.tar.xz # cat sosreport-worker1-2022-05-26-etxvnhy/etc/os-release NAME="Red Hat Enterprise Linux" VERSION="8.6 (Ootpa)" ID="rhel" ID_LIKE="fedora" VERSION_ID="8.6" PLATFORM_ID="platform:el8" PRETTY_NAME="Red Hat Enterprise Linux 8.6 (Ootpa)" ANSI_COLOR="0;31" CPE_NAME="cpe:/o:redhat:enterprise_linux:8::baseos" HOME_URL="https://www.redhat.com/" DOCUMENTATION_URL="https://access.redhat.com/documentation/red_hat_enterprise_linux/8/" BUG_REPORT_URL="https://bugzilla.redhat.com/" REDHAT_BUGZILLA_PRODUCT="Red Hat Enterprise Linux 8" REDHAT_BUGZILLA_PRODUCT_VERSION=8.6 REDHAT_SUPPORT_PRODUCT="Red Hat Enterprise Linux" REDHAT_SUPPORT_PRODUCT_VERSION="8.6"
a candidate to sos-4.5.5 build
Will you be able to test the fix for us when we will have release candidate?
Yes, I can test the fix
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 (sos bug fix and enhancement 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/RHBA-2023:4279