Bug 1889637

Summary: dmidecode is returning Not Settable
Product: Red Hat Enterprise Linux 7 Reporter: Kenny Tordeurs <ktordeur>
Component: dmidecodeAssignee: Coiby <coxu>
Status: CLOSED WONTFIX QA Contact: Jiri Dluhos <jdluhos>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 7.8CC: pmoravec, ruyang, rvr, sgajendr, shivagup
Target Milestone: rc   
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-03-11 05:45:37 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 Kenny Tordeurs 2020-10-20 09:04:09 UTC
Description of problem:

dmidecode is not "Not Settable" for hosts causing subscription-manager to malfunction. (all physical hosts are considered identical overwriting each others profiles)

# dmidecode | grep -i uuid
~~~
        UUID: Not Settable
~~~

# dmidecode -u | awk '
BEGIN { in1 = 0; hd = 0 }
/, DMI type / { in1 = 0 }
/Strings:/ { hd = 0 }
{ if (hd == 2) { printf "%s-%s\n", $1 $2, $3 $4 $5 $6 $7 $8; hd = 0 } }
{ if (hd == 1) { printf "UUID: %s-%s-%s-", $9 $10 $11 $12, $13 $14, $15 $16; hd = 2 } }
/, DMI type 1,/ { in1 = 1 }
/Header and Data:/ { if (in1 != 0) { hd = 1 } }'
~~~
UUID: 00000000-0000-0000-0000-000000000000
~~~


Version-Release number of selected component (if applicable):
# grep dmidecode installed-rpms 
~~~
dmidecode-3.2-3.el7.x86_64                                  Wed May 13 08:48:34 2020
python-dmidecode-3.12.2-4.el7.x86_64                        Wed May 13 08:48:50 2020
~~~

How reproducible:
Uncertain as the issue happens with following hardware:

Vendor: American Megatrends Inc.
Manufacturer: Supermicro
Product Name: SYS-2028TP-HTR

Steps to Reproduce:
1.
2.
3.

Actual results:
# dmidecode | grep -i uuid
~~~
        UUID: Not Settable
~~~

Expected results:
UUID to be set

Additional info:
Workaround is to manually set a uuid fact for subscription-manager.

# echo '{"dmi.system.uuid": "a2d759f2-7c4b-4142-bca9-3e1770cce354"}' > /etc/rhsm/facts/dmi.system.uuid.facts
Confirm it is set with:
# subscription-manager facts | grep -i uuid

Comment 4 Coiby 2021-12-29 07:27:40 UTC
Hi Kenny,

As you may know, RHEL 7 is currently in Maintenance Support 2 Phase, can I close this bug if it's not a critical bug?

Comment 5 Kenny Tordeurs 2021-12-29 08:13:31 UTC
(In reply to Coiby from comment #4)
> Hi Kenny,
> 
> As you may know, RHEL 7 is currently in Maintenance Support 2 Phase, can I
> close this bug if it's not a critical bug?

Depending on your definition on critical, this issue prevents the system from being registered and thus unable to attach a subscription or enable any repository and consume any content.
There is a workaround however.

Comment 6 Coiby 2021-12-29 08:30:10 UTC
(In reply to Kenny Tordeurs from comment #5)
> (In reply to Coiby from comment #4)
> > Hi Kenny,
> > 
> > As you may know, RHEL 7 is currently in Maintenance Support 2 Phase, can I
> > close this bug if it's not a critical bug?
> 
> Depending on your definition on critical, this issue prevents the system
> from being registered and thus unable to attach a subscription or enable any
> repository and consume any content.
> There is a workaround however.

If the workaround is troublesome and you want the bug to be fixed, could you dump the DMI data to a binary file and upload the file here?
$ dmidecode --dump-bin dump_bin

Comment 7 Kenny Tordeurs 2021-12-29 08:50:55 UTC
Asking for that data from the customer.

Comment 8 Kenny Tordeurs 2022-01-12 14:57:24 UTC
// The case/customer I opened this for is no longer experiencing this issue.