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 1300816 - ppc64 systems do not collect cpuinfo 'platform' field that indicates virt.
Summary: ppc64 systems do not collect cpuinfo 'platform' field that indicates virt.
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: subscription-manager
Version: 6.8
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: rc
: ---
Assignee: candlepin-bugs
QA Contact: John Sefler
URL:
Whiteboard:
Depends On:
Blocks: rhsm-ppc64
TreeView+ depends on / blocked
 
Reported: 2016-01-21 19:42 UTC by Adrian Likins
Modified: 2016-05-10 20:39 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-05-10 20:39:38 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
beaker-details (98.01 KB, image/png)
2016-02-16 08:46 UTC, Rehana
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2016:0797 0 normal SHIPPED_LIVE python-rhsm and subscription-manager bug fix and enhancement update 2017-01-06 16:31:50 UTC

Description Adrian Likins 2016-01-21 19:42:43 UTC
Description of problem:

We collect some of the fields from /proc/cpuinfo on ppc64, but
that does not include the 'platform' field that indicates
bare-metal/virt.

Steps to Reproduce:
1. find a ppc64 lpar or virt machine, and a ppc64 baremetal machine
2. run 'subscription-manager facts --list' | grep platform
3. It will be empty. It should say 'PowerNV" or "pSeries"

Additional info:

https://bugzilla.redhat.com/show_bug.cgi?id=1147876 references a 
patch/change to virt-what that would update it to also check this
field on ppc64. 

We don't necessarily need both to detect virt, but adding more complete
ppc64 cpuinfo collection is generally useful.

Comment 2 Chris Snyder 2016-01-26 21:07:31 UTC
In upstream master as of the below commit info.

1300816: Add proc_cpuinfo facts for ppc64/le

This includes the 'platform' and 'machine' fields,
which indicate baremetal/virt/lpar.

Make *CpuInfo classes subclass of BaseCpuInfo

Move split_by_processor out of class to module
scope and change to split_kv_list_by_field()

Add ppc64le tests

Comment 5 Rehana 2016-02-11 09:45:40 UTC
Reproducing the issue :

# subscription-manager  version
server type: This system is currently not registered.
subscription management server: 0.9.51.11-1
subscription management rules: 5.15
subscription-manager: 1.16.8-1.el6
python-rhsm: 1.16.6-1.el6

[root@ibm-p8-kvm-03-guest-03 ~]# subscription-manager facts --list | grep -a platform

[root@ibm-p8-kvm-03-guest-03 ~]# subscription-manager facts --list | grep -a machine
uname.machine: ppc64

With updated subscription-manager packages
------------------------------------------
On guest machine:
---------------
# subscription-manager  version
server type: This system is currently not registered.
subscription management server: 0.9.51.11-1
subscription management rules: 5.15
subscription-manager: 1.16.8-2.el6
python-rhsm: 1.16.6-1.el6

# subscription-manager facts --list | grep -a platform
proc_cpuinfo.common.platform: pSeries

# subscription-manager facts --list | grep -a machine
proc_cpuinfo.common.machine: CHRP IBM pSeries (emulated by qemu)
uname.machine: ppc64


on physical machine:
-------------------
# subscription-manager  version
server type: This system is currently not registered.
subscription management server: 0.9.51.11-1
subscription management rules: 5.15
subscription-manager: 1.16.8-2.el6
python-rhsm: 1.16.6-1.el6

# subscription-manager facts --list | grep -a platform
proc_cpuinfo.common.platform: pSeries

# subscription-manager facts --list | grep -a machine
proc_cpuinfo.common.machine: CHRP IBM,8231-E2B
uname.machine: ppc64

Result:
-------
Observed that with update subscription-manager packages , ppc64 machines(physical and guest) machine now displays 'platform' and 'machine' details in the facts list


However i m not sure the bug mentioned in comment 0 (reg : virt-what )should be fixed and verified as well ?

Comment 8 Rehana 2016-02-16 08:46:30 UTC
Created attachment 1127527 [details]
beaker-details

Comment 11 Rehana 2016-02-17 07:56:25 UTC
Marking the bug as "Verified"

Comment 13 errata-xmlrpc 2016-05-10 20:39:38 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://rhn.redhat.com/errata/RHBA-2016-0797.html


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