Bug 2103911

Summary: [RHEL8.6/RHSM/Bug] Warnings for DMIdecode on Azure
Product: Red Hat Enterprise Linux 8 Reporter: Abhijeet Joshi <abjoshi>
Component: python-dmidecodeAssignee: Lichen Liu <lichliu>
Status: CLOSED ERRATA QA Contact: Yuxin Sun <yuxisun>
Severity: high Docs Contact:
Priority: high    
Version: 8.6CC: emeroglu, jbastian, lichliu, litian, ltao, peter.vreman, ruyang, rvr, xuli, xxiong, yacao, yuxisun
Target Milestone: rcKeywords: Triaged
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: python-dmidecode-3.12.3-2.el8 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-05-16 09:12: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:

Description Abhijeet Joshi 2022-07-05 09:17:58 UTC
Description of problem:
------------------------

* The RHSM is full with Warnings on DMI decode on Azure VMs. 

~~~
- root@test:~# grep 'WARN.*DMI' /var/log/rhsm/rhsm.log -c
166
- root@test:~# grep 'WARN.*DMI' /var/log/rhsm/rhsm.log | tail -n10
2022-06-28 14:20:54,922 [WARNING] rhsmcertd-worker:337740:MainThread @dmiinfo.py:130 - Error reading system DMI information: # SMBIOS implementations newer than version 2.7 are not
2022-06-28 14:20:55,455 [WARNING] rhsmcertd-worker:337740:MainThread @dmiinfo.py:130 - Error reading system DMI information: # SMBIOS implementations newer than version 2.7 are not
2022-06-28 14:20:56,539 [WARNING] rhsmcertd-worker:337740:MainThread @dmiinfo.py:130 - Error reading system DMI information: # SMBIOS implementations newer than version 2.7 are not
2022-06-28 15:06:32,360 [WARNING] subscription-manager:352957:MainThread @dmiinfo.py:130 - Error reading system DMI information: # SMBIOS implementations newer than version 2.7 are not
2022-06-28 15:06:39,955 [WARNING] subscription-manager:352957:MainThread @dmiinfo.py:130 - Error reading system DMI information: # SMBIOS implementations newer than version 2.7 are not
2022-06-28 15:06:51,749 [WARNING] subscription-manager:353160:MainThread @dmiinfo.py:130 - Error reading system DMI information: # SMBIOS implementations newer than version 2.7 are not
2022-06-28 15:06:52,760 [WARNING] subscription-manager:353160:MainThread @dmiinfo.py:130 - Error reading system DMI information: # SMBIOS implementations newer than version 2.7 are not
2022-06-28 15:10:50,229 [WARNING] subscription-manager:354529:MainThread @dmiinfo.py:130 - Error reading system DMI information: # SMBIOS implementations newer than version 2.7 are not
2022-06-28 15:10:50,794 [WARNING] subscription-manager:354529:MainThread @dmiinfo.py:130 - Error reading system DMI information: # SMBIOS implementations newer than version 2.7 are not
2022-06-28 15:10:53,943 [WARNING] subscription-manager:354529:MainThread @dmiinfo.py:130 - Error reading system DMI information: # SMBIOS implementations newer than version 2.7 are not
~~~

The dmidecode tool itself works and shows version 3.3:

~~~
- root@test:~# sudo dmidecode | head
# dmidecode 3.3
Getting SMBIOS data from sysfs.
SMBIOS 3.1.0 present.
Table at 0x3FFD5000.

Handle 0x0000, DMI type 0, 26 bytes
BIOS Information
        Vendor: Microsoft Corporation
        Version: Hyper-V UEFI Release v4.1
        Release Date: 10/27/2020
~~~

The warning mentions that DMI version 3.3 is too high. With Azure being a prominent player in the Cloud the customer expects that it is handled gracefully without Warnings. The issue occurs on all Azure VMs running RHEL 8.x. On Azure VMs with RHEL7.9 the warning is not visible. The WARNING and location in the source dmiinfo.py:130 the same on RHEL8.4 and RHEL8.6.
~~~
2022-06-29 14:02:28,534 [WARNING] subscription-manager:17652:MainThread @dmiinfo.py:130 - Error reading system DMI information: # SMBIOS implementations newer than version 2.7 are not
~~~

The vMWare or AWS VMs are not having this issue. The problem is visible at Azure that is using a SMBIOS 3.1.0. The problem is that python3-dmidecode ships its own dmidecode shared libary /usr/lib64/python3.6/site-packages/dmidecodemod.cpython-36m-x86_64-linux-gnu.so that is not up-to-date with the latest dmidecode source code shipped also in  dmidecode-3.3-4.el8.x86_64


Version-Release number of selected component (if applicable):
-----------------------------------------------
* dmidecode-3.3-4.el8.x86_64


How reproducible:
-----------------
* Always reproducible

Actual results:
----------------
* The RHSM logs are full with the warnings on DMI decode on Azure VMs running RHEL 8.x


Expected results:
----------------
* No such logs should be logged. 

Additional info:

Comment 23 errata-xmlrpc 2023-05-16 09:12: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 (python-dmidecode 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-2023:3064

Comment 24 Red Hat Bugzilla 2023-09-18 04:41:10 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 120 days