Bug 1458159

Summary: Error reading system DMI information: list assignment index out of range
Product: Red Hat Enterprise Linux 7 Reporter: Wei Liu <weiliu>
Component: subscription-managerAssignee: candlepin-bugs
Status: CLOSED ERRATA QA Contact: John Sefler <jsefler>
Severity: low Docs Contact:
Priority: low    
Version: 7.4CC: afox, asakpal, awood, csnyder, gkonda, jhnidek, khowell, qianzhan, redakkan, skallesh, tdaianov, vanhoof, weiliu
Target Milestone: rcKeywords: Reopened, Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-10-30 10:36:03 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:    
Bug Blocks: 1544891, 1546815    
Attachments:
Description Flags
the rhsm log
none
the rhsmcertd log none

Description Wei Liu 2017-06-02 07:48:39 UTC
Description of problem:
Error message append to rhsm.log when register a system with no installed products and restart the rhsmcertd service.

Version-Release number of selected component (if applicable):
python-rhsm-1.19.8-1.el7.x86_64
subscription-manager-1.19.17-1.el7.x86_64
subscription-manager-gui-1.19.17-1.el7.x86_64
python-rhsm-certificates-1.19.8-1.el7.x86_64
subscription-manager-initial-setup-addon-1.19.17-1.el7.x86_64

How reproducible:
always

Steps to Reproduce:
1.Install build RHEL-7.4-20170601.0
2.remove the system's product cert.
#mv /etc/pki/product-default/*.pem /root/tmp
3.register the system
#subscription-manager register
4.restart the rhsmcertd
#serverice rhsmcertd restart
5.check rhsm.log in /var/log/rhsm/
[root@dhcp-129-210 rhsm]# cat rhsm.log | grep Error
[root@hostname-temp rhsm]# cat rhsm.log | grep -i error
2017-06-02 03:37:22,537 [WARNING] subscription-manager:68646:MainThread @dmiinfo.py:90 - Error reading system DMI information: list assignment index out of range

Actual results:
As step 5.

Expected results:
No error message

Additional info:
rhsm.log and rhsmcertd.log refer to the attachment

Comment 2 Wei Liu 2017-06-02 07:49:18 UTC
Created attachment 1284341 [details]
the rhsm log

Comment 3 Wei Liu 2017-06-02 07:49:56 UTC
Created attachment 1284342 [details]
the rhsmcertd log

Comment 4 John Sefler 2017-06-02 13:43:37 UTC
I am not able to reproduce this error.  Moreover, an Error reading system DMI information sounds like an issue getting the system facts and I can't think of a reason why that would be related to the absence of a product cert.

On that same machine, can you restore the product cert and try to reproduce the DMI error?  If yes, run "rhsm-debug system" and attach the zip file created so that the dev team can troubleshoot.

Comment 5 Wei Liu 2017-06-05 05:36:47 UTC
For the machine had been returned to beaker,so I tried again one new installed machine and the RHEL build is RHEL-7.4-20170601.0,but failed to reproduce this issue too.The rhsm.log is correct now and no error message.So close it,will reopen it if find this issue later.

Comment 12 Alex Wood 2018-04-09 17:53:39 UTC
The underlying issue is a regression in python-dmidecode, so I've updated the subscription-manager spec file to require a version equal to or greater than the python-dmidecode version with the fix.

Comment 16 Rehana 2018-06-13 09:03:01 UTC
Note : Please click on "Unwrap comment" for best reading experience. 

Reproducing the failure on: 
============================

python-dmidecode-3.12.2-1.el7.x86_64
subscription-manager-1.19.21-1.el7.x86_64


Execute subscription-manager facts --list 

[root@hpe-dl160gen10-01 ~]# subscription-manager facts --list | grep dmi*
dmi.slot.current_usage: Available
dmi.slot.designation: PCI-E Slot 1
dmi.slot.slotlength: Long
dmi.slot.type:slotbuswidth: x16
dmi.slot.type:slottype: PCI Express 3

observed that only few dmi facts were collected on the system

Observed Error in the rhsm.log 
=================================

2018-06-13 04:43:40,098 [INFO] subscription-manager:30332:MainThread @managercli.py:407 - Client Versions: {'python-rhsm': '1.19.9-1.el7', 'subscription-manager': '1.19.21-1.el7'}
2018-06-13 04:43:40,099 [INFO] subscription-manager:30332:MainThread @connection.py:822 - Connection built: host=subscription.rhsm.stage.redhat.com port=443 handler=/subscription auth=identity_cert ca_dir=/etc/rhsm/ca/ insecure=False
2018-06-13 04:43:40,099 [INFO] subscription-manager:30332:MainThread @connection.py:822 - Connection built: host=subscription.rhsm.stage.redhat.com port=443 handler=/subscription auth=none
2018-06-13 04:43:40,124 [INFO] subscription-manager:30332:MainThread @dmiinfo.py:73 - Using dmidecode dump file: /dev/mem
2018-06-13 04:43:40,141 [WARNING] subscription-manager:30332:MainThread @dmiinfo.py:88 - Error reading system DMI information: list assignment index out of range

Verifying on : 
=============
Update system to latest subscription-manager build for RHEL76.

1)Update subscription-manager 

[root@hpe-dl160gen10-01 ~]# yum update subscription-manager*
Loaded plugins: product-id, search-disabled-repos, subscription-manager
This system is not registered with an entitlement server. You can use subscription-manager to register.
Resolving Dependencies
--> Running transaction check
---> Package python-rhsm.x86_64 0:1.19.9-1.el7 will be obsoleted
---> Package python-rhsm-certificates.x86_64 0:1.19.9-1.el7 will be obsoleted
---> Package subscription-manager.x86_64 0:1.19.21-1.el7 will be updated
---> Package subscription-manager.x86_64 0:1.21.5-2.el7 will be an update
--> Processing Dependency: python-dmidecode >= 3.12.2-2 for package: subscription-manager-1.21.5-2.el7.x86_64
--> Processing Dependency: python-inotify for package: subscription-manager-1.21.5-2.el7.x86_64
--> Processing Dependency: python-kitchen for package: subscription-manager-1.21.5-2.el7.x86_64
--> Processing Dependency: python-six for package: subscription-manager-1.21.5-2.el7.x86_64
---> Package subscription-manager-rhsm.x86_64 0:1.21.5-2.el7 will be obsoleting
---> Package subscription-manager-rhsm-certificates.x86_64 0:1.21.5-2.el7 will be obsoleting
--> Running transaction check
---> Package python-dmidecode.x86_64 0:3.12.2-1.el7 will be updated
---> Package python-dmidecode.x86_64 0:3.12.2-2.el7 will be an update
---> Package python-inotify.noarch 0:0.9.4-4.el7 will be installed
---> Package python-kitchen.noarch 0:1.1.1-5.el7 will be installed
--> Processing Dependency: python-chardet for package: python-kitchen-1.1.1-5.el7.noarch
---> Package python-six.noarch 0:1.9.0-2.el7 will be installed
--> Running transaction check
---> Package python-chardet.noarch 0:2.2.1-1.el7_1 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

===================================================================================================================================================================================================================
 Package                                                                Arch                                   Version                                         Repository                                     Size
===================================================================================================================================================================================================================
Installing:
 subscription-manager-rhsm                                              x86_64                                 1.21.5-2.el7                                    RHEL76-Server                                 289 k
     replacing  python-rhsm.x86_64 1.19.9-1.el7
 subscription-manager-rhsm-certificates                                 x86_64                                 1.21.5-2.el7                                    RHEL76-Server                                 204 k
     replacing  python-rhsm-certificates.x86_64 1.19.9-1.el7
Updating:
 subscription-manager                                                   x86_64                                 1.21.5-2.el7                                    RHEL76-Server                                 1.0 M
Installing for dependencies:
 python-chardet                                                         noarch                                 2.2.1-1.el7_1                                   RHEL76-Server                                 227 k
 python-inotify                                                         noarch                                 0.9.4-4.el7                                     RHEL76-Server                                  49 k
 python-kitchen                                                         noarch                                 1.1.1-5.el7                                     RHEL76-Server                                 266 k
 python-six                                                             noarch                                 1.9.0-2.el7                                     RHEL76-Server                                  29 k
Updating for dependencies:
 python-dmidecode                                                       x86_64                                 3.12.2-2.el7                                    RHEL76-Server                                  83 k

Transaction Summary
===================================================================================================================================================================================================================
Install  2 Packages (+4 Dependent packages)
Upgrade  1 Package  (+1 Dependent package)

<snip>
Observed  that a latest  python-dmidecode 3.12.2-2.el7 was installed as part of dependency update during yum 

2) Now Executed subscription-manager facts --list | grep dmi*

[root@hpe-dl160gen10-01 ~]# subscription-manager facts --list | grep dmi*
dmi.baseboard.manufacturer: HPE
dmi.baseboard.product_name: ProLiant DL160 Gen10
dmi.baseboard.serial_number: PWATE0ALM8605E
dmi.baseboard.version: Not Specified
dmi.bios.address: 0xf0000
dmi.bios.bios_revision: 1.20
dmi.bios.relase_date: 08/18/2017
dmi.bios.rom_size: 16384 KB
dmi.bios.runtime_size: 64 KB
dmi.bios.vendor: HPE
dmi.bios.version: U31
dmi.chassis.asset_tag: Unknown
dmi.chassis.boot-up_state: Safe
dmi.chassis.lock: Not Present
dmi.chassis.manufacturer: HPE
dmi.chassis.power_supply_state: Safe
dmi.chassis.security_status: Unknown
dmi.chassis.serial_number: 6CU7316EBK
dmi.chassis.thermal_state: Safe
dmi.chassis.type: Rack Mount Chassis
dmi.chassis.version: Not Specified
dmi.connector.external_connector_type: DB-9 male
dmi.connector.external_reference_designator: Com PORT
dmi.connector.internal_connector_type: None
dmi.connector.internal_reference_designator: J87
dmi.connector.port_type: Serial Port 16550A Compatible
dmi.memory.array_handle: 0x000f
dmi.memory.assettag: Not Specified
dmi.memory.bank_locator: Not Specified
dmi.memory.data_width: 64 bit
dmi.memory.error_correction_type: Multi-bit ECC
dmi.memory.error_information_handle: No Error
dmi.memory.form_factor: DIMM
dmi.memory.location: System Board Or Motherboard
dmi.memory.locator: PROC 1 DIMM 3
dmi.memory.manufacturer: UNKNOWN
dmi.memory.maximum_capacity: 2048 GB
dmi.memory.part_number: NOT AVAILABLE
dmi.memory.serial_number: Not Specified
dmi.memory.size: 16384 MB
dmi.memory.speed:   (ns)
dmi.memory.total_width: 72 bit
dmi.memory.type: Unknown
dmi.memory.use: System Memory
dmi.meta.cpu_socket_count: 2
dmi.processor.asset_tag: UNKNOWN
dmi.processor.family: Xeon
dmi.processor.l1_cache_handle: 0x004f
dmi.processor.l2_cache_handle: 0x0050
dmi.processor.l3_cache_handle: 0x0051
dmi.processor.part_number: Not Specified
dmi.processor.serial_number: Not Specified
dmi.processor.socket_designation: Proc 1
dmi.processor.status: Populated:Enabled
dmi.processor.type: Central Processor
dmi.processor.upgrade: Unknown
dmi.processor.version: Intel(R) Xeon(R) Silver 4108 CPU @ 1.80GHz
dmi.processor.voltage: 1.6 V
dmi.slot.current_usage: Available
dmi.slot.designation: PCI-E Slot 2
dmi.slot.slotlength: Long
dmi.slot.type:slotbuswidth: x8
dmi.slot.type:slottype: Unknown
dmi.system.family: ProLiant
dmi.system.manufacturer: HPE
dmi.system.product_name: ProLiant DL160 Gen10
dmi.system.serial_number: 6CU7316EBK
dmi.system.sku_number: 878970-AA1
dmi.system.status: No errors detected
dmi.system.uuid: 39383738-3037-4336-5537-33313645424B
dmi.system.version: Not Specified
dmi.system.wake-up_type: Power Switch

3) Observed No error messages in the rhsm.log

2018-06-13 04:55:13,702 [INFO] subscription-manager:30606:MainThread @managercli.py:455 - X-Correlation-ID: 6f399dbe3dd24571999b4418fa9d31d8
2018-06-13 04:55:13,703 [INFO] subscription-manager:30606:MainThread @managercli.py:344 - Client Versions: {'subscription-manager': '1.21.5-2.el7'}
2018-06-13 04:55:13,703 [INFO] subscription-manager:30606:MainThread @connection.py:871 - Connection built: host=subscription.rhsm.stage.redhat.com port=443 handler=/subscription auth=identity_cert ca_dir=/etc/rhsm/ca/ insecure=False
2018-06-13 04:55:13,704 [INFO] subscription-manager:30606:MainThread @connection.py:871 - Connection built: host=subscription.rhsm.stage.redhat.com port=443 handler=/subscription auth=none
2018-06-13 04:55:13,730 [INFO] subscription-manager:30606:MainThread @dmiinfo.py:75 - Using dmidecode dump file: /dev/mem


with the following version :
========================

subscription-manager-rhsm-1.21.5-2.el7.x86_64
subscription-manager-rhsm-certificates-1.21.5-2.el7.x86_64
subscription-manager-1.21.5-2.el7.x86_64
python-dmidecode-3.12.2-2.el7.x86_64

Conclusion:
============
With the latest subscription-manager and python-dmidecode package installed on the system, subscription-manager facts --list now displays all the dmi facts and there was no Error messages in the rhsm.log file .

Based on the above observations, moving the bug to "Verified"

Comment 18 errata-xmlrpc 2018-10-30 10:36:03 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, 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-2018:3153