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 1070908 - subscription-manager facts collection for hardware does not match lscpu on ppc64
Summary: subscription-manager facts collection for hardware does not match lscpu on ppc64
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: subscription-manager
Version: 7.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: candlepin-bugs
QA Contact: John Sefler
URL:
Whiteboard:
Depends On:
Blocks: rhsm-rhel70 rhsm-ppc64
TreeView+ depends on / blocked
 
Reported: 2014-02-27 17:12 UTC by John Sefler
Modified: 2015-10-19 16:11 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-06-13 10:57:18 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
hardware info tar file from ibm-p730-02-lp3.rhts.eng.bos.redhat.com (1.50 MB, application/x-tar)
2014-02-27 17:12 UTC, John Sefler
no flags Details

Description John Sefler 2014-02-27 17:12:17 UTC
Created attachment 868654 [details]
hardware info tar file from ibm-p730-02-lp3.rhts.eng.bos.redhat.com

Description of problem:
The cpu.cpu_socket(s) fact is used for compliance calculations on a ppc64 system consuming a "Red Hat Enterprise Linux Beta for IBM POWER" subscription.  However the fact values used for compliance computation are different than what is reported by lscpu as shown in the facts list below...

The consequence of this case is that subscription-manager will require more subscriptions to be attached to achieve compliance than what is arguably necessary.

ssh root.eng.bos.redhat.com subscription-manager facts --list
Stdout:
cpu.core(s)_per_socket: 1
cpu.cpu(s): 64
cpu.cpu_socket(s): 16                <====== USED BY subscription-manager
cpu.thread(s)_per_core: 4
cpu.topology_source: kernel /sys cpu sibling lists
distribution.id: Maipo
distribution.name: Red Hat Enterprise Linux Server
distribution.version: 7.0
distribution.version.modifier: beta
lscpu.architecture: ppc64
lscpu.byte_order: Big Endian
lscpu.core(s)_per_socket: 1
lscpu.cpu(s): 8
lscpu.cpu_op-mode(s): 32-bit, 64-bit
lscpu.l1d_cache: 32K
lscpu.l1i_cache: 32K
lscpu.model: IBM,8231-E2B
lscpu.numa_node(s): 2
lscpu.numa_node0_cpu(s): 0-7
lscpu.numa_node1_cpu(s): Unknown
lscpu.on-line_cpu(s)_list: 0-7
lscpu.socket(s): 2                   <============ DISCREPANCY
lscpu.thread(s)_per_core: 4
memory.memtotal: 5180096
memory.swaptotal: 2936768
net.interface.eth0.mac_address: B6:E9:FB:E9:A5:04
net.interface.eth1.ipv4_address: 10.16.70.43
net.interface.eth1.ipv4_broadcast: 10.16.71.255
net.interface.eth1.ipv4_netmask: 21
net.interface.eth1.ipv6_address.global: 2620:52:0:1040:e61f:13ff:fe8e:e274
net.interface.eth1.ipv6_address.link: fe80::e61f:13ff:fe8e:e274
net.interface.eth1.ipv6_address.site: fec0:0:a10:4000:e61f:13ff:fe8e:e274
net.interface.eth1.ipv6_netmask.global: 64
net.interface.eth1.ipv6_netmask.link: 64
net.interface.eth1.ipv6_netmask.site: 64
net.interface.eth1.mac_address: E4:1F:13:8E:E2:74
net.interface.lo.ipv4_address: 127.0.0.1
net.interface.lo.ipv4_broadcast: Unknown
net.interface.lo.ipv4_netmask: 8
net.interface.lo.ipv6_address.host: ::1
net.interface.lo.ipv6_netmask.host: 128
network.hostname: ibm-p730-02-lp3.rhts.eng.bos.redhat.com
network.ipv4_address: 10.16.70.43
network.ipv6_address: ::1
system.certificate_version: 3.2
uname.machine: ppc64
uname.nodename: ibm-p730-02-lp3.rhts.eng.bos.redhat.com
uname.release: 3.10.0-97.el7.ppc64
uname.sysname: Linux
uname.version: #1 SMP Tue Feb 25 15:25:24 EST 2014
virt.host_type: Not Applicable
virt.is_guest: False




Version-Release number of selected component (if applicable):
subscription-manager-1.10.14-3.el7.ppc64

How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 12 John Sefler 2014-03-20 14:46:33 UTC
Verifying....

First, let's re-confirm the failure on offending hardware...
[root@ibm-p730-02-lp3 ~]# cat /etc/redhat-release 
Red Hat Enterprise Linux Server release 7.0 Beta (Maipo)
[root@ibm-p730-02-lp3 ~]# uname -a
Linux ibm-p730-02-lp3.rhts.eng.bos.redhat.com 3.10.0-110.el7.ppc64 #1 SMP Wed Mar 12 17:46:01 EDT 2014 ppc64 ppc64 ppc64 GNU/Linux
[root@ibm-p730-02-lp3 ~]# rpm -q subscription-manager
subscription-manager-1.10.14-4.el7.ppc64

[root@ibm-p730-02-lp3 ~]# subscription-manager facts --list | grep "cpu."
cpu.core(s)_per_socket: 1
cpu.cpu(s): 64                 <======= DOES NOT MATCH lscpu.cpu(s)
cpu.cpu_socket(s): 16          <======= DOES NOT MATCH lscpu.socket(s)
cpu.thread(s)_per_core: 4
cpu.topology_source: kernel /sys cpu sibling lists
lscpu.architecture: ppc64
lscpu.byte_order: Big Endian
lscpu.core(s)_per_socket: 1
lscpu.cpu(s): 8
lscpu.cpu_op-mode(s): 32-bit, 64-bit
lscpu.l1d_cache: 32K
lscpu.l1i_cache: 32K
lscpu.model: IBM,8231-E2B
lscpu.numa_node(s): 2
lscpu.numa_node0_cpu(s): 0-7
lscpu.numa_node1_cpu(s): Unknown
lscpu.on-line_cpu(s)_list: 0-7
lscpu.socket(s): 2
lscpu.thread(s)_per_core: 4


Now let's re-test after updating subscription-manager package...
[root@ibm-p730-02-lp3 ~]# rpm -q subscription-manager
subscription-manager-1.10.14-5.el7.ppc64

[root@ibm-p730-02-lp3 ~]# subscription-manager facts --list | grep "cpu."
cpu.core(s)_per_socket: 1 <======= VERIFIED: MATCHES lscpu.core(s)_per_socket
cpu.cpu(s): 8             <======= VERIFIED: MATCHES lscpu.cpu(s)
cpu.cpu_socket(s): 2      <======= VERIFIED: MATCHES lscpu.socket(s)
cpu.thread(s)_per_core: 4 <======= VERIFIED: MATCHES lscpu.thread(s)_per_core
cpu.topology_source: kernel /sys cpu sibling lists
lscpu.architecture: ppc64
lscpu.byte_order: Big Endian
lscpu.core(s)_per_socket: 1
lscpu.cpu(s): 8
lscpu.cpu_op-mode(s): 32-bit, 64-bit
lscpu.l1d_cache: 32K
lscpu.l1i_cache: 32K
lscpu.model: IBM,8231-E2B
lscpu.numa_node(s): 2
lscpu.numa_node0_cpu(s): 0-7
lscpu.numa_node1_cpu(s): Unknown
lscpu.on-line_cpu(s)_list: 0-7
lscpu.socket(s): 2
lscpu.thread(s)_per_core: 4

Comment 13 John Sefler 2014-03-20 15:16:40 UTC
Verified this fix on subscription-manager-1.10.14-5.el7.ppc64 which is now included in Snapshot12 RHEL-7.0-20140319.0

Comment 14 Ludek Smid 2014-06-13 10:57:18 UTC
This request was resolved in Red Hat Enterprise Linux 7.0.

Contact your manager or support representative in case you have further questions about the request.


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