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 2039322

Summary: facts collection format for "virt.uuid" has changed
Product: Red Hat Enterprise Linux 9 Reporter: John Sefler <jsefler>
Component: subscription-managerAssignee: candlepin-bugs
Status: CLOSED ERRATA QA Contact: Pino Toscano <ptoscano>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 9.0CC: redakkan
Target Milestone: rcKeywords: Regression, Triaged
Target Release: 9.0Flags: pm-rhel: mirror+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: subscription-manager-1.29.23-1.el9 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-05-17 15:58:31 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 John Sefler 2022-01-11 13:43:21 UTC
Description of problem:
The format for the "virt.uuid" fact collection has recently changed with a leading b prefix...

virt.uuid: b'af7e0cd3-ca13-42ad-811f-257908ebf346'



Version-Release number of selected component (if applicable):
[root@kvm-05-guest01 ~]# rpm -q subscription-manager
subscription-manager-1.29.21-1.git.85.c8764a8.el9.x86_64


How reproducible:


Steps to Reproduce:
[root@kvm-05-guest01 ~]# subscription-manager facts --list | egrep "^virt"
virt.host_type: kvm
virt.is_guest: True
virt.uuid: b'af7e0cd3-ca13-42ad-811f-257908ebf346'


Actual results:
virt.uuid: b'af7e0cd3-ca13-42ad-811f-257908ebf346'

Expected results:
virt.uuid: af7e0cd3-ca13-42ad-811f-257908ebf346

Additional info:

Comment 2 John Sefler 2022-01-17 15:48:16 UTC
Pre-verifiying build...

[root@kvm-05-guest01 ~]# rpm -q subscription-manager
subscription-manager-1.29.21-1.git.103.3f35f12.el9.x86_64

[root@kvm-05-guest01 ~]# dmidecode -s system-uuid
af7e0cd3-ca13-42ad-811f-257908ebf346

[root@kvm-05-guest01 ~]# subscription-manager facts --list | egrep "^virt"
virt.host_type: kvm
virt.is_guest: True
virt.uuid: af7e0cd3-ca13-42ad-811f-257908ebf346

PRE-VERIFIED: fact virt.uuid matches the system-uuid reported by dmidecode (no more b prefix)

Comment 6 Rehana 2022-01-31 10:22:34 UTC
Verifying on :
============
# rpm -qa subscription-manager --changelog | grep 2039322
- 2039322: fix string representation of DMI facts (ptoscano)
- 2039322: fix string representation of DMI facts (ptoscano)

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

# dmidecode -s system-uuid
42039b52-5205-0b88-582c-94d66708d6a4

# subscription-manager facts --list | egrep "^virt"
virt.host_type: kvm
virt.is_guest: True
virt.uuid: 42039b52-5205-0b88-582c-94d66708d6a4

Based on the observation , Verifying the bug.

Comment 8 errata-xmlrpc 2022-05-17 15:58:31 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