Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1989955

Summary: virt.uuid fact is missing on ibm_power-lpar_dedicated system
Product: Red Hat Enterprise Linux 9 Reporter: John Sefler <jsefler>
Component: subscription-managerAssignee: Pino Toscano <ptoscano>
Status: CLOSED ERRATA QA Contact: Red Hat subscription-manager QE Team <rhsm-qe>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 9.0CC: arpandey, ptoscano, redakkan
Target Milestone: betaKeywords: Triaged
Target Release: 9.0Flags: pm-rhel: mirror+
Hardware: ppc64le   
OS: Unspecified   
Whiteboard:
Fixed In Version: subscription-manager-1.29.21-1.el9 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1990660 (view as bug list) Environment:
Last Closed: 2022-05-17 15:58:13 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: 1990660    

Description John Sefler 2021-08-04 12:17:00 UTC
Description of problem:

While testing this IBM POWER9 system reserved from Beaker (https://beaker.engineering.redhat.com/view/ibm-p9z-25-lp5.virt.pnr.lab.eng.rdu2.redhat.com#details), virt-what and the system facts indicate that the system is a virtual guest, but there is no virt.uuid fact due to the following WARNING found in the rhsm.log...

[WARNING] subscription-manager:84736:MainThread @virt.py:136 - Tried to read /proc/device-tree/vm,uuid but there was an error: [Errno 2] No such file or directory: '/proc/device-tree/vm,uuid'

I am not a ppc64le expert and I don't know how predictable this file is, but this system has the following file under /proc/device-tree/

[root@ibm-p9z-25-lp5 ~]# ls -l /proc/device-tree/ibm,partition-uuid
-r--r--r--. 1 root root 37 Aug  3 16:12 /proc/device-tree/ibm,partition-uuid
[root@ibm-p9z-25-lp5 ~]# cat /proc/device-tree/ibm,partition-uuid
6964dfbd-a275-4cf3-9919-540839ba92ee


Version-Release number of selected component (if applicable):
RHEL-9.0.0-20210729.2 BaseOS ppc64le
[root@ibm-p9z-25-lp5 ~]# rpm -q subscription-manager
subscription-manager-1.29.18-1.el9.ppc64le


How reproducible:


Steps to Reproduce:
[root@ibm-p9z-25-lp5 ~]# virt-what
ibm_power-lpar_dedicated

[root@ibm-p9z-25-lp5 ~]# subscription-manager facts --list
cpu.core(s)_per_socket: 2
cpu.cpu(s): 16
cpu.cpu_socket(s): 1
cpu.thread(s)_per_core: 8
cpu.topology_source: kernel /sys cpu sibling lists
distribution.id: Plow
distribution.name: Red Hat Enterprise Linux
distribution.version: 9.0
distribution.version.modifier: Unknown
last_boot: 2021-08-03 15:37:24 UTC
lscpu.architecture: ppc64le
lscpu.byte_order: Little Endian
lscpu.core(s)_per_socket: 1
lscpu.cpu(s): 16
lscpu.hypervisor_vendor: pHyp
lscpu.l1d_cache: 128 KiB (4 instances)
lscpu.l1i_cache: 128 KiB (4 instances)
lscpu.l2_cache: 1 MiB (2 instances)
lscpu.l3_cache: 20 MiB (2 instances)
lscpu.model: 2.2 (pvr 004e 0202)
lscpu.model_name: POWER9 (architected), altivec supported
lscpu.numa_node(s): 1
lscpu.numa_node0_cpu(s): 0-15
lscpu.on-line_cpu(s)_list: 0-15
lscpu.physical_chips: 1
lscpu.physical_cores/chip: 10
lscpu.physical_sockets: 2
lscpu.socket(s): 2
lscpu.thread(s)_per_core: 8
lscpu.virtualization_type: para
lscpu.vulnerability_itlb_multihit: Not affected
lscpu.vulnerability_l1tf: Mitigation; RFI Flush, L1D private per thread
lscpu.vulnerability_mds: Not affected
lscpu.vulnerability_meltdown: Mitigation; RFI Flush, L1D private per thread
lscpu.vulnerability_spec_store_bypass: Mitigation; Kernel entry/exit barrier (eieio)
lscpu.vulnerability_spectre_v1: Mitigation; __user pointer sanitization, ori31 speculation barrier enabled
lscpu.vulnerability_spectre_v2: Mitigation; Indirect branch cache disabled, Software link stack flush
lscpu.vulnerability_srbds: Not affected
lscpu.vulnerability_tsx_async_abort: Not affected
memory.memtotal: 13442688
memory.swaptotal: 6787008
net.interface.env2.ipv4_address: 10.0.2.180
net.interface.env2.ipv4_address_list: 10.0.2.180
net.interface.env2.ipv4_broadcast: 10.0.2.255
net.interface.env2.ipv4_broadcast_list: 10.0.2.255
net.interface.env2.ipv4_netmask: 24
net.interface.env2.ipv4_netmask_list: 24
net.interface.env2.ipv6_address.global: 2620:52:0:2:dc61:69ff:fe97:2202
net.interface.env2.ipv6_address.global_list: 2620:52:0:2:dc61:69ff:fe97:2202
net.interface.env2.ipv6_address.link: fe80::dc61:69ff:fe97:2202
net.interface.env2.ipv6_address.link_list: fe80::dc61:69ff:fe97:2202
net.interface.env2.ipv6_netmask.global: 64
net.interface.env2.ipv6_netmask.global_list: 64
net.interface.env2.ipv6_netmask.link: 64
net.interface.env2.ipv6_netmask.link_list: 64
net.interface.env2.mac_address: de:61:69:97:22:02
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: ibm-p9z-25-lp5.virt.pnr.lab.eng.rdu2.redhat.com
network.hostname: ibm-p9z-25-lp5.virt.pnr.lab.eng.rdu2.redhat.com
network.ipv4_address: 10.0.2.180
network.ipv6_address: fe80::dc61:69ff:fe97:2202, 2620:52:0:2:dc61:69ff:fe97:2202
proc_cpuinfo.common.machine: CHRP IBM,8375-42A
proc_cpuinfo.common.mmu: Hash
proc_cpuinfo.common.model: IBM,8375-42A
proc_cpuinfo.common.platform: pSeries
proc_stat.btime: 1628005044
system.certificate_version: 3.2
system.default_locale: en_US.UTF-8
uname.machine: ppc64le
uname.nodename: ibm-p9z-25-lp5.virt.pnr.lab.eng.rdu2.redhat.com
uname.release: 5.14.0-0.rc3.29.el9.ppc64le
uname.sysname: Linux
uname.version: #1 SMP Tue Jul 27 09:59:05 EDT 2021
virt.host_type: ibm_power-lpar_dedicated
virt.is_guest: True

[root@ibm-p9z-25-lp5 ~]# grep WARNING /var/log/rhsm/rhsm.log
2021-08-04 08:08:49,508 [WARNING] subscription-manager:118746:MainThread @virt.py:136 - Tried to read /proc/device-tree/vm,uuid but there was an error: [Errno 2] No such file or directory: '/proc/device-tree/vm,uuid'



Actual results:
  above

Expected results:
  Since virt-what reports this as a virtual guest and virt.is_guest is True, there should be a virt.uuid fact, but it is missing due to the WARNING.


Additional info:

[root@ibm-p9z-25-lp5 ~]# ls -l /proc/device-tree/
total 0
-r--r--r--.  1 root root    4 Aug  3 16:12 '#address-cells'
drwxr-xr-x.  2 root root    0 Aug  3 16:12  aliases
drwxr-xr-x.  2 root root    0 Aug  3 11:37  chosen
-r--r--r--.  1 root root    4 Aug  3 16:12  clock-frequency
-r--r--r--.  1 root root   13 Aug  3 14:19  compatible
drwxr-xr-x.  8 root root    0 Aug  3 16:12  cpus
-r--r--r--.  1 root root    5 Aug  3 16:12  device_type
drwxr-xr-x.  3 root root    0 Aug  3 16:12  event-sources
-r--r--r--.  1 root root    8 Aug  3 11:37 'hmc-managed?'
-r--r--r--.  1 root root    0 Aug  3 16:12  ibm,aix-diagnostics
-r--r--r--.  1 root root    0 Aug  3 16:12  ibm,converged-loc-codes
-r--r--r--.  1 root root 1917 Aug  3 16:12  ibm,drc-info
drwxr-xr-x.  2 root root    0 Aug  3 16:12  ibm,dynamic-reconfiguration-memory
-r--r--r--.  1 root root    4 Aug  3 16:12  ibm,eeh-default
-r--r--r--.  1 root root    0 Aug  3 16:12  ibm,enable-ci64-capable
-r--r--r--.  1 root root    0 Aug  3 16:12  ibm,extended-address
-r--r--r--.  1 root root    8 Aug  3 16:12  ibm,extended-clock-frequency
-r--r--r--.  1 root root    4 Aug  3 16:12  ibm,fault-behavior
-r--r--r--.  1 root root    4 Aug  3 16:12  ibm,fru-9006-deactivate
-r--r--r--.  1 root root    4 Aug  3 16:12  ibm,fw-bytes-per-boot-device
-r--r--r--.  1 root root    0 Aug  3 16:12  ibm,fw-net-version
-r--r--r--.  1 root root    0 Aug  3 16:12  ibm,ignore-hp-po-fails-for-dlpar
-r--r--r--.  1 root root    0 Aug  3 16:12  ibm,linux-le-capable
-r--r--r--.  1 root root    0 Aug  3 16:12  ibm,lpar-capable
-r--r--r--.  1 root root    4 Aug  3 16:12  ibm,max-boot-devices
-r--r--r--.  1 root root    4 Aug  3 16:12  ibm,max-vios-function-level
-r--r--r--.  1 root root    0 Aug  3 16:12  ibm,migratable-partition
-r--r--r--.  1 root root    3 Aug  3 16:12  ibm,model-class
-r--r--r--.  1 root root    4 Aug  3 11:37  ibm,partition-name
-r--r--r--.  1 root root    4 Aug  3 16:12  ibm,partition-no
-r--r--r--.  1 root root    4 Aug  3 16:12  ibm,partition-performance-parameters-level
-r--r--r--.  1 root root   37 Aug  3 16:12  ibm,partition-uuid    <=========== LOOK HERE
-r--r--r--.  1 root root    4 Aug  3 16:12  ibm,pci-full-cfg
drwxr-xr-x.  2 root root    0 Aug  3 16:12  ibm,persistent-memory
-r--r--r--.  1 root root    4 Aug  3 16:12  ibm,phandle
drwxr-xr-x.  5 root root    0 Aug  3 16:12  ibm,platform-facilities
-r--r--r--.  1 root root   20 Aug  3 16:12  ibm,platform-hardware-notification
-r--r--r--.  1 root root   16 Aug  3 16:12  ibm,plat-res-int-priorities
-r--r--r--.  1 root root    0 Aug  3 16:12  ibm,powervm-partition
-r--r--r--.  1 root root    4 Aug  3 16:12  ibm,secure-boot
drwxr-xr-x.  2 root root    0 Aug  3 16:12  ibm,serial
-r--r--r--.  1 root root    4 Aug  3 16:12  ibm,service-indicator-mode
drwxr-xr-x.  2 root root    0 Aug  3 16:12  interrupt-controller@0
drwxr-xr-x.  2 root root    0 Aug  3 16:12  memory@0
-r--r--r--.  1 root root   13 Aug  3 16:12  model
-r--r--r--.  1 root root    1 Aug  3 16:12  name
drwxr-xr-x.  2 root root    0 Aug  3 16:12  openprom
drwxr-xr-x.  2 root root    0 Aug  3 16:12  options
drwxr-xr-x. 36 root root    0 Aug  3 16:12  packages
-r--r--r--.  1 root root    4 Aug  3 16:12  phandle
drwxr-xr-x.  2 root root    0 Aug  3 15:38  rtas
-r--r--r--.  1 root root    4 Aug  3 16:12 '#size-cells'
-r--r--r--.  1 root root   14 Aug  3 16:12  system-id
drwxr-xr-x. 10 root root    0 Aug  3 15:38  vdevice

[root@ibm-p9z-25-lp5 ~]# cat /proc/device-tree/ibm,partition-uuid 
6964dfbd-a275-4cf3-9919-540839ba92ee

Comment 1 Pino Toscano 2021-08-10 15:01:10 UTC
I just talked with Laurent Vivier, who works on KVM for POWER (thanks!).

https://openpowerfoundation.org/wp-content/uploads/2020/07/LoPAR-20200611.pdf

According to the POWER specs, in particular in B.5.2.1 (Root Node Properties), we have:

| “ibm,partition-uuid”
|
| property name specifies a universally unique identifier for this
| partition.
|
| prop-encoded-array: A string of data as described below,
| encoded as with encode-string
|
| The Universally Unique IDentifier (UUID) option provides each
| partition with a Universally Unique Identifier that is persisted
| by the platform across partition reboots, reconfigurations, OS
| reinstalls, partition migration, hibernation etc. The UUID is a
| 16 byte string of format fields and random bits as defined in
| Table B.4, “UUID Format” [813].
|
| The random bits are generated in an implementation-dependent
| manner to achieve a projected probability of collision of not
| greater than one in 2^60.

So yes, we can use /proc/device-tree/ibm,partition-uuid for the UUID of an LPAR system.

Comment 2 Rehana 2021-11-03 15:47:05 UTC
Reproducing the failure on RHEL 9: 
==================================

# subscription-manager version
server type: This system is currently not registered.
subscription management server: 3.2.21-1
subscription management rules: 5.41
subscription-manager: 1.29.18-2.el9

# ls -l /proc/device-tree/ibm,partition-uuid
-r--r--r--. 1 root root 37 Nov  3 10:28 /proc/device-tree/ibm,partition-uuid

# cat /proc/device-tree/ibm,partition-uuid
6964dfbd-a275-4cf3-9919-540839ba92ee

# virt-what
ibm_power-lpar_dedicated

# subscription-manager facts --list
cpu.core(s)_per_socket: 1
cpu.cpu(s): 8
cpu.cpu_socket(s): 1
cpu.thread(s)_per_core: 8
cpu.topology_source: kernel /sys cpu sibling lists
distribution.id: Plow
distribution.name: Red Hat Enterprise Linux
distribution.version: 9.0
distribution.version.modifier: Unknown
last_boot: 2021-11-03 14:27:55 UTC
lscpu.architecture: ppc64le
lscpu.byte_order: Little Endian
lscpu.core(s)_per_socket: 0
lscpu.cpu(s): 8
lscpu.hypervisor_vendor: pHyp
lscpu.l1d_cache: 64 KiB (2 instances)
lscpu.l1i_cache: 64 KiB (2 instances)
lscpu.l2_cache: 512 KiB (1 instance)
lscpu.l3_cache: 10 MiB (1 instance)
lscpu.model: 2.2 (pvr 004e 0202)
lscpu.model_name: POWER9 (architected), altivec supported
lscpu.numa_node(s): 1
lscpu.numa_node0_cpu(s): 0-7
lscpu.on-line_cpu(s)_list: 0-7
lscpu.physical_chips: 1
lscpu.physical_cores/chip: 10
lscpu.physical_sockets: 2
lscpu.socket(s): 2
lscpu.thread(s)_per_core: 8
lscpu.virtualization_type: para
lscpu.vulnerability_itlb_multihit: Not affected
lscpu.vulnerability_l1tf: Mitigation; RFI Flush, L1D private per thread
lscpu.vulnerability_mds: Not affected
lscpu.vulnerability_meltdown: Mitigation; RFI Flush, L1D private per thread
lscpu.vulnerability_spec_store_bypass: Mitigation; Kernel entry/exit barrier (eieio)
lscpu.vulnerability_spectre_v1: Mitigation; __user pointer sanitization, ori31 speculation barrier enabled
lscpu.vulnerability_spectre_v2: Mitigation; Indirect branch cache disabled, Software link stack flush
lscpu.vulnerability_srbds: Not affected
lscpu.vulnerability_tsx_async_abort: Not affected
memory.memtotal: 7713344
memory.swaptotal: 8351680
net.interface.env2.ipv4_address: 10.0.2.180
net.interface.env2.ipv4_address_list: 10.0.2.180
net.interface.env2.ipv4_broadcast: 10.0.2.255
net.interface.env2.ipv4_broadcast_list: 10.0.2.255
net.interface.env2.ipv4_netmask: 24
net.interface.env2.ipv4_netmask_list: 24
net.interface.env2.ipv6_address.global: 2620:52:0:2:dc61:69ff:fe97:2202
net.interface.env2.ipv6_address.global_list: 2620:52:0:2:dc61:69ff:fe97:2202
net.interface.env2.ipv6_address.link: fe80::dc61:69ff:fe97:2202
net.interface.env2.ipv6_address.link_list: fe80::dc61:69ff:fe97:2202
net.interface.env2.ipv6_netmask.global: 64
net.interface.env2.ipv6_netmask.global_list: 64
net.interface.env2.ipv6_netmask.link: 64
net.interface.env2.ipv6_netmask.link_list: 64
net.interface.env2.mac_address: de:61:69:97:22:02
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: ibm-p9z-25-lp5.virt.pnr.lab.eng.rdu2.redhat.com
network.hostname: ibm-p9z-25-lp5.virt.pnr.lab.eng.rdu2.redhat.com
network.ipv4_address: 10.0.2.180
network.ipv6_address: 2620:52:0:2:dc61:69ff:fe97:2202, fe80::dc61:69ff:fe97:2202
proc_cpuinfo.common.machine: CHRP IBM,8375-42A
proc_cpuinfo.common.mmu: Hash
proc_cpuinfo.common.model: IBM,8375-42A
proc_cpuinfo.common.platform: pSeries
proc_stat.btime: 1635949675
system.certificate_version: 3.2
system.default_locale: en_US.UTF-8
uname.machine: ppc64le
uname.nodename: ibm-p9z-25-lp5.virt.pnr.lab.eng.rdu2.redhat.com
uname.release: 5.14.0-11.el9.ppc64le
uname.sysname: Linux
uname.version: #1 SMP Thu Oct 28 18:03:05 EDT 2021
virt.host_type: ibm_power-lpar_dedicated
virt.is_guest: True

# grep WARNING /var/log/rhsm/rhsm.log
2021-11-03 10:26:54,974 [WARNING] dnf:23294:MainThread @logutil.py:155 - logging already initialized
2021-11-03 10:28:20,559 [WARNING] dnf:3793:MainThread @logutil.py:155 - logging already initialized
2021-11-03 10:28:28,918 [WARNING] dnf:4040:MainThread @logutil.py:155 - logging already initialized
2021-11-03 10:29:48,256 [WARNING] dnf:4047:MainThread @logutil.py:155 - logging already initialized
2021-11-03 11:09:22,073 [WARNING] subscription-manager:16686:MainThread @virt.py:136 - Tried to read /proc/device-tree/vm,uuid but there was an error: [Errno 2] No such file or directory: '/proc/device-tree/vm,uuid'

Notice the virt.uuid fact was not collected . 

Pre-Verifying on :
===================
# subscription-manager version
server type: This system is currently not registered.
subscription management server: 3.2.21-1
subscription management rules: 5.41
subscription-manager: 1.29.19-1.git.102.93c5be7.el9

# ls -l /proc/device-tree/ibm,partition-uuid
-r--r--r--. 1 root root 37 Nov  3 10:28 /proc/device-tree/ibm,partition-uuid

# cat /proc/device-tree/ibm,partition-uuid
6964dfbd-a275-4cf3-9919-540839ba92ee

# virt-what
ibm_power-lpar_dedicated

# subscription-manager facts --list
cpu.core(s)_per_socket: 1
cpu.cpu(s): 8
cpu.cpu_socket(s): 1
cpu.thread(s)_per_core: 8
cpu.topology_source: kernel /sys cpu sibling lists
distribution.id: Plow
distribution.name: Red Hat Enterprise Linux
distribution.version: 9.0
distribution.version.modifier: Unknown
last_boot: 2021-11-03 14:27:55 UTC
lscpu.architecture: ppc64le
lscpu.byte_order: Little Endian
lscpu.core(s)_per_socket: 0
lscpu.cpu(s): 8
lscpu.hypervisor_vendor: pHyp
lscpu.l1d_cache: 64 KiB (2 instances)
lscpu.l1i_cache: 64 KiB (2 instances)
lscpu.l2_cache: 512 KiB (1 instance)
lscpu.l3_cache: 10 MiB (1 instance)
lscpu.model: 2.2 (pvr 004e 0202)
lscpu.model_name: POWER9 (architected), altivec supported
lscpu.numa_node(s): 1
lscpu.numa_node0_cpu(s): 0-7
lscpu.on-line_cpu(s)_list: 0-7
lscpu.physical_chips: 1
lscpu.physical_cores/chip: 10
lscpu.physical_sockets: 2
lscpu.socket(s): 2
lscpu.thread(s)_per_core: 8
lscpu.virtualization_type: para
lscpu.vulnerability_itlb_multihit: Not affected
lscpu.vulnerability_l1tf: Mitigation; RFI Flush, L1D private per thread
lscpu.vulnerability_mds: Not affected
lscpu.vulnerability_meltdown: Mitigation; RFI Flush, L1D private per thread
lscpu.vulnerability_spec_store_bypass: Mitigation; Kernel entry/exit barrier (eieio)
lscpu.vulnerability_spectre_v1: Mitigation; __user pointer sanitization, ori31 speculation barrier enabled
lscpu.vulnerability_spectre_v2: Mitigation; Indirect branch cache disabled, Software link stack flush
lscpu.vulnerability_srbds: Not affected
lscpu.vulnerability_tsx_async_abort: Not affected
memory.memtotal: 7713344
memory.swaptotal: 8351680
net.interface.env2.ipv4_address: 10.0.2.180
net.interface.env2.ipv4_address_list: 10.0.2.180
net.interface.env2.ipv4_broadcast: 10.0.2.255
net.interface.env2.ipv4_broadcast_list: 10.0.2.255
net.interface.env2.ipv4_netmask: 24
net.interface.env2.ipv4_netmask_list: 24
net.interface.env2.ipv6_address.global: 2620:52:0:2:dc61:69ff:fe97:2202
net.interface.env2.ipv6_address.global_list: 2620:52:0:2:dc61:69ff:fe97:2202
net.interface.env2.ipv6_address.link: fe80::dc61:69ff:fe97:2202
net.interface.env2.ipv6_address.link_list: fe80::dc61:69ff:fe97:2202
net.interface.env2.ipv6_netmask.global: 64
net.interface.env2.ipv6_netmask.global_list: 64
net.interface.env2.ipv6_netmask.link: 64
net.interface.env2.ipv6_netmask.link_list: 64
net.interface.env2.mac_address: de:61:69:97:22:02
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: ibm-p9z-25-lp5.virt.pnr.lab.eng.rdu2.redhat.com
network.hostname: ibm-p9z-25-lp5.virt.pnr.lab.eng.rdu2.redhat.com
network.ipv4_address: 10.0.2.180
network.ipv6_address: fe80::dc61:69ff:fe97:2202, 2620:52:0:2:dc61:69ff:fe97:2202
proc_cpuinfo.common.machine: CHRP IBM,8375-42A
proc_cpuinfo.common.mmu: Hash
proc_cpuinfo.common.model: IBM,8375-42A
proc_cpuinfo.common.platform: pSeries
proc_stat.btime: 1635949675
system.certificate_version: 3.2
system.default_locale: en_US.UTF-8
uname.machine: ppc64le
uname.nodename: ibm-p9z-25-lp5.virt.pnr.lab.eng.rdu2.redhat.com
uname.release: 5.14.0-11.el9.ppc64le
uname.sysname: Linux
uname.version: #1 SMP Thu Oct 28 18:03:05 EDT 2021
virt.host_type: ibm_power-lpar_dedicated
virt.is_guest: True
virt.uuid: 6964dfbd-a275-4cf3-9919-540839ba92ee

^^ NOTICE THE virt.uuid fact is now reported on the system 


# grep WARNING /var/log/rhsm/rhsm.log
2021-11-03 10:26:54,974 [WARNING] dnf:23294:MainThread @logutil.py:155 - logging already initialized
2021-11-03 10:28:20,559 [WARNING] dnf:3793:MainThread @logutil.py:155 - logging already initialized
2021-11-03 10:28:28,918 [WARNING] dnf:4040:MainThread @logutil.py:155 - logging already initialized
2021-11-03 10:29:48,256 [WARNING] dnf:4047:MainThread @logutil.py:155 - logging already initialized
2021-11-03 11:09:22,073 [WARNING] subscription-manager:16686:MainThread @virt.py:136 - Tried to read /proc/device-tree/vm,uuid but there was an error: [Errno 2] No such file or directory: '/proc/device-tree/vm,uuid'
2021-11-03 11:11:32,812 [WARNING] yum:16796:MainThread @logutil.py:155 - logging already initialized
2021-11-03 11:44:18,767 [WARNING] yum:17772:MainThread @logutil.py:155 - logging already initialized

^^ NO new warning messages were logged. 

Based on the above observation, pre-verifying the bug .

Comment 6 Archana Pandey 2021-11-29 12:05:59 UTC
Reproducing issue-

[root@ibm-p9z-27-lp10 ~]# 
[root@ibm-p9z-27-lp10 ~]# rpm -qa subscription-manager
subscription-manager-1.29.18-1.el9.ppc64le
[root@ibm-p9z-27-lp10 ~]# cat /proc/device-tree/ibm,partition-uuid
3ddfd672-24da-4fbb-9aa2-38f985edc234
[root@ibm-p9z-27-lp10 ~]# 
[root@ibm-p9z-27-lp10 ~]# virt-what
ibm_power-lpar_shared
[root@ibm-p9z-27-lp10 ~]# subscription-manager facts --list
cpu.core(s)_per_socket: 1
cpu.cpu(s): 8
cpu.cpu_socket(s): 1
cpu.thread(s)_per_core: 8
cpu.topology_source: kernel /sys cpu sibling lists
distribution.id: Plow
distribution.name: Red Hat Enterprise Linux
distribution.version: 9.0
distribution.version.modifier: Unknown
last_boot: 2021-11-29 09:41:22 UTC
lscpu.architecture: ppc64le
lscpu.byte_order: Little Endian
lscpu.core(s)_per_socket: 0
lscpu.cpu(s): 8
lscpu.hypervisor_vendor: pHyp
lscpu.l1d_cache: 64 KiB (2 instances)
lscpu.l1i_cache: 64 KiB (2 instances)
lscpu.model: 2.2 (pvr 004e 0202)
lscpu.model_name: POWER9 (architected), altivec supported
lscpu.numa_node(s): 1
lscpu.numa_node0_cpu(s): 0-7
lscpu.on-line_cpu(s)_list: 0-7
lscpu.physical_chips: 1
lscpu.physical_cores/chip: 11
lscpu.physical_sockets: 2
lscpu.socket(s): 2
lscpu.thread(s)_per_core: 8
lscpu.virtualization_type: para
lscpu.vulnerability_itlb_multihit: Not affected
lscpu.vulnerability_l1tf: Mitigation; RFI Flush, L1D private per thread
lscpu.vulnerability_mds: Not affected
lscpu.vulnerability_meltdown: Mitigation; RFI Flush, L1D private per thread
lscpu.vulnerability_spec_store_bypass: Mitigation; Kernel entry/exit barrier (eieio)
lscpu.vulnerability_spectre_v1: Mitigation; __user pointer sanitization, ori31 speculation barrier enabled
lscpu.vulnerability_spectre_v2: Mitigation; Indirect branch cache disabled, Software link stack flush
lscpu.vulnerability_srbds: Not affected
lscpu.vulnerability_tsx_async_abort: Not affected
memory.memtotal: 7778880
memory.swaptotal: 4210624
net.interface.env2.ipv4_address: 10.16.214.56
net.interface.env2.ipv4_address_list: 10.16.214.56
net.interface.env2.ipv4_broadcast: 10.16.215.255
net.interface.env2.ipv4_broadcast_list: 10.16.215.255
net.interface.env2.ipv4_netmask: 23
net.interface.env2.ipv4_netmask_list: 23
net.interface.env2.ipv6_address.global: 2620:52:0:10d6:8448:acff:fef1:7102
net.interface.env2.ipv6_address.global_list: 2620:52:0:10d6:8448:acff:fef1:7102
net.interface.env2.ipv6_address.link: fe80::8448:acff:fef1:7102
net.interface.env2.ipv6_address.link_list: fe80::8448:acff:fef1:7102
net.interface.env2.ipv6_netmask.global: 64
net.interface.env2.ipv6_netmask.global_list: 64
net.interface.env2.ipv6_netmask.link: 64
net.interface.env2.ipv6_netmask.link_list: 64
net.interface.env2.mac_address: 86:48:ac:f1:71:02
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: ibm-p9z-27-lp10.ibm2.lab.eng.bos.redhat.com
network.hostname: ibm-p9z-27-lp10.ibm2.lab.eng.bos.redhat.com
network.ipv4_address: 10.16.214.56
network.ipv6_address: 2620:52:0:10d6:8448:acff:fef1:7102, fe80::8448:acff:fef1:7102
proc_cpuinfo.common.machine: CHRP IBM,8375-42A
proc_cpuinfo.common.mmu: Hash
proc_cpuinfo.common.model: IBM,8375-42A
proc_cpuinfo.common.platform: pSeries
proc_stat.btime: 1638178882
system.certificate_version: 3.2
system.default_locale: en_US.UTF-8
uname.machine: ppc64le
uname.nodename: ibm-p9z-27-lp10.ibm2.lab.eng.bos.redhat.com
uname.release: 5.14.0-21.el9.ppc64le
uname.sysname: Linux
uname.version: #1 SMP Thu Nov 25 21:57:40 EST 2021
virt.host_type: ibm_power-lpar_shared  
virt.is_guest: True                             <<<<<<<<<<<<<<<<<<<<<<<<, missing uuid
[root@ibm-p9z-27-lp10 ~]# grep WARNING /var/log/rhsm/rhsm.log
2021-11-29 04:40:07,628 [WARNING] dnf:23394:MainThread @logutil.py:167 - logging already initialized
2021-11-29 04:41:48,300 [WARNING] dnf:3064:MainThread @logutil.py:167 - logging already initialized
2021-11-29 04:42:00,007 [WARNING] dnf:4076:MainThread @logutil.py:167 - logging already initialized
2021-11-29 04:43:59,237 [WARNING] dnf:4084:MainThread @logutil.py:167 - logging already initialized
2021-11-29 05:22:50,046 [WARNING] yum:16789:MainThread @logutil.py:167 - logging already initialized
2021-11-29 05:25:52,480 [WARNING] yum:17013:MainThread @logutil.py:167 - logging already initialized
2021-11-29 05:26:08,093 [WARNING] subscription-manager:17217:MainThread @virt.py:136 - Tried to read /proc/device-tree/vm,uuid but there was an error: [Errno 2] No such file or directory: '/proc/device-tree/vm,uuid'

==============================================================================================

Verifying issue on subscription-manager-1.29.21-1.el9.ppc64le
Beaker Test information:
                         HOSTNAME=ibm-p9z-27-lp10.ibm2.lab.eng.bos.redhat.com
                            JOBID=6041097
                         RECIPEID=11051484
                    RESULT_SERVER=
                           DISTRO=RHEL-9.0.0-20211128.3
                     ARCHITECTURE=ppc64le

[root@ibm-p9z-27-lp10 ~]# 
[root@ibm-p9z-27-lp10 ~]# rpm -qa subscription-manager
subscription-manager-1.29.21-1.el9.ppc64le
[root@ibm-p9z-27-lp10 ~]# rpm -qa --changelog subscription-manager | grep 1989955
- 1989955: use /proc/device-tree/ibm,partition-uuid on POWER LPARs
[root@ibm-p9z-27-lp10 ~]# 
[root@ibm-p9z-27-lp10 ~]# virt-what
ibm_power-lpar_shared
[root@ibm-p9z-27-lp10 ~]# cat /proc/device-tree/ibm,partition-uuid
3ddfd672-24da-4fbb-9aa2-38f985edc234[root@ibm-p9z-27-lp10 ~]# 
[root@ibm-p9z-27-lp10 ~]# subscription-manager facts --list
cpu.core(s)_per_socket: 1
cpu.cpu(s): 8
cpu.cpu_socket(s): 1
cpu.thread(s)_per_core: 8
cpu.topology_source: kernel /sys cpu sibling lists
distribution.id: Plow
distribution.name: Red Hat Enterprise Linux
distribution.version: 9.0
distribution.version.modifier: Unknown
last_boot: 2021-11-29 09:41:22 UTC
lscpu.architecture: ppc64le
lscpu.byte_order: Little Endian
lscpu.core(s)_per_socket: 0
lscpu.cpu(s): 8
lscpu.hypervisor_vendor: pHyp
lscpu.l1d_cache: 64 KiB (2 instances)
lscpu.l1i_cache: 64 KiB (2 instances)
lscpu.model: 2.2 (pvr 004e 0202)
lscpu.model_name: POWER9 (architected), altivec supported
lscpu.numa_node(s): 1
lscpu.numa_node0_cpu(s): 0-7
lscpu.on-line_cpu(s)_list: 0-7
lscpu.physical_chips: 1
lscpu.physical_cores/chip: 11
lscpu.physical_sockets: 2
lscpu.socket(s): 2
lscpu.thread(s)_per_core: 8
lscpu.virtualization_type: para
lscpu.vulnerability_itlb_multihit: Not affected
lscpu.vulnerability_l1tf: Mitigation; RFI Flush, L1D private per thread
lscpu.vulnerability_mds: Not affected
lscpu.vulnerability_meltdown: Mitigation; RFI Flush, L1D private per thread
lscpu.vulnerability_spec_store_bypass: Mitigation; Kernel entry/exit barrier (eieio)
lscpu.vulnerability_spectre_v1: Mitigation; __user pointer sanitization, ori31 speculation barrier enabled
lscpu.vulnerability_spectre_v2: Mitigation; Indirect branch cache disabled, Software link stack flush
lscpu.vulnerability_srbds: Not affected
lscpu.vulnerability_tsx_async_abort: Not affected
memory.memtotal: 7778880
memory.swaptotal: 4210624
net.interface.env2.ipv4_address: 10.16.214.56
net.interface.env2.ipv4_address_list: 10.16.214.56
net.interface.env2.ipv4_broadcast: 10.16.215.255
net.interface.env2.ipv4_broadcast_list: 10.16.215.255
net.interface.env2.ipv4_netmask: 23
net.interface.env2.ipv4_netmask_list: 23
net.interface.env2.ipv6_address.global: 2620:52:0:10d6:8448:acff:fef1:7102
net.interface.env2.ipv6_address.global_list: 2620:52:0:10d6:8448:acff:fef1:7102
net.interface.env2.ipv6_address.link: fe80::8448:acff:fef1:7102
net.interface.env2.ipv6_address.link_list: fe80::8448:acff:fef1:7102
net.interface.env2.ipv6_netmask.global: 64
net.interface.env2.ipv6_netmask.global_list: 64
net.interface.env2.ipv6_netmask.link: 64
net.interface.env2.ipv6_netmask.link_list: 64
net.interface.env2.mac_address: 86:48:ac:f1:71:02
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: ibm-p9z-27-lp10.ibm2.lab.eng.bos.redhat.com
network.hostname: ibm-p9z-27-lp10.ibm2.lab.eng.bos.redhat.com
network.ipv4_address: 10.16.214.56
network.ipv6_address: fe80::8448:acff:fef1:7102, 2620:52:0:10d6:8448:acff:fef1:7102
proc_cpuinfo.common.machine: CHRP IBM,8375-42A
proc_cpuinfo.common.mmu: Hash
proc_cpuinfo.common.model: IBM,8375-42A
proc_cpuinfo.common.platform: pSeries
proc_stat.btime: 1638178882
system.certificate_version: 3.2
system.default_locale: en_US.UTF-8
uname.machine: ppc64le
uname.nodename: ibm-p9z-27-lp10.ibm2.lab.eng.bos.redhat.com
uname.release: 5.14.0-21.el9.ppc64le
uname.sysname: Linux
uname.version: #1 SMP Thu Nov 25 21:57:40 EST 2021
virt.host_type: ibm_power-lpar_shared
virt.is_guest: True 
virt.uuid: 3ddfd672-24da-4fbb-9aa2-38f985edc234  <<< uuid listed successfully
[root@ibm-p9z-27-lp10 ~]# 

Verification : PASSED

Comment 8 errata-xmlrpc 2022-05-17 15:58:13 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 (new packages: subscription-manager), 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-2022:3984