Bug 706552 - Wrong DMI structures length: 3263 bytes announced, structures occupy 3265 bytes.
Summary: Wrong DMI structures length: 3263 bytes announced, structures occupy 3265 bytes.
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: subscription-manager
Version: 5.8
Hardware: ia64
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Chris Duryee
QA Contact: John Sefler
URL:
Whiteboard:
Depends On: 562736
Blocks: 675214
TreeView+ depends on / blocked
 
Reported: 2011-05-20 22:16 UTC by John Sefler
Modified: 2011-07-21 12:30 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-07-21 08:46:00 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2011:1078 0 normal SHIPPED_LIVE new package: subscription-manager 2011-07-21 08:45:07 UTC

Description John Sefler 2011-05-20 22:16:28 UTC
Description of problem:
From the log of an automated test run on a beaker provisioned ia64 machine, many of the subscription-manager commands are throwing the following to stderr:


** COLLECTED WARNINGS **
Wrong DMI structures length: 3263 bytes announced, structures occupy 3265 bytes.
** END OF WARNINGS **



Version-Release number of selected component (if applicable):
201105200136:10.651 - INFO: Client1 'hp-bl870c-02.rhts.eng.bos.redhat.com' is running version: subscription-manager-0.95.5.18-1.el5


How reproducible:
This stderr message is thrown on many commands like register, unregister, etc...


Steps to Reproduce:
201105200224:14.290 - FINE: ssh root.eng.bos.redhat.com subscription-manager facts --list (com.redhat.qe.tools.SSHCommandRunner.run)
201105200224:14.950 - FINE: Stdout: 
cpu.core(s)_per_socket: 2
cpu.cpu(s): 8
cpu.cpu_socket(s): 4
distribution.id: Tikanga
distribution.name: Red Hat Enterprise Linux Server
distribution.version: 5.7
dmi.bios.relase_date: 10/25/2007
dmi.bios.rom_size: 8192 KB
dmi.bios.runtime_size:  
dmi.bios.vendor: HP
dmi.bios.version: 03.11
dmi.memory.array_handle: 0x0012
dmi.memory.assettag: Not Specified
dmi.memory.bank_locator: Rank 2
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: DIMM 2A
dmi.memory.manufacturer: HP
dmi.memory.maximum_capacity: 2048 GB
dmi.memory.part_number: Not Specified
dmi.memory.serial_number: 745aed5
dmi.memory.size: 2048 MB
dmi.memory.speed:   (ns)
dmi.memory.total_width: 72 bit
dmi.memory.type: DDR
dmi.memory.use: System Memory
dmi.processor.asset_tag: not defined
dmi.processor.family: Itanium
dmi.processor.part_number: 80567KE
dmi.processor.serial_number: 0000979E712D986F
dmi.processor.socket_designation: cpu socket 2
dmi.processor.status: Populated:Enabled
dmi.processor.type: Central Processor
dmi.processor.upgrade: ZIF Socket
dmi.processor.version: A1
dmi.processor.voltage:  
dmi.system.manufacturer: hp
dmi.system.product_name: server BL870c
dmi.system.serial_number: USE80890AN
dmi.system.uuid: 964a3447-47fd-dc11-8afe-a67655a2bb12
dmi.system.version: Not Specified
dmi.system.wake-up_type: Unknown
memory.memtotal: 41671088
memory.swaptotal: 43712480
net.interface.eth0.broadcast: 10.16.71.255
net.interface.eth0.hwaddr: 00:1b:78:7c:32:a0
net.interface.eth0.ipaddr: 10.16.65.222
net.interface.eth0.netmask: 255.255.248.0
net.interface.eth1.broadcast: unknown
net.interface.eth1.hwaddr: 00:1b:78:7c:32:a1
net.interface.eth1.ipaddr: unknown
net.interface.eth1.netmask: unknown
net.interface.eth2.broadcast: unknown
net.interface.eth2.hwaddr: 00:1b:78:7c:32:a2
net.interface.eth2.ipaddr: unknown
net.interface.eth2.netmask: unknown
net.interface.eth3.broadcast: unknown
net.interface.eth3.hwaddr: 00:1b:78:7c:32:a3
net.interface.eth3.ipaddr: unknown
net.interface.eth3.netmask: unknown
net.interface.lo.broadcast: 0.0.0.0
net.interface.lo.hwaddr: 00:00:00:00:00:00
net.interface.lo.ipaddr: 127.0.0.1
net.interface.lo.netmask: 255.0.0.0
net.interface.sit0.broadcast: unknown
net.interface.sit0.hwaddr: 00:00:00:00:00:00
net.interface.sit0.ipaddr: unknown
net.interface.sit0.netmask: unknown
network.hostname: hp-bl870c-02.rhts.eng.bos.redhat.com
network.ipaddr: 10.16.65.222
system.entitlements_valid: False
uname.machine: ia64
uname.nodename: hp-bl870c-02.rhts.eng.bos.redhat.com
uname.release: 2.6.18-262.el5
uname.sysname: Linux
uname.version: #1 SMP Mon May 16 17:49:19 EDT 2011
virt.host_type: 
virt.is_guest: False
 (com.redhat.qe.tools.SSHCommandRunner.runCommandAndWait)
201105200224:14.953 - FINE: Stderr: 

** COLLECTED WARNINGS **
Wrong DMI structures length: 3263 bytes announced, structures occupy 3265 bytes.
** END OF WARNINGS **




Additional info:
http://hudson.rhq.lab.eng.bos.redhat.com:8080/hudson/view/Entitlement/job/rhsm-beaker-on-premises-RHEL5/180/consoleText

Comment 1 Alexander Todorov 2011-05-25 08:26:21 UTC

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

Comment 3 Chris Duryee 2011-05-26 15:30:59 UTC
We are going to address this in 5.7 rc snap 2, since it prints on every command-line operation that collects facts.

Comment 4 Chris Duryee 2011-05-26 19:29:00 UTC
Fixed on RHEL5.7 branch in e01a44f29634b82209eaeaaf2f9117a543ba4df5, version 0.95.5.20

Comment 5 Chris Duryee 2011-05-26 19:29:37 UTC
Fixed on master branch in 88428208f54c2f376c7e1b1ed217544098c622f4, version 0.96.2

Comment 6 John Sefler 2011-05-27 16:49:17 UTC
As suggested in comment 2, let's run /usr/sbin/dmidecode and verify that the warning stems from the BIOS...

[root@hp-bl870c-02 ~]# /usr/sbin/dmidecode | grep "Wrong DMI"
Wrong DMI structures length: 3263 bytes announced, structures occupy 3265 bytes.
[root@hp-bl870c-02 ~]# 

^^^ Yes, the warning does stem from the BIOS.


Recreate of bug with subscription-manager-0.95.5.18-1.el5...

[root@hp-bl870c-02 ~]# rpm -q subscription-manager
subscription-manager-0.95.5.18-1.el5

[root@hp-bl870c-02 ~]# subscription-manager facts --list
cpu.core(s)_per_socket: 2
cpu.cpu(s): 8
cpu.cpu_socket(s): 4
distribution.id: Tikanga
distribution.name: Red Hat Enterprise Linux Server
distribution.version: 5.7
dmi.bios.relase_date: 10/25/2007
dmi.bios.rom_size: 8192 KB
dmi.bios.runtime_size:  
dmi.bios.vendor: HP
dmi.bios.version: 03.11
dmi.memory.array_handle: 0x0012
dmi.memory.assettag: Not Specified
dmi.memory.bank_locator: Rank 2
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: DIMM 2A
dmi.memory.manufacturer: HP
dmi.memory.maximum_capacity: 2048 GB
dmi.memory.part_number: Not Specified
dmi.memory.serial_number: 745aed5
dmi.memory.size: 2048 MB
dmi.memory.speed:   (ns)
dmi.memory.total_width: 72 bit
dmi.memory.type: DDR
dmi.memory.use: System Memory
dmi.processor.asset_tag: not defined
dmi.processor.family: Itanium
dmi.processor.part_number: 80567KE
dmi.processor.serial_number: 0000979E712D986F
dmi.processor.socket_designation: cpu socket 2
dmi.processor.status: Populated:Enabled
dmi.processor.type: Central Processor
dmi.processor.upgrade: ZIF Socket
dmi.processor.version: A1
dmi.processor.voltage:  
dmi.system.manufacturer: hp
dmi.system.product_name: server BL870c
dmi.system.serial_number: USE80890AN
dmi.system.uuid: 964a3447-47fd-dc11-8afe-a67655a2bb12
dmi.system.version: Not Specified
dmi.system.wake-up_type: Unknown
memory.memtotal: 41671088
memory.swaptotal: 43712480
net.interface.eth0.broadcast: 10.16.71.255
net.interface.eth0.hwaddr: 00:1b:78:7c:32:a0
net.interface.eth0.ipaddr: 10.16.65.222
net.interface.eth0.netmask: 255.255.248.0
net.interface.eth1.broadcast: unknown
net.interface.eth1.hwaddr: 00:1b:78:7c:32:a1
net.interface.eth1.ipaddr: unknown
net.interface.eth1.netmask: unknown
net.interface.eth2.broadcast: unknown
net.interface.eth2.hwaddr: 00:1b:78:7c:32:a2
net.interface.eth2.ipaddr: unknown
net.interface.eth2.netmask: unknown
net.interface.eth3.broadcast: unknown
net.interface.eth3.hwaddr: 00:1b:78:7c:32:a3
net.interface.eth3.ipaddr: unknown
net.interface.eth3.netmask: unknown
net.interface.lo.broadcast: 0.0.0.0
net.interface.lo.hwaddr: 00:00:00:00:00:00
net.interface.lo.ipaddr: 127.0.0.1
net.interface.lo.netmask: 255.0.0.0
net.interface.sit0.broadcast: unknown
net.interface.sit0.hwaddr: 00:00:00:00:00:00
net.interface.sit0.ipaddr: unknown
net.interface.sit0.netmask: unknown
network.hostname: hp-bl870c-02.rhts.eng.bos.redhat.com
network.ipaddr: 10.16.65.222
system.entitlements_valid: False
uname.machine: ia64
uname.nodename: hp-bl870c-02.rhts.eng.bos.redhat.com
uname.release: 2.6.18-262.el5
uname.sysname: Linux
uname.version: #1 SMP Mon May 16 17:49:19 EDT 2011
virt.host_type: 
virt.is_guest: False

** COLLECTED WARNINGS **
Wrong DMI structures length: 3263 bytes announced, structures occupy 3265 bytes.
** END OF WARNINGS **

[root@hp-bl870c-02 ~]# 


Now let's verify the fixed subscription-manager filters these warnings...

[root@hp-bl870c-02 ~]# rpm -q subscription-manager
subscription-manager-0.95.5.19-1.git.3.e01a44f.el5

[root@hp-bl870c-02 ~]# subscription-manager facts --list
cpu.core(s)_per_socket: 2
cpu.cpu(s): 8
cpu.cpu_socket(s): 4
distribution.id: Tikanga
distribution.name: Red Hat Enterprise Linux Server
distribution.version: 5.7
dmi.bios.relase_date: 10/25/2007
dmi.bios.rom_size: 8192 KB
dmi.bios.runtime_size:  
dmi.bios.vendor: HP
dmi.bios.version: 03.11
dmi.memory.array_handle: 0x0012
dmi.memory.assettag: Not Specified
dmi.memory.bank_locator: Rank 2
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: DIMM 2A
dmi.memory.manufacturer: HP
dmi.memory.maximum_capacity: 2048 GB
dmi.memory.part_number: Not Specified
dmi.memory.serial_number: 745aed5
dmi.memory.size: 2048 MB
dmi.memory.speed:   (ns)
dmi.memory.total_width: 72 bit
dmi.memory.type: DDR
dmi.memory.use: System Memory
dmi.processor.asset_tag: not defined
dmi.processor.family: Itanium
dmi.processor.part_number: 80567KE
dmi.processor.serial_number: 0000979E712D986F
dmi.processor.socket_designation: cpu socket 2
dmi.processor.status: Populated:Enabled
dmi.processor.type: Central Processor
dmi.processor.upgrade: ZIF Socket
dmi.processor.version: A1
dmi.processor.voltage:  
dmi.system.manufacturer: hp
dmi.system.product_name: server BL870c
dmi.system.serial_number: USE80890AN
dmi.system.uuid: 964a3447-47fd-dc11-8afe-a67655a2bb12
dmi.system.version: Not Specified
dmi.system.wake-up_type: Unknown
memory.memtotal: 41671088
memory.swaptotal: 43712480
net.interface.eth0.broadcast: 10.16.71.255
net.interface.eth0.hwaddr: 00:1b:78:7c:32:a0
net.interface.eth0.ipaddr: 10.16.65.222
net.interface.eth0.netmask: 255.255.248.0
net.interface.eth1.broadcast: unknown
net.interface.eth1.hwaddr: 00:1b:78:7c:32:a1
net.interface.eth1.ipaddr: unknown
net.interface.eth1.netmask: unknown
net.interface.eth2.broadcast: unknown
net.interface.eth2.hwaddr: 00:1b:78:7c:32:a2
net.interface.eth2.ipaddr: unknown
net.interface.eth2.netmask: unknown
net.interface.eth3.broadcast: unknown
net.interface.eth3.hwaddr: 00:1b:78:7c:32:a3
net.interface.eth3.ipaddr: unknown
net.interface.eth3.netmask: unknown
net.interface.lo.broadcast: 0.0.0.0
net.interface.lo.hwaddr: 00:00:00:00:00:00
net.interface.lo.ipaddr: 127.0.0.1
net.interface.lo.netmask: 255.0.0.0
net.interface.sit0.broadcast: unknown
net.interface.sit0.hwaddr: 00:00:00:00:00:00
net.interface.sit0.ipaddr: unknown
net.interface.sit0.netmask: unknown
network.hostname: hp-bl870c-02.rhts.eng.bos.redhat.com
network.ipaddr: 10.16.65.222
system.entitlements_valid: False
uname.machine: ia64
uname.nodename: hp-bl870c-02.rhts.eng.bos.redhat.com
uname.release: 2.6.18-262.el5
uname.sysname: Linux
uname.version: #1 SMP Mon May 16 17:49:19 EDT 2011
virt.host_type: 
virt.is_guest: False
[root@hp-bl870c-02 ~]# 


[root@hp-bl870c-02 ~]#  tail -f /var/log/rhsm/rhsm.log
2011-05-27 12:40:03,855 [INFO]  @connection.py:333 - Using certificate authentication: key = /etc/pki/consumer/key.pem, cert = /etc/pki/consumer/cert.pem, ca = /etc/rhsm/ca/, insecure = False
2011-05-27 12:40:03,855 [INFO]  @connection.py:337 - Connection Established: host: subscription.rhn.redhat.com, port: 443, handler: /subscription
2011-05-27 12:40:04,066 [WARNING]  @hwprobe.py:353 - Error reading system DMI information: Wrong DMI structures length: 3263 bytes announced, structures occupy 3265 bytes.

2011-05-27 12:40:04,066 [DEBUG]  @certlib.py:635 - Sorting product and entitlement cert status for: 2011-05-27 12:40:04.066655
2011-05-27 12:40:04,082 [DEBUG]  @certlib.py:654 - Installed product IDs: ['83', '69', '101', '90']
2011-05-27 12:40:04,083 [DEBUG]  @certlib.py:645 - valid entitled products: []
2011-05-27 12:40:04,083 [DEBUG]  @certlib.py:646 - expired entitled products: []


^^^ Verified that the ** COLLECTED WARNINGS ** are now filtered from the stderr of subscription-manager command line calls. Instead the warnings are now logged by subscription-manager as WARNINGS in  /var/log/rhsm/rhsm.log

Comment 7 errata-xmlrpc 2011-07-21 08:46:00 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHEA-2011-1078.html

Comment 8 errata-xmlrpc 2011-07-21 12:30:40 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHEA-2011-1078.html


Note You need to log in before you can comment on or make changes to this bug.