Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
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.
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
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.
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
(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.
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
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