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 1177710 - Command 'kvm_stat' couldn't be executecd on PPC rhel system
Summary: Command 'kvm_stat' couldn't be executecd on PPC rhel system
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: qemu-kvm-rhev
Version: 7.1
Hardware: ppc64
OS: Linux
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: David Gibson
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-12-30 02:59 UTC by Gu Nini
Modified: 2015-12-04 16:24 UTC (History)
7 users (show)

Fixed In Version: QEMU 2.2
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-12-04 16:24:56 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2015:2546 0 normal SHIPPED_LIVE qemu-kvm-rhev bug fix and enhancement update 2015-12-04 21:11:56 UTC

Description Gu Nini 2014-12-30 02:59:57 UTC
Description of problem:
When issue command 'kvm_stat' on the host, it failed with following error prompt:
[root@ibm-p8-kvm-01-qe ~]# kvm_stat
Traceback (most recent call last):
  File "/usr/bin/kvm_stat", line 196, in <module>
    filters[f] = (filters[f][0], invert(filters[f][1]))
  File "/usr/bin/kvm_stat", line 193, in invert
    return dict((x[1], x[0]) for x in d.iteritems())
AttributeError: 'NoneType' object has no attribute 'iteritems'

Version-Release number of selected component (if applicable):
Host kernel: 3.10.0-216.el7.ppc64/3.10.0-217.el7.ppc64
Qemu-kvm:
qemu-kvm-rhev-2.1.2-17.el7.ppc64
qemu-kvm-tools-rhev-2.1.2-17.el7.ppc64
qemu-kvm-common-rhev-2.1.2-17.el7.ppc64
qemu-kvm-rhev-debuginfo-2.1.2-17.el7.ppc64


How reproducible:
100%


Additional info:
None

Comment 2 David Gibson 2015-01-13 04:56:01 UTC
Ok, looks like the version of kvm_stat in RHEL just doesn't have ppc support.  Michael Ellerman posted a bunch of extensions to fix that which are merged upstream.

I'll backport.

Comment 3 David Gibson 2015-01-20 03:00:59 UTC
These patches are also already included in the qemu-2.2 based branch.

Miya et al, have you moved onto testing that yet?

Comment 6 Gu Nini 2015-06-30 09:04:53 UTC
Verified the bug on following sw versions:

Host kernel: 3.10.0-282.el7.ppc64le
Qemu-kvm-rhev: qemu-kvm-rhev-2.3.0-5.el7.ppc64le


Now the command output is as follows:
[root@ibm-p8-kvm-02-qe cfg]# kvm_stat
kvm statistics

 Event                                        Total Current
 kvm_userspace_exit                        10046876    7563
 kvm_ppc_instr                                10894       5
 kvm_ack_irq                                   1218       0
 kvm_userspace_exit(PAPR_HCALL)                  61	  0

Comment 7 Gu Nini 2015-07-30 06:13:33 UTC
(In reply to Gu Nini from comment #6)


Deeper verify the bug on both ppc64be and ppc64le host with following sw versions:

PPC64BE HOST:
host kernel: 3.10.0-300.el7.ppc64
Qemu-kvm-rhev: qemu-kvm-rhev-2.3.0-13.el7.ppc64

PPC64LE HOST:
host kernel: 3.10.0-300.el7.ppc64le
Qemu-kvm-rhev: qemu-kvm-rhev-2.3.0-13.el7.ppc64le


Now the cmd 'kvm_stat' could be executed without any problem.

Comment 8 Qunfang Zhang 2015-08-03 05:49:35 UTC
Setting to VERIFIED according to comment 7.

Comment 10 errata-xmlrpc 2015-12-04 16:24: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, 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-2015-2546.html


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