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 2111873

Summary: subscription-manager unable to get dmi.system.uuid on systems with secure boot
Product: Red Hat Enterprise Linux 9 Reporter: Andrin Brunner <andrin>
Component: subscription-managerAssignee: candlepin-bugs
Status: CLOSED DUPLICATE QA Contact: Red Hat subscription-manager QE Team <rhsm-qe>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 9.0CC: ptoscano
Target Milestone: rcFlags: pm-rhel: mirror+
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-07-28 11:40:23 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:

Description Andrin Brunner 2022-07-28 11:26:10 UTC
Description of problem:
Due to automatic enabling of kernel_lockdown on systems with secure boot, subscription-manager is not able to get the DMI BIOS UUID. 
This causes issues with Virtual Datacenter licenses due to Red Hat Satellite not being able to associate the correct hypervisor for the vm. 



Version-Release number of selected component (if applicable):
subscription management server: 4.1.13-${release}
subscription management rules: 5.43
subscription-manager: 1.29.26-3.el9_0
Kernel: 5.14.0-70.17.1.el9_0.x86_64


Steps to Reproduce:
1. Install RHEL9 in a Virtual Machine
2. Enable secure boot
3. Check UUID with "dmidecode | grep -i uuid" (should return UUID)
4. Check UUID with "subscription-manager facts|grep dmi.system.uuid" (returns nothing)

Actual results:
"subscription-manager facts|grep dmi.system.uuid" returns nothing.

Expected results:
Should return UUID.


Additional info:
Dmesg log: 
Lockdown: subscription-ma: /dev/mem,kmem,port is restricted; see man kernel_lockdown.7

RHSM log:
[WARNING] subscription-manager:19523:MainThread @dmiinfo.py:95 - Error reading system DMI information with bios: [src/dmidecodemodule.c:331] Error decoding DMI data

Comment 1 Pino Toscano 2022-07-28 11:40:23 UTC
Hello Andrin,

thanks for reporting this issue to us.

It was already reported as bug 2094099, which is already fixed upstream and will find its way soon in RHEL.

Thus I'm marking this bug as duplicated of the aforementioned bug 2094099, feel free to followup there for more questions/details.

Thanks!

*** This bug has been marked as a duplicate of bug 2094099 ***