Bug 1804454
Summary: | the "virt-uuid" fact on a RHEL8.2 aarch64 server is missing despite reports from virt-what and dmidecode | |||
---|---|---|---|---|
Product: | Red Hat Enterprise Linux 8 | Reporter: | John Sefler <jsefler> | |
Component: | subscription-manager | Assignee: | William Poteat <wpoteat> | |
Status: | CLOSED ERRATA | QA Contact: | Red Hat subscription-manager QE Team <rhsm-qe> | |
Severity: | high | Docs Contact: | ||
Priority: | high | |||
Version: | 8.2 | CC: | arpandey, candlepin-bugs, csnyder, jbastian, jhnidek, lmiksik, redakkan, wpoteat | |
Target Milestone: | rc | Keywords: | Triaged | |
Target Release: | --- | |||
Hardware: | aarch64 | |||
OS: | Unspecified | |||
Whiteboard: | ||||
Fixed In Version: | subscription-manager-1.27.6-1 | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | ||
Clone Of: | ||||
: | 1809234 (view as bug list) | Environment: | ||
Last Closed: | 2020-11-04 01:38:42 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: | ||||
Bug Depends On: | ||||
Bug Blocks: | 1809234, 1825061 |
Description
John Sefler
2020-02-18 21:24:23 UTC
The entries in facts show none of the dmi.* entries. See bug 1540294 - update subscription-manager to use dmidecode instead of python-dmidecode. The python-dmidecode module does not work on aarch64 because /dev/mem is restricted. Hi Jeff, We would like to proceed with comment " dmidecode would have an option to print output in a machine readable format like JSON or XML so other tools like subscription-manager could easily parse it, but at the moment it only has human-readable output." that you mentioned in https://bugzilla.redhat.com/show_bug.cgi?id=1806705#c1 Is there a bug number tracking ^ this effort. If yes, We would like to block this bug on that . thanks, Rehana There is no BZ for XML or JSON output from dmidecode, but there have been some upstream discussions, including a recent thread just last month (fortunate timing!): https://lists.nongnu.org/archive/html/dmidecode-devel/2020-01/msg00000.html https://lists.nongnu.org/archive/html/dmidecode-devel/2020-01/msg00001.html Unfortunately, as you can see from the second message, the developers like the idea of adding XML or JSON output, but nobody has the time to write the code (actually, completely re-write the code from the ground up since dmidecode was not designed for this type of output). If subscription-manager needs DMI data like the system UUID, it really needs to call the dmidecode binary and ask for the specific string needed, e.g., 'dmidecode -s system-uuid'. Alternatively, subscription-manager could read the data directly from the kernel via the /sys/devices/virtual/dmi/id/* files. For example: ~]# dmidecode -s system-uuid 69d3a7c0-bfde-1000-03ca-9e23b8730904 ~]# cat /sys/devices/virtual/dmi/id/product_uuid 69d3a7c0-bfde-1000-03ca-9e23b8730904 Raw (binary) SMBIOS table entries are also in sysfs under /sys/firmware/dmi/entries/*/raw if you need data not accessible from /sys/devices/virtual/dmi/id/* 1) Issue reproduction on RHEL8.2 aarch64 system || subscription-manager: 1.26.16-1.el8 Beaker Test information: HOSTNAME=hpe-apollo-cn99xx-15-vm-28.khw4.lab.eng.bos.redhat.com JOBID=4361533 RECIPEID=8446732 RESULT_SERVER= DISTRO=RHEL-8.2.0 ARCHITECTURE=aarch64 Version-Release number of selected component (if applicable): [root@hpe-apollo-cn99xx-15-vm-28 /]# rpm -q virt-what subscription-manager dmidecode virt-what-1.18-6.el8.aarch64 subscription-manager-1.26.16-1.el8.aarch64 dmidecode-3.2-5.el8.aarch64 list of command/output to show issue reproduction: [root@hpe-apollo-cn99xx-15-vm-28 /]# virt-what kvm [root@hpe-apollo-cn99xx-15-vm-28 /]# [root@hpe-apollo-cn99xx-15-vm-28 /]# [root@hpe-apollo-cn99xx-15-vm-28 /]# dmidecode -s system-uuid 55d2b848-fe6d-4cb2-8022-c4c8c585fbc4 [root@hpe-apollo-cn99xx-15-vm-28 /]# [root@hpe-apollo-cn99xx-15-vm-28 /]# [root@hpe-apollo-cn99xx-15-vm-28 /]# subscription-manager facts cpu.core(s)_per_socket: 4 cpu.cpu(s): 4 cpu.cpu_socket(s): 1 cpu.thread(s)_per_core: 1 cpu.topology_source: kernel /sys cpu sibling lists distribution.id: Ootpa distribution.name: Red Hat Enterprise Linux distribution.version: 8.2 distribution.version.modifier: ga last_boot: 2020-06-18 06:45:23 lscpu.architecture: aarch64 lscpu.bogomips: 400.00 lscpu.byte_order: Little Endian lscpu.core(s)_per_socket: 4 lscpu.cpu(s): 4 lscpu.flags: fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics cpuid asimdrdm lscpu.model: 1 lscpu.model_name: ThunderX2 99xx lscpu.numa_node(s): 1 lscpu.numa_node0_cpu(s): 0-3 lscpu.on-line_cpu(s)_list: 0-3 lscpu.socket(s): 1 lscpu.stepping: 0x1 lscpu.thread(s)_per_core: 1 lscpu.vendor_id: Cavium memory.memtotal: 5718336 memory.swaptotal: 6311872 net.interface.enp1s0.ipv4_address: 10.19.241.118 net.interface.enp1s0.ipv4_address_list: 10.19.241.118 net.interface.enp1s0.ipv4_broadcast: 10.19.243.255 net.interface.enp1s0.ipv4_broadcast_list: 10.19.243.255 net.interface.enp1s0.ipv4_netmask: 22 net.interface.enp1s0.ipv4_netmask_list: 22 net.interface.enp1s0.ipv6_address.global: 2620:52:0:13f0:5054:ff:fe2a:151c net.interface.enp1s0.ipv6_address.global_list: 2620:52:0:13f0:5054:ff:fe2a:151c net.interface.enp1s0.ipv6_address.link: fe80::5054:ff:fe2a:151c net.interface.enp1s0.ipv6_address.link_list: fe80::5054:ff:fe2a:151c net.interface.enp1s0.ipv6_netmask.global: 64 net.interface.enp1s0.ipv6_netmask.global_list: 64 net.interface.enp1s0.ipv6_netmask.link: 64 net.interface.enp1s0.ipv6_netmask.link_list: 64 net.interface.enp1s0.mac_address: 52:54:00:2a:15:1c net.interface.lo.ipv4_address: 127.0.0.1 net.interface.lo.ipv4_address_list: 127.0.0.1 net.interface.lo.ipv4_broadcast: Unknown net.interface.lo.ipv4_broadcast_list: Unknown net.interface.lo.ipv4_netmask: 8 net.interface.lo.ipv4_netmask_list: 8 net.interface.lo.ipv6_address.host: ::1 net.interface.lo.ipv6_address.host_list: ::1 net.interface.lo.ipv6_netmask.host: 128 net.interface.lo.ipv6_netmask.host_list: 128 network.fqdn: hpe-apollo-cn99xx-15-vm-28.khw4.lab.eng.bos.redhat.com network.hostname: hpe-apollo-cn99xx-15-vm-28.khw4.lab.eng.bos.redhat.com network.ipv4_address: 10.19.241.118 network.ipv6_address: 2620:52:0:13f0:5054:ff:fe2a:151c proc_cpuinfo.common.bogomips: 400.00 proc_cpuinfo.common.cpu_architecture: 8 proc_cpuinfo.common.cpu_implementer: 0x43 proc_cpuinfo.common.cpu_part: 0x0af proc_cpuinfo.common.cpu_revision: 1 proc_cpuinfo.common.cpu_variant: 0x1 proc_cpuinfo.common.features: fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics cpuid asimdrdm proc_stat.btime: 1592462723 system.certificate_version: 3.2 system.default_locale: en_US.UTF-8 uname.machine: aarch64 uname.nodename: hpe-apollo-cn99xx-15-vm-28.khw4.lab.eng.bos.redhat.com uname.release: 4.18.0-193.el8.aarch64 uname.sysname: Linux uname.version: #1 SMP Fri Mar 27 15:23:34 UTC 2020 virt.host_type: kvm virt.is_guest: True [root@hpe-apollo-cn99xx-15-vm-28 /]# Actual results: THERE IS NO FACT FOR "virt.uuid" Expected results: virt.uuid: 55d2b848-fe6d-4cb2-8022-c4c8c585fbc4 2) Issue Verification in latest build of RHEL 8.3 Beaker Test information: HOSTNAME=hpe-apollo-cn99xx-15-vm-03.khw4.lab.eng.bos.redhat.com JOBID=4361813 RECIPEID=8447218 RESULT_SERVER= DISTRO=RHEL-8.3.0-20200618.n.0 ARCHITECTURE=aarch64 Version-Release number of selected component (if applicable): [root@hpe-apollo-cn99xx-15-vm-03 ~]# rpm -q virt-what subscription-manager dmidecode virt-what-1.18-6.el8.aarch64 subscription-manager-1.27.6-1.el8.aarch64 dmidecode-3.2-6.el8.aarch64 list of command/output for issue verification: [root@hpe-apollo-cn99xx-15-vm-03 ~]# virt-what kvm [root@hpe-apollo-cn99xx-15-vm-03 ~]# [root@hpe-apollo-cn99xx-15-vm-03 ~]# dmidecode -s system-uuid 4ffe2807-213d-464b-8f72-6721ca427f26 [root@hpe-apollo-cn99xx-15-vm-03 ~]# subscription-manager facts cpu.core(s)_per_socket: 4 cpu.cpu(s): 4 cpu.cpu_socket(s): 1 cpu.thread(s)_per_core: 1 cpu.topology_source: kernel /sys cpu sibling lists distribution.id: Ootpa distribution.name: Red Hat Enterprise Linux distribution.version: 8.3 distribution.version.modifier: beta dmi.system.uuid: 4ffe2807-213d-464b-8f72-6721ca427f26 last_boot: 2020-06-18 09:13:21 lscpu.architecture: aarch64 lscpu.bogomips: 400.00 lscpu.byte_order: Little Endian lscpu.core(s)_per_socket: 4 lscpu.cpu(s): 4 lscpu.flags: fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics cpuid asimdrdm lscpu.model: 1 lscpu.model_name: ThunderX2 99xx lscpu.numa_node(s): 1 lscpu.numa_node0_cpu(s): 0-3 lscpu.on-line_cpu(s)_list: 0-3 lscpu.socket(s): 1 lscpu.stepping: 0x1 lscpu.thread(s)_per_core: 1 lscpu.vendor_id: Cavium memory.memtotal: 5708544 memory.swaptotal: 6299584 net.interface.enp1s0.ipv4_address: 10.19.241.61 net.interface.enp1s0.ipv4_address_list: 10.19.241.61 net.interface.enp1s0.ipv4_broadcast: 10.19.243.255 net.interface.enp1s0.ipv4_broadcast_list: 10.19.243.255 net.interface.enp1s0.ipv4_netmask: 22 net.interface.enp1s0.ipv4_netmask_list: 22 net.interface.enp1s0.ipv6_address.global: 2620:52:0:13f0:4e74:d9c0:c6f8:b0b4 net.interface.enp1s0.ipv6_address.global_list: 2620:52:0:13f0:4e74:d9c0:c6f8:b0b4 net.interface.enp1s0.ipv6_address.link: fe80::970c:e0a1:2730:119e net.interface.enp1s0.ipv6_address.link_list: fe80::970c:e0a1:2730:119e net.interface.enp1s0.ipv6_netmask.global: 64 net.interface.enp1s0.ipv6_netmask.global_list: 64 net.interface.enp1s0.ipv6_netmask.link: 64 net.interface.enp1s0.ipv6_netmask.link_list: 64 net.interface.enp1s0.mac_address: 52:54:00:2a:15:03 net.interface.lo.ipv4_address: 127.0.0.1 net.interface.lo.ipv4_address_list: 127.0.0.1 net.interface.lo.ipv4_broadcast: Unknown net.interface.lo.ipv4_broadcast_list: Unknown net.interface.lo.ipv4_netmask: 8 net.interface.lo.ipv4_netmask_list: 8 net.interface.lo.ipv6_address.host: ::1 net.interface.lo.ipv6_address.host_list: ::1 net.interface.lo.ipv6_netmask.host: 128 net.interface.lo.ipv6_netmask.host_list: 128 network.fqdn: hpe-apollo-cn99xx-15-vm-03.khw4.lab.eng.bos.redhat.com network.hostname: hpe-apollo-cn99xx-15-vm-03.khw4.lab.eng.bos.redhat.com network.ipv4_address: 10.19.241.61 network.ipv6_address: 2620:52:0:13f0:5054:ff:fe2a:1503 proc_cpuinfo.common.bogomips: 400.00 proc_cpuinfo.common.cpu_architecture: 8 proc_cpuinfo.common.cpu_implementer: 0x43 proc_cpuinfo.common.cpu_part: 0x0af proc_cpuinfo.common.cpu_revision: 1 proc_cpuinfo.common.cpu_variant: 0x1 proc_cpuinfo.common.features: fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics cpuid asimdrdm proc_stat.btime: 1592471601 system.certificate_version: 3.2 system.default_locale: en_US.UTF-8 uname.machine: aarch64 uname.nodename: hpe-apollo-cn99xx-15-vm-03.khw4.lab.eng.bos.redhat.com uname.release: 4.18.0-215.el8.aarch64 uname.sysname: Linux uname.version: #1 SMP Tue Jun 16 20:07:56 UTC 2020 virt.host_type: kvm virt.is_guest: True virt.uuid: 4ffe2807-213d-464b-8f72-6721ca427f26 <<<<<<<<<< fact listed for virt.uuid Actual results: virt.uuid: 4ffe2807-213d-464b-8f72-6721ca427f26 Expected results: virt.uuid: 4ffe2807-213d-464b-8f72-6721ca427f26 additional info missed in previous comment- changelog details for this bug: [root@hpe-apollo-cn99xx-15-vm-03 ~]# rpm -q subscription-manager --changelog | grep 1804454 - 1804454: collect uuid on aarch64 system (wpoteat) [root@hpe-apollo-cn99xx-15-vm-03 ~]# 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 (subscription-manager 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-2020:4460 |