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 1990660

Summary: virt.uuid fact is missing on ibm_power-lpar_dedicated system
Product: Red Hat Enterprise Linux 8 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: 8.5CC: arpandey, candlepin-bugs, ptoscano, redakkan, rhsm-qe
Target Milestone: betaKeywords: Triaged
Target Release: 8.6Flags: pm-rhel: mirror+
Hardware: ppc64le   
OS: Unspecified   
Whiteboard:
Fixed In Version: subscription-manager-1.28.24-1.el8 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1989955 Environment:
Last Closed: 2022-05-10 15:22:56 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: 1989955    
Bug Blocks:    

Description John Sefler 2021-08-05 21:29:00 UTC
+++ This bug was initially created as a clone of Bug #1989955 +++

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 John Sefler 2021-08-05 21:37:50 UTC
Although comment 0 is reported against RHEL-9 it also happens on RHEL-8 as shown below...

Compose: RHEL-8/RHEL-8.5.0-20210730.n.0

# rpm -q subscription-manager
subscription-manager-1.28.19-1.el8.ppc64le


# 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: Ootpa
distribution.name: Red Hat Enterprise Linux
distribution.version: 8.5
distribution.version.modifier: Unknown
insights_id: 4acc43c2-bf3e-4b4c-8c88-eb011f329c2f
last_boot: 2021-08-04 22:13:34
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: 32K
lscpu.l1i_cache: 32K
lscpu.l2_cache: 512K
lscpu.l3_cache: 10240K
lscpu.model: 2.2 (pvr 004e 0202)
lscpu.model_name: POWER9 (architected), altivec supported
lscpu.numa_node(s): 1
lscpu.numa_node1_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
memory.memtotal: 15670336
memory.swaptotal: 8417216
net.interface.cni-podman0.ipv4_address: 10.88.0.1
net.interface.cni-podman0.ipv4_address_list: 10.88.0.1
net.interface.cni-podman0.ipv4_broadcast: 10.88.255.255
net.interface.cni-podman0.ipv4_broadcast_list: 10.88.255.255
net.interface.cni-podman0.ipv4_netmask: 16
net.interface.cni-podman0.ipv4_netmask_list: 16
net.interface.cni-podman0.ipv6_address.link: fe80::c0ee:e1ff:fe02:2105
net.interface.cni-podman0.ipv6_address.link_list: fe80::c0ee:e1ff:fe02:2105
net.interface.cni-podman0.ipv6_netmask.link: 64
net.interface.cni-podman0.ipv6_netmask.link_list: 64
net.interface.cni-podman0.mac_address: c2:ee:e1:02:21:05
net.interface.env2.ipv4_address: 10.16.46.86
net.interface.env2.ipv4_address_list: 10.16.46.86
net.interface.env2.ipv4_broadcast: 10.16.47.255
net.interface.env2.ipv4_broadcast_list: 10.16.47.255
net.interface.env2.ipv4_netmask: 21
net.interface.env2.ipv4_netmask_list: 21
net.interface.env2.ipv6_address.global: 2620:52:0:102f:1cb1:2dff:feb8:3702
net.interface.env2.ipv6_address.global_list: 2620:52:0:102f:1cb1:2dff:feb8:3702
net.interface.env2.ipv6_address.link: fe80::1cb1:2dff:feb8:3702
net.interface.env2.ipv6_address.link_list: fe80::1cb1:2dff:feb8:3702
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: 1e:b1:2d:b8:37: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-15-lp1.lab.eng.bos.redhat.com
network.hostname: ibm-p9z-15-lp1.lab.eng.bos.redhat.com
network.ipv4_address: 10.16.46.86
network.ipv6_address: fe80::1cb1:2dff:feb8:3702, 2620:52:0:102f:1cb1:2dff:feb8:3702, fe80::c0ee:e1ff:fe02:2105
proc_cpuinfo.common.machine: CHRP IBM,9009-42A
proc_cpuinfo.common.mmu: Hash
proc_cpuinfo.common.model: IBM,9009-42A
proc_cpuinfo.common.platform: pSeries
proc_stat.btime: 1628115214
system.certificate_version: 3.2
system.default_locale: en_US.UTF-8
uname.machine: ppc64le
uname.nodename: ibm-p9z-15-lp1.lab.eng.bos.redhat.com
uname.release: 4.18.0-325.el8.ppc64le
uname.sysname: Linux
uname.version: #1 SMP Mon Jul 26 22:28:14 EDT 2021
virt.host_type: ibm_power-lpar_dedicated
virt.is_guest: True


# cat /proc/device-tree/ibm,partition-uuid
2214b48d-122f-42ad-a527-73c4a79ba2df


Actual:
  virt.uuid is missing
Expected: 
  virt.uuid: 2214b48d-122f-42ad-a527-73c4a79ba2df

Comment 2 Pino Toscano 2021-08-17 14:27:44 UTC
I provided some information about it in the RHEL 8 version of this bug, i.e. bug 1989955: see bug 1989955 comment 1.

Comment 3 Rehana 2021-11-09 10:10:55 UTC
Reproducing the failure in :

# rpm -q subscription-manager
subscription-manager-1.28.21-3.el8.ppc64le

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

# cat /proc/device-tree/ibm,partition-uuid
0cba0cc4-6de8-4a41-b9b3-efaa33248dab

# 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: Ootpa
distribution.name: Red Hat Enterprise Linux
distribution.version: 8.6
distribution.version.modifier: Unknown
last_boot: 2021-11-08 15:31:49
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: 32K
lscpu.l1i_cache: 32K
lscpu.l2_cache: 512K
lscpu.l3_cache: 10240K
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
memory.memtotal: 7801664
memory.swaptotal: 4218816
net.interface.env3.ipv4_address: 10.0.2.222
net.interface.env3.ipv4_address_list: 10.0.2.222
net.interface.env3.ipv4_broadcast: 10.0.2.255
net.interface.env3.ipv4_broadcast_list: 10.0.2.255
net.interface.env3.ipv4_netmask: 24
net.interface.env3.ipv4_netmask_list: 24
net.interface.env3.ipv6_address.global: 2620:52:0:2:c854:8aff:fe77:4f03
net.interface.env3.ipv6_address.global_list: 2620:52:0:2:c854:8aff:fe77:4f03
net.interface.env3.ipv6_address.link: fe80::c854:8aff:fe77:4f03
net.interface.env3.ipv6_address.link_list: fe80::c854:8aff:fe77:4f03
net.interface.env3.ipv6_netmask.global: 64
net.interface.env3.ipv6_netmask.global_list: 64
net.interface.env3.ipv6_netmask.link: 64
net.interface.env3.ipv6_netmask.link_list: 64
net.interface.env3.mac_address: ca:54:8a:77:4f: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: ibm-p9z-23-lp12.virt.pnr.lab.eng.rdu2.redhat.com
network.hostname: ibm-p9z-23-lp12.virt.pnr.lab.eng.rdu2.redhat.com
network.ipv4_address: 10.0.2.222
network.ipv6_address: fe80::c854:8aff:fe77:4f03, 2620:52:0:2:c854:8aff:fe77:4f03
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: 1636385509
system.certificate_version: 3.2
system.default_locale: en_US.UTF-8
uname.machine: ppc64le
uname.nodename: ibm-p9z-23-lp12.virt.pnr.lab.eng.rdu2.redhat.com
uname.release: 4.18.0-348.4.el8.kpq0.ppc64le
uname.sysname: Linux
uname.version: #1 SMP Wed Oct 27 15:01:09 EDT 2021
virt.host_type: ibm_power-lpar_dedicated
virt.is_guest: True

# grep WARNING /var/log/rhsm/rhsm.log
2021-11-08 10:30:50,468 [WARNING] dnf:32427:MainThread @logutil.py:170 - logging already initialized
2021-11-08 10:32:22,859 [WARNING] dnf:5181:MainThread @logutil.py:170 - logging already initialized
2021-11-08 10:32:30,967 [WARNING] dnf:5449:MainThread @logutil.py:170 - logging already initialized
2021-11-08 10:33:55,718 [WARNING] dnf:5461:MainThread @logutil.py:170 - logging already initialized
2021-11-09 04:25:11,045 [WARNING] subscription-manager:43798: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-09 04:25:41,856 [WARNING] subscription-manager:43920: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 the fix 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.28.22-1.git.22.9f66a72.el8

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

# cat /proc/device-tree/ibm,partition-uuid
0cba0cc4-6de8-4a41-b9b3-efaa33248dab[root@ibm-p9z-23-lp12 ~]# 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: Ootpa
distribution.name: Red Hat Enterprise Linux
distribution.version: 8.6
distribution.version.modifier: Unknown
last_boot: 2021-11-08 15:31:49
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: 32K
lscpu.l1i_cache: 32K
lscpu.l2_cache: 512K
lscpu.l3_cache: 10240K
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
memory.memtotal: 7801664
memory.swaptotal: 4218816
net.interface.env3.ipv4_address: 10.0.2.222
net.interface.env3.ipv4_address_list: 10.0.2.222
net.interface.env3.ipv4_broadcast: 10.0.2.255
net.interface.env3.ipv4_broadcast_list: 10.0.2.255
net.interface.env3.ipv4_netmask: 24
net.interface.env3.ipv4_netmask_list: 24
net.interface.env3.ipv6_address.global: 2620:52:0:2:c854:8aff:fe77:4f03
net.interface.env3.ipv6_address.global_list: 2620:52:0:2:c854:8aff:fe77:4f03
net.interface.env3.ipv6_address.link: fe80::c854:8aff:fe77:4f03
net.interface.env3.ipv6_address.link_list: fe80::c854:8aff:fe77:4f03
net.interface.env3.ipv6_netmask.global: 64
net.interface.env3.ipv6_netmask.global_list: 64
net.interface.env3.ipv6_netmask.link: 64
net.interface.env3.ipv6_netmask.link_list: 64
net.interface.env3.mac_address: ca:54:8a:77:4f: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: ibm-p9z-23-lp12.virt.pnr.lab.eng.rdu2.redhat.com
network.hostname: ibm-p9z-23-lp12.virt.pnr.lab.eng.rdu2.redhat.com
network.ipv4_address: 10.0.2.222
network.ipv6_address: 2620:52:0:2:c854:8aff:fe77:4f03, fe80::c854:8aff:fe77:4f03
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: 1636385509
system.certificate_version: 3.2
system.default_locale: en_US.UTF-8
uname.machine: ppc64le
uname.nodename: ibm-p9z-23-lp12.virt.pnr.lab.eng.rdu2.redhat.com
uname.release: 4.18.0-348.4.el8.kpq0.ppc64le
uname.sysname: Linux
uname.version: #1 SMP Wed Oct 27 15:01:09 EDT 2021
virt.host_type: ibm_power-lpar_dedicated
virt.is_guest: True
virt.uuid: 0cba0cc4-6de8-4a41-b9b3-efaa33248dab

^ Virt.uuid is now reported in the facts 

# grep WARNING /var/log/rhsm/rhsm.log
2021-11-08 10:30:50,468 [WARNING] dnf:32427:MainThread @logutil.py:170 - logging already initialized
2021-11-08 10:32:22,859 [WARNING] dnf:5181:MainThread @logutil.py:170 - logging already initialized
2021-11-08 10:32:30,967 [WARNING] dnf:5449:MainThread @logutil.py:170 - logging already initialized
2021-11-08 10:33:55,718 [WARNING] dnf:5461:MainThread @logutil.py:170 - logging already initialized
2021-11-09 04:25:11,045 [WARNING] subscription-manager:43798: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-09 04:25:41,856 [WARNING] subscription-manager:43920: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-09 04:31:19,836 [WARNING] yum:44116:MainThread @logutil.py:170 - logging already initialized
2021-11-09 04:44:31,931 [WARNING] yum:44788:MainThread @logutil.py:170 - logging already initialized


No new warning messages were displayed.

Comment 7 Archana Pandey 2021-11-29 12:17:10 UTC
Verifying issue on subscription-manager-1.28.24-1.el8.ppc64le
 
Beaker test information:                                            
                            JOBID=6041710                              
                        SUBMITTER=arpandey                          
                         RECIPEID=11052636                           
                           DISTRO=RHEL-8.6.0-20211128.3                             
                           DISTRO=RHEL-8.6.0-20211128.3                             
                                                                      
  Job whiteboard: Reserve Workflow provision of distro None on a specific system for 86400 seconds                              
                                                                      
  Recipe whiteboard:                         
**  **  **  **  **  **  **  **  **  **  **  **  **  **  **  **  **  **
[root@ibm-p9z-27-lp10 ~]# 
[root@ibm-p9z-27-lp10 ~]# 
[root@ibm-p9z-27-lp10 ~]# 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.28.24-1.el8
[root@ibm-p9z-27-lp10 ~]# 
[root@ibm-p9z-27-lp10 ~]# rpm -qa subscription-manager
subscription-manager-1.28.24-1.el8.ppc64le
[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 ~]# 
[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: Ootpa
distribution.name: Red Hat Enterprise Linux
distribution.version: 8.6
distribution.version.modifier: Unknown
last_boot: 2021-11-29 12:09:39
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: 32K
lscpu.l1i_cache: 32K
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
memory.memtotal: 7801536
memory.swaptotal: 4218816
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: 1638187779
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: 4.18.0-353.el8.ppc64le
uname.sysname: Linux
uname.version: #1 SMP Thu Nov 25 15:12:10 EST 2021
virt.host_type: ibm_power-lpar_shared
virt.is_guest: True
virt.uuid: 3ddfd672-24da-4fbb-9aa2-38f985edc234                <<<<<<<<<<<< UUID reported successfully
[root@ibm-p9z-27-lp10 ~]# grep WARNING /var/log/rhsm/rhsm.log
2021-11-29 07:08:24,168 [WARNING] dnf:32243:MainThread @logutil.py:170 - logging already initialized
2021-11-29 07:10:21,134 [WARNING] dnf:4570:MainThread @logutil.py:170 - logging already initialized
2021-11-29 07:10:37,708 [WARNING] dnf:5453:MainThread @logutil.py:170 - logging already initialized
2021-11-29 07:12:25,718 [WARNING] dnf:5464:MainThread @logutil.py:170 - logging already initialized
[root@ibm-p9z-27-lp10 ~]# ^C
[root@ibm-p9z-27-lp10 ~]#    ^^^^^^^........................no WARNINGS reported

Verification : PASSED

Comment 8 Archana Pandey 2021-11-30 10:13:28 UTC
updating comment 7 to add check for changelog

[root@ibm-p9z-27-lp10 ~]# rpm -qa --changelog subscription-manager | grep 1990660
[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 ~]#

Comment 10 errata-xmlrpc 2022-05-10 15:22:56 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 (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-2022:2047