Bug 1940037
Summary: | toolbox does not provide /:/host mount required for sosreport | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 8 | Reporter: | Derrick Ornelas <dornelas> |
Component: | toolbox | Assignee: | Jindrich Novy <jnovy> |
Status: | CLOSED ERRATA | QA Contact: | Alex Jia <ajia> |
Severity: | high | Docs Contact: | |
Priority: | unspecified | ||
Version: | 8.4 | CC: | ajia, debarshir, dornelas, jhunsaker, jnovy, lfriedma, miabbott, sbarcomb, smccarty, tpopela, travier, tsweeney, ypu |
Target Milestone: | rc | Keywords: | Triaged |
Target Release: | 8.4 | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | toolbox-0.0.99.3-0.2.el8 | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2021-11-09 17:37:14 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Deadline: | 2021-07-12 |
Description
Derrick Ornelas
2021-03-17 13:48:02 UTC
github.com/containers/toolbox puts the host bind mounts in /run/host. If sosreport looked at /run/host, instead of /host, would it then work? Or are there yet more things missing? sos would (should) use the /run/host mount point if toolbox also set the `HOST` env var to that path. Note that so far we've only rebased 'toolbox' to github.com/containers/toolbox in RHEL 8.4, not RHOCP (which I think CoreOS is a part of). We are aware of this issue, it is tracked upstream at https://github.com/containers/toolbox/issues/689 It should be addressed in one of the following toolbox releases that will be included in one of the next RHEL 8 versions (might be even 8.5). We understand that this impacts RHCOS. Hence the plan is not to rebase 'toolbox' in RHOCP until issues like this can be sorted out - as agreed with the CoreOS team (CC'ing Micah). Therefore, I don't think this qualifies for the 8.4 exception as it would need weeks to be properly addressed and tested upstream. I tested this the other day, and I don't believe /run/host is the complete rootfs from the host. Here's a test where sosreport fails immediately: # toolbox create --image registry.redhat.io/rhel8/support-tools Created container: support-tools Enter with: toolbox enter support-tools # toolbox enter support-tools ⬢[root@toolbox ~]# HOST=/run/host/ sosreport -v sosreport (version 3.9) Could not obtain installed package list ⬢[root@toolbox ~]# ls -l /run/host/ total 20 dr-xr-xr-x. 5 root root 4096 Mar 16 19:17 boot drwxr-xr-x. 107 root root 8192 Mar 19 16:32 etc drwxr-xr-x. 38 root root 1060 Mar 17 08:39 run drwxrwxrwt. 8 root root 240 Mar 22 16:29 tmp drwxr-xr-x. 12 root root 144 Mar 16 19:10 usr drwxr-xr-x. 21 root root 4096 Mar 16 19:21 var ⬢[root@toolbox ~]# grep "/run/host" /proc/mounts | grep -v "/var/lib/containers" /dev/mapper/rhel_rhel84-root /run/host/tmp xfs rw,seclabel,relatime,attr2,inode64,logbufs=8,logbsize=32k,noquota 0 0 /dev/mapper/rhel_rhel84-root /run/host/usr xfs rw,seclabel,relatime,attr2,inode64,logbufs=8,logbsize=32k,noquota 0 0 tmpfs /run/host/run tmpfs rw,seclabel,nosuid,nodev,mode=755 0 0 tmpfs /run/host/run/user/0 tmpfs rw,seclabel,nosuid,nodev,relatime,size=402044k,mode=700 0 0 tmpfs /run/host/run/netns tmpfs rw,seclabel,nosuid,nodev,mode=755 0 0 tmpfs /run/host/run/user/1000 tmpfs rw,seclabel,nosuid,nodev,relatime,size=402044k,mode=700,uid=1000,gid=1000 0 0 /dev/sda1 /run/host/boot xfs rw,seclabel,relatime,attr2,inode64,logbufs=8,logbsize=32k,noquota 0 0 /dev/mapper/rhel_rhel84-root /run/host/var xfs rw,seclabel,relatime,attr2,inode64,logbufs=8,logbsize=32k,noquota 0 0 /dev/mapper/rhel_rhel84-root /run/host/etc xfs rw,seclabel,relatime,attr2,inode64,logbufs=8,logbsize=32k,noquota 0 0 I believe it expects the entire host rootfs to be made available (In reply to Derrick Ornelas from comment #10) > > I believe it expects the entire host rootfs to be made available This is correct. The entire / filesystem from the host should be exposed via the mount point referenced by the HOST env var. This bug has been verified on toolbox-0.0.99.2^1.git660b6970e998-1.module+el8.5.0+12014+438a5746. [root@kvm-07-guest24 ~]# cat /etc/redhat-release Red Hat Enterprise Linux release 8.5 Beta (Ootpa) [root@kvm-07-guest24 ~]# rpm -q toolbox podman runc kernel toolbox-0.0.99.2^1.git660b6970e998-1.module+el8.5.0+12014+438a5746.x86_64 podman-3.3.0-0.17.module+el8.5.0+12014+438a5746.x86_64 runc-1.0.1-3.module+el8.5.0+12014+438a5746.x86_64 kernel-4.18.0-325.el8.x86_64 [root@kvm-07-guest24 ~]# toolbox create --image registry.redhat.io/rhel8/support-tools Created container: support-tools Enter with: toolbox enter support-tools [root@kvm-07-guest24 ~]# toolbox enter support-tools [root@toolbox ~]# sosreport Please note the 'sosreport' command has been deprecated in favor of the new 'sos' command, E.G. 'sos report'. Redirecting to 'sos report ' sosreport (version 4.0) WARNING: unable to set option for disabled or non-existing plugin (boot) This command will collect diagnostic and configuration information from this Red Hat Enterprise Linux system and installed applications. An archive containing the collected information will be generated in /var/tmp/sos.23pzu2zj and may be provided to a Red Hat support representative. Any information provided to Red Hat will be treated in accordance with the published support policies at: https://access.redhat.com/support/ The generated archive may contain data considered sensitive and its content should be reviewed by the originating organization before being passed to any third party. No changes will be made to system configuration. Press ENTER to continue, or CTRL-C to quit. Please enter the case id that you are generating this report for []: Setting up archive ... Setting up plugins ... caught exception in plugin method "block.setup()" writing traceback to sos_logs/block-plugin-errors.txt caught exception in plugin method "cgroups.setup()" writing traceback to sos_logs/cgroups-plugin-errors.txt caught exception in plugin method "crypto.setup()" writing traceback to sos_logs/crypto-plugin-errors.txt caught exception in plugin method "dbus.setup()" writing traceback to sos_logs/dbus-plugin-errors.txt caught exception in plugin method "dnf.setup()" writing traceback to sos_logs/dnf-plugin-errors.txt caught exception in plugin method "filesys.setup()" writing traceback to sos_logs/filesys-plugin-errors.txt caught exception in plugin method "hardware.setup()" writing traceback to sos_logs/hardware-plugin-errors.txt caught exception in plugin method "host.setup()" writing traceback to sos_logs/host-plugin-errors.txt caught exception in plugin method "i18n.setup()" writing traceback to sos_logs/i18n-plugin-errors.txt caught exception in plugin method "kernel.setup()" writing traceback to sos_logs/kernel-plugin-errors.txt caught exception in plugin method "krb5.setup()" writing traceback to sos_logs/krb5-plugin-errors.txt caught exception in plugin method "ldap.setup()" writing traceback to sos_logs/ldap-plugin-errors.txt caught exception in plugin method "libraries.setup()" writing traceback to sos_logs/libraries-plugin-errors.txt caught exception in plugin method "libvirt.setup()" writing traceback to sos_logs/libvirt-plugin-errors.txt caught exception in plugin method "login.setup()" writing traceback to sos_logs/login-plugin-errors.txt caught exception in plugin method "logrotate.setup()" writing traceback to sos_logs/logrotate-plugin-errors.txt caught exception in plugin method "logs.setup()" writing traceback to sos_logs/logs-plugin-errors.txt caught exception in plugin method "lvm2.setup()" writing traceback to sos_logs/lvm2-plugin-errors.txt caught exception in plugin method "md.setup()" writing traceback to sos_logs/md-plugin-errors.txt caught exception in plugin method "memory.setup()" writing traceback to sos_logs/memory-plugin-errors.txt caught exception in plugin method "multipath.setup()" writing traceback to sos_logs/multipath-plugin-errors.txt caught exception in plugin method "networking.setup()" writing traceback to sos_logs/networking-plugin-errors.txt caught exception in plugin method "openhpi.setup()" writing traceback to sos_logs/openhpi-plugin-errors.txt caught exception in plugin method "pam.setup()" writing traceback to sos_logs/pam-plugin-errors.txt caught exception in plugin method "pci.setup()" writing traceback to sos_logs/pci-plugin-errors.txt caught exception in plugin method "process.setup()" writing traceback to sos_logs/process-plugin-errors.txt caught exception in plugin method "processor.setup()" writing traceback to sos_logs/processor-plugin-errors.txt caught exception in plugin method "release.setup()" writing traceback to sos_logs/release-plugin-errors.txt caught exception in plugin method "rpm.setup()" writing traceback to sos_logs/rpm-plugin-errors.txt caught exception in plugin method "scsi.setup()" writing traceback to sos_logs/scsi-plugin-errors.txt caught exception in plugin method "selinux.setup()" writing traceback to sos_logs/selinux-plugin-errors.txt caught exception in plugin method "services.setup()" writing traceback to sos_logs/services-plugin-errors.txt caught exception in plugin method "ssh.setup()" writing traceback to sos_logs/ssh-plugin-errors.txt caught exception in plugin method "subscription_manager.setup()" writing traceback to sos_logs/subscription_manager-plugin-errors.txt caught exception in plugin method "system.setup()" writing traceback to sos_logs/system-plugin-errors.txt caught exception in plugin method "systemd.setup()" writing traceback to sos_logs/systemd-plugin-errors.txt caught exception in plugin method "sysvipc.setup()" writing traceback to sos_logs/sysvipc-plugin-errors.txt caught exception in plugin method "udev.setup()" writing traceback to sos_logs/udev-plugin-errors.txt caught exception in plugin method "xfs.setup()" writing traceback to sos_logs/xfs-plugin-errors.txt caught exception in plugin method "yum.setup()" writing traceback to sos_logs/yum-plugin-errors.txt Running plugins. Please wait ... Finishing plugins [Running: systemd] Finished running plugins caught exception in plugin method "filesys.postproc()" writing traceback to sos_logs/filesys-plugin-errors.txt caught exception in plugin method "ldap.postproc()" writing traceback to sos_logs/ldap-plugin-errors.txt caught exception in plugin method "openhpi.postproc()" writing traceback to sos_logs/openhpi-plugin-errors.txt Creating compressed archive... Your sosreport has been generated and saved in: /var/tmp/sosreport-toolbox-2021-08-03-noabqck.tar.xz Size 27.96KiB Owner root md5 5eaa680c9a1b415d4af739f973a924e1 Please send this file to your support representative. [root@toolbox ~]# ls -lh /var/tmp/sosreport-toolbox-2021-08-03-noabqck.tar.xz -rw-------. 1 root root 28K Aug 3 04:28 /var/tmp/sosreport-toolbox-2021-08-03-noabqck.tar.xz This doesn't seem to be working at all # rpm -q toolbox toolbox-0.0.99.2^1.git660b6970e998-1.module+el8.5.0+12018+8bfb9f5a.x86_64 # toolbox create --image registry.redhat.io/rhel8/support-tools Created container: support-tools Enter with: toolbox enter support-tools # toolbox enter support-tools ⬢[root@toolbox ~]# ls -l /host ls: cannot access '/host': No such file or directory Without the /host mount sosreport will not run properly at all. Here is what a successful run of sosreport in a container looks like: # rpm -q toolbox toolbox-0.0.8-1.module+el8.4.0+11311+9da8acfb.noarch # toolbox Error: stat /var/lib/kubelet/config.json: no such file or directory Would you like to manually authenticate to registry: 'registry.redhat.io' and try again? [y/N] y Username: myuser Password: Login Succeeded! Trying to pull registry.redhat.io/rhel8/support-tools:latest... Getting image source signatures Checking if image destination supports signatures Copying blob 296e14ee2414 skipped: already exists Copying blob 356f18f3a935 skipped: already exists Copying blob 3b4376bfc048 done Copying config 6ad911cd1a done Writing manifest to image destination Storing signatures 6ad911cd1a8b431676ea12e242b02c3210a28660fdbfda3b6b43b53909fb48a6 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@podman2 /]# findmnt /host TARGET SOURCE FSTYPE OPTIONS /host /dev/mapper/rhel-root xfs rw,relatime,seclabel,attr2,inode64,logbufs=8,logbsize=32k,noquota [root@podman2 /]# sosreport Please note the 'sosreport' command has been deprecated in favor of the new 'sos' command, E.G. 'sos report'. Redirecting to 'sos report ' sosreport (version 4.0) This command will collect diagnostic and configuration information from this Red Hat Enterprise Linux system and installed applications. An archive containing the collected information will be generated in /host/var/tmp/sos.db_ki48g and may be provided to a Red Hat support representative. Any information provided to Red Hat will be treated in accordance with the published support policies at: https://access.redhat.com/support/ The generated archive may contain data considered sensitive and its content should be reviewed by the originating organization before being passed to any third party. No changes will be made to system configuration. Press ENTER to continue, or CTRL-C to quit. Please enter the case id that you are generating this report for []: Setting up archive ... Setting up plugins ... [plugin:firewalld] skipped command 'nft list ruleset': required kmods missing: nfnetlink, nf_tables. Use '--allow-system-changes' to enable collection. [plugin:networking] skipped command 'ip6tables -t nat -nvL': required kmods missing: nf_tables, ip6table_nat. [plugin:networking] skipped command 'ip6tables -t mangle -nvL': required kmods missing: nf_tables, ip6table_mangle. [plugin:networking] skipped command 'ip6tables -t filter -nvL': required kmods missing: nf_tables, ip6table_filter. [plugin:networking] skipped command 'nft list ruleset': required kmods missing: nf_tables. [plugin:networking] skipped command 'ip -s macsec show': required kmods missing: macsec. Use '--allow-system-changes' to enable collection. [plugin:networking] skipped command 'ss -peaonmi': required kmods missing: tcp_diag, netlink_diag, inet_diag, udp_diag, unix_diag, af_packet_diag. Use '--allow-system-changes' to enable collection. [plugin:networking] skipped command 'iptables -vnxL': required kmods missing: nf_tables, iptable_filter. [plugin:networking] skipped command 'ip6tables -vnxL': required kmods missing: nf_tables, ip6table_filter. [plugin:sssd] skipped command 'sssctl config-check': required services missing: sssd. caught exception in plugin method "system.setup()" writing traceback to sos_logs/system-plugin-errors.txt [plugin:systemd] skipped command 'systemd-resolve --status': required services missing: systemd-resolved. [plugin:systemd] skipped command 'systemd-resolve --statistics': required services missing: systemd-resolved. Running plugins. Please wait ... Finishing plugins [Running: yum] Finished running plugins Creating compressed archive... Your sosreport has been generated and saved in: /host/var/tmp/sosreport-podman2-2021-08-16-ydholoi.tar.xz Size 16.88MiB Owner root md5 5516a4ca445483e610cbbdc2065ca93b Please send this file to your support representative. Now, outside of the container the sosreport can be found at /var/tmp/sosreport-podman2-2021-08-16-ydholoi.tar.xz, and it contains data collected from the host and not from the container. Looking closer I see that host / is now available at /run/host ⬢[root@toolbox ~]# findmnt /run/host TARGET SOURCE FSTYPE OPTIONS /run/host /dev/mapper/rhel_rhel84-root xfs rw,relatime,seclabel,attr2,inode64,logbufs=8,logbsize=32k,noquota ⬢[root@toolbox ~]# ls -l /run/host/ total 28 lrwxrwxrwx. 1 root root 7 Apr 23 2020 bin -> usr/bin dr-xr-xr-x. 5 root root 4096 Aug 16 16:35 boot drwxr-xr-x. 21 root root 3160 Aug 17 10:26 dev drwxr-xr-x. 159 root root 8192 Aug 16 20:20 etc drwxr-xr-x. 3 root root 19 Jun 14 09:17 home lrwxrwxrwx. 1 root root 7 Apr 23 2020 lib -> usr/lib lrwxrwxrwx. 1 root root 9 Apr 23 2020 lib64 -> usr/lib64 drwxr-xr-x. 2 root root 6 Apr 23 2020 media drwxr-xr-x. 3 root root 17 Aug 5 12:44 mnt drwxr-xr-x. 2 root root 6 Apr 23 2020 opt dr-xr-xr-x. 164 root root 0 Aug 16 16:40 proc dr-xr-x---. 8 root root 4096 Aug 17 10:27 root drwxr-xr-x. 53 root root 1480 Aug 17 10:29 run lrwxrwxrwx. 1 root root 8 Apr 23 2020 sbin -> usr/sbin drwxr-xr-x. 2 root root 6 Apr 23 2020 srv dr-xr-xr-x. 13 root root 0 Aug 16 16:40 sys drwxrwxrwt. 13 root root 4096 Aug 17 10:30 tmp drwxr-xr-x. 12 root root 144 May 27 11:39 usr drwxr-xr-x. 23 root root 4096 May 27 12:21 var ⬢[root@toolbox ~]# HOST=/run/host/ sosreport Please note the 'sosreport' command has been deprecated in favor of the new 'sos' command, E.G. 'sos report'. Redirecting to 'sos report ' sosreport (version 4.0) This command will collect diagnostic and configuration information from this Red Hat Enterprise Linux system and installed applications. An archive containing the collected information will be generated in /run/host/var/tmp/sos.kd_c6igh and may be provided to a Red Hat support representative. Any information provided to Red Hat will be treated in accordance with the published support policies at: https://access.redhat.com/support/ The generated archive may contain data considered sensitive and its content should be reviewed by the originating organization before being passed to any third party. No changes will be made to system configuration. Press ENTER to continue, or CTRL-C to quit. Please enter the case id that you are generating this report for []: Setting up archive ... Setting up plugins ... [plugin:networking] skipped command 'ip6tables -t nat -nvL': required kmods missing: ip6table_nat, nf_tables. [plugin:networking] skipped command 'ip6tables -t mangle -nvL': required kmods missing: nf_tables, ip6table_mangle. [plugin:networking] skipped command 'ip6tables -t filter -nvL': required kmods missing: ip6table_filter, nf_tables. [plugin:networking] skipped command 'nft list ruleset': required kmods missing: nf_tables. [plugin:networking] skipped command 'ip -s macsec show': required kmods missing: macsec. Use '--allow-system-changes' to enable collection. [plugin:networking] skipped command 'ss -peaonmi': required kmods missing: unix_diag, udp_diag, netlink_diag, inet_diag, af_packet_diag, tcp_diag. Use '--allow-system-changes' to enable collection. [plugin:networking] skipped command 'iptables -vnxL': required kmods missing: iptable_filter, nf_tables. [plugin:networking] skipped command 'ip6tables -vnxL': required kmods missing: ip6table_filter, nf_tables. [plugin:pcp] could not parse /etc/pcp.conf [plugin:sar] sar: could not list /var/log/sa Running plugins. Please wait ... Starting 35/77 libvirt [Running: chrony dnf host libvirt] caught exception in plugin method "libvirt.collect()" writing traceback to sos_logs/libvirt-plugin-errors.txt Starting 68/77 systemd [Running: chrony libvirt rpm subscription_manager systemd]caught exception in plugin method "systemd.collect()" writing traceback to sos_logs/systemd-plugin-errors.txt Finishing plugins [Running: libvirt rpm systemd] yum]h]d]i] Plugin rpm timed out Creating compressed archive... Your sosreport has been generated and saved in: /run/host/var/tmp/sosreport-toolbox-2021-08-17-hratsgv.tar.xz Size 70.45MiB Owner root md5 a15025516b07401415e28f0c583aae8a Please send this file to your support representative. So we're just missing the HOST env variable set on the container. Moving back to MODIFIED since we were missing the HOST environment variable. The changes for HOST are now in dist-git: http://pkgs.devel.redhat.com/cgit/rpms/toolbox/commit/?h=stream-container-tools-rhel8&id=c7ca7ed72ee04a745d5002d56992812efbebced1 We are now waiting for a new build. @ajia @ypu Can we retest this one once the new build is completed please? This bug has been verified on toolbox-0.0.99.3-0.1.module+el8.5.0+12234+e4609207. [root@hpe-dl380pgen8-02-vm-5 ~]# cat /etc/redhat-release Red Hat Enterprise Linux release 8.5 Beta (Ootpa) [root@hpe-dl380pgen8-02-vm-5 ~]# rpm -q toolbox podman kernel toolbox-0.0.99.3-0.1.module+el8.5.0+12234+e4609207.x86_64 podman-3.3.0-8.module+el8.5.0+12332+af0a4708.x86_64 kernel-4.18.0-330.el8.x86_64 [root@hpe-dl380pgen8-02-vm-5 ~]# toolbox enter support-tools ⬢[root@toolbox ~]# findmnt /run/host TARGET SOURCE FSTYPE OPTIONS /run/host /dev/mapper/rhel_hpe--dl380pgen8--02--vm--5-root xfs rw,relatime,seclabel,attr2,inode64,logbufs=8,logbsize=32k,noquota ⬢[root@toolbox ~]# ls -l /run/host/ total 20 lrwxrwxrwx. 1 root root 7 Jun 21 05:52 bin -> usr/bin dr-xr-xr-x. 5 root root 4096 Aug 20 05:38 boot drwxr-xr-x. 19 root root 2900 Aug 20 09:37 dev drwxr-xr-x. 104 root root 8192 Aug 23 01:17 etc drwxr-xr-x. 3 root root 18 Aug 20 05:36 home -rw-r--r--. 1 root root 0 Aug 20 05:35 initrd.root.sqsh lrwxrwxrwx. 1 root root 7 Jun 21 05:52 lib -> usr/lib lrwxrwxrwx. 1 root root 9 Jun 21 05:52 lib64 -> usr/lib64 drwxr-xr-x. 2 root root 6 Jun 21 05:52 media drwxr-xr-x. 5 root root 55 Aug 20 05:38 mnt drwxr-xr-x. 2 root root 6 Jun 21 05:52 opt dr-xr-xr-x. 127 root root 0 Aug 20 04:53 proc dr-xr-x---. 6 root root 270 Aug 23 01:17 root drwxr-xr-x. 32 root root 860 Aug 23 04:08 run lrwxrwxrwx. 1 root root 8 Jun 21 05:52 sbin -> usr/sbin drwxr-xr-x. 2 root root 6 Jun 21 05:52 srv dr-xr-xr-x. 13 root root 0 Aug 20 09:37 sys drwxrwxrwt. 10 root root 4096 Aug 23 04:20 tmp drwxr-xr-x. 12 root root 144 Aug 20 05:32 usr drwxr-xr-x. 20 root root 278 Aug 20 09:37 var ⬢[root@toolbox ~]# HOST=/run/host/ sosreport Please note the 'sosreport' command has been deprecated in favor of the new 'sos' command, E.G. 'sos report'. Redirecting to 'sos report ' sosreport (version 4.0) This command will collect diagnostic and configuration information from this Red Hat Enterprise Linux system and installed applications. An archive containing the collected information will be generated in /run/host/var/tmp/sos.ksi3uk82 and may be provided to a Red Hat support representative. Any information provided to Red Hat will be treated in accordance with the published support policies at: https://access.redhat.com/support/ The generated archive may contain data considered sensitive and its content should be reviewed by the originating organization before being passed to any third party. No changes will be made to system configuration. Press ENTER to continue, or CTRL-C to quit. Please enter the case id that you are generating this report for []: Setting up archive ... Setting up plugins ... [plugin:networking] skipped command 'iptables -t nat -nvL': required kmods missing: nf_tables, iptable_nat. [plugin:networking] skipped command 'iptables -t mangle -nvL': required kmods missing: nf_tables, iptable_mangle. [plugin:networking] skipped command 'iptables -t filter -nvL': required kmods missing: nf_tables, iptable_filter. [plugin:networking] skipped command 'ip6tables -t nat -nvL': required kmods missing: nf_tables, ip6table_nat. [plugin:networking] skipped command 'ip6tables -t mangle -nvL': required kmods missing: nf_tables, ip6table_mangle. [plugin:networking] skipped command 'ip6tables -t filter -nvL': required kmods missing: nf_tables, ip6table_filter. [plugin:networking] skipped command 'nft list ruleset': required kmods missing: nf_tables. [plugin:networking] skipped command 'ip -s macsec show': required kmods missing: macsec. Use '--allow-system-changes' to enable collection. [plugin:networking] skipped command 'ss -peaonmi': required kmods missing: inet_diag, udp_diag, af_packet_diag, tcp_diag, netlink_diag, unix_diag. Use '--allow-system-changes' to enable collection. [plugin:networking] skipped command 'iptables -vnxL': required kmods missing: nf_tables, iptable_filter. [plugin:networking] skipped command 'ip6tables -vnxL': required kmods missing: nf_tables, ip6table_filter. Running plugins. Please wait ... Starting 51/57 systemd [Running: chrony host rpm systemd] caught exception in plugin method "systemd.collect()" writing traceback to sos_logs/systemd-plugin-errors.txt Finishing plugins [Running: systemd] Creating compressed archive... Your sosreport has been generated and saved in: /run/host/var/tmp/sosreport-toolbox-2021-08-23-rhzcfgv.tar.xz Size 33.14MiB Owner root md5 2e42a01179c8a491f98c1d26550793eb Please send this file to your support representative. ``` ⬢[root@toolbox ~]# HOST=/run/host/ sosreport ``` This should work **without** the need to explicitly set the environment variable. Could you test that? Thanks (In reply to Timothée Ravier from comment #24) > ``` > ⬢[root@toolbox ~]# HOST=/run/host/ sosreport > ``` > > This should work **without** the need to explicitly set the environment > variable. Could you test that? > > Thanks It will be failed to generate report w/o HOST=/run/host environment for toolbox-0.0.99.3-0.1.module+el8.5.0+12234+e4609207.x86_64 and toolbox-0.0.99.3-0.1.module+el8.5.0+12381+e822eb26.x86_64. (In reply to Alex Jia from comment #27) > It will be failed to generate report w/o HOST=/run/host environment > for toolbox-0.0.99.3-0.1.module+el8.5.0+12234+e4609207.x86_64 > and toolbox-0.0.99.3-0.1.module+el8.5.0+12381+e822eb26.x86_64. That seems like an older build. Setting the HOST environment variable was added in toolbox-0.0.99.3-0.3. The release is 0.3, not 0.1. See: http://pkgs.devel.redhat.com/cgit/rpms/toolbox/commit/?h=stream-container-tools-rhel8&id=c7ca7ed72ee04a745d5002d56992812efbebced1 Maybe the toolbox module needs a new build? (In reply to Debarshi Ray from comment #32) > That seems like an older build. > > Setting the HOST environment variable was added in toolbox-0.0.99.3-0.3. The > release is 0.3, not 0.1. See: > http://pkgs.devel.redhat.com/cgit/rpms/toolbox/commit/?h=stream-container- > tools-rhel8&id=c7ca7ed72ee04a745d5002d56992812efbebced1 > > Maybe the toolbox module needs a new build? The current toolbox 0.0.99.3-0.1 is attached into https://errata.devel.redhat.com/advisory/70723, we need a new toolbox 0.0.99.3-0.3 is attached into errata. This bug has been verified on toolbox-0.0.99.3-0.3.module+el8.5.0+12372+12f82d56, for details, please see [1]. In fact, I still met some issues about backwards compatibility with existing containers created by the older implementation, it should be irrelevant w/ this bug, so I filed a separated bug for it - bug 1998191. [1] [root@kvm-07-guest10 ~]# rm -rf /run/.containerenv NOTE: make sure there is no .containerenv file under the /run [root@kvm-07-guest10 ~]# toolbox enter support-tools ⬢[root@toolbox ~]# echo $HOST /run/host ⬢[root@toolbox ~]# sosreport XXX Running plugins. Please wait ... Starting 51/57 systemd [Running: chrony host rpm systemd] caught exception in plugin method "systemd.collect()" writing traceback to sos_logs/systemd-plugin-errors.txt Finishing plugins [Running: systemd] Creating compressed archive... Your sosreport has been generated and saved in: /run/host/var/tmp/sosreport-toolbox-2021-08-26-hcksucs.tar.xz Size 33.32MiB Owner root md5 3961d8db276bf7ed72b22bf596dfbead Please send this file to your support representative. This bug is now attached to https://errata.devel.redhat.com/advisory/70723 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 (Moderate: container-tools:rhel8 security, 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/RHSA-2021:4154 |