Bug 1036156 - tuna not working properly on some ppc64 systems
Summary: tuna not working properly on some ppc64 systems
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: tuna
Version: 7.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: 7.3
Assignee: John Kacur
QA Contact: Jiri Kastner
URL:
Whiteboard:
Depends On:
Blocks: 1274397 RT7.3-RHELpkgs 1313485
TreeView+ depends on / blocked
 
Reported: 2013-11-29 15:29 UTC by Jiri Kastner
Modified: 2016-11-04 05:14 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
On some hardware such as ppc64, tuna was ending in a traceback while trying to parse a systems CPU list that contained CPUs that were offline. Tuna was modified to recognize and skip the offline CPUs allowing proper display with no errors.
Clone Of:
Environment:
Last Closed: 2016-11-04 05:14:40 UTC
Target Upstream Version:


Attachments (Terms of Use)
rtuna: cpuview.py: Omit offline cpus in socket_ids list (1.83 KB, patch)
2016-05-30 11:30 UTC, John Kacur
no flags Details | Diff


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2016:2392 0 normal SHIPPED_LIVE tuna bug fix and enhancement update 2016-11-03 13:54:24 UTC

Description Jiri Kastner 2013-11-29 15:29:14 UTC
Description of problem:
on some ibm hw (in particular LPARs) tuna hangs on cpu sockets listing.

Version-Release number of selected component (if applicable):


How reproducible:
on some ibm hw

Steps to Reproduce:
1. allocate lpar device
2. install rhel7 and tuna
3. run tuna in gui mode

Actual results:

[root@ibm-p730-03-lp1 ~]# DISPLAY=:1 tuna
Gtk-Message: Failed to load module "canberra-gtk-module"
Traceback (most recent call last):
  File "/usr/bin/tuna", line 647, in <module>
    main()
  File "/usr/bin/tuna", line 641, in main
    app = tuna_gui.main_gui(kthreads, uthreads, cpus_filtered)
  File "/usr/lib/python2.7/site-packages/tuna/tuna_gui.py", line 49, in __init__
    self.procview, self.irqview, cpus_filtered)
  File "/usr/lib/python2.7/site-packages/tuna/gui/cpuview.py", line 253, in __init__
    socket_ids = [ int(id) for id in self.cpus.sockets.keys() ]
TypeError: int() argument must be a string or a number, not 'NoneType'

Expected results:

cpu sockets handled properly, no tracebacks

Additional info:

Comment 3 John Kacur 2014-03-12 12:47:06 UTC
No upstream solution yet, propose we postpone until rhel7.1

Comment 5 Ludek Smid 2014-06-26 10:49:25 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.

Comment 6 Ludek Smid 2014-06-26 11:13:59 UTC
The comment above is incorrect. The correct version is bellow.
I'm sorry for any inconvenience.
---------------------------------------------------------------

This request was NOT resolved in Red Hat Enterprise Linux 7.0.

Contact your manager or support representative in case you need
to escalate this bug.

Comment 10 John Kacur 2016-05-30 11:30:40 UTC
Created attachment 1162786 [details]
rtuna: cpuview.py: Omit offline cpus in socket_ids list

Comment 11 John Kacur 2016-05-30 11:31:26 UTC
(In reply to John Kacur from comment #10)
> Created attachment 1162786 [details]
> rtuna: cpuview.py: Omit offline cpus in socket_ids list

I submitted the above patch upstream

Comment 12 John Kacur 2016-05-30 11:55:53 UTC
Fixed in tuna-0.13-2.el7 and up

Comment 16 errata-xmlrpc 2016-11-04 05:14:40 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/RHEA-2016-2392.html


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