Bug 1133700

Summary: Fixes for tuna in bz1035795 which is a blocker, also require an update to python-linux-procfs
Product: Red Hat Enterprise Linux 6 Reporter: John Kacur <jkacur>
Component: python-linux-procfsAssignee: John Kacur <jkacur>
Status: CLOSED ERRATA QA Contact: Jiri Kastner <jkastner>
Severity: urgent Docs Contact:
Priority: high    
Version: 6.6CC: bhu, borgan, jkacur, jkastner, salmy, williams
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-10-14 08:30:45 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description John Kacur 2014-08-25 21:42:10 UTC
Description of problem:

The version of python-linux-procfs for rhel6.6 is currently 
 0.4.5-2 which misses three fixes required for tuna-0.10.4-7.el6

5121e0a7193a procfs: Parse environment variables
816b3fc12ed1 pidstats: Added support for parsing cgroups as a per thread attribu
6b3db2a61598 smaps: Improve parsing of mmaps


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

we urgently need to upgrade to python-linux-procfs-0.4.6-1

How reproducible:
Every time

Steps to Reproduce:
1. rpm -ivh tuna-0.10.4-7.el6.noarch.rpm
2. tuna -CP


Actual results:

                      thread       ctxt_switches
    pid SCHED_ rtpri affinity voluntary nonvoluntary             cmd 
Traceback (most recent call last):
  File "/usr/bin/tuna", line 647, in <module>
    main()
  File "/usr/bin/tuna", line 542, in main
    kthreads, affect_children, show_sockets, cgroups)
  File "/usr/bin/tuna", line 310, in do_ps
    has_ctxt_switch_info, sock_inodes, sock_inode_re, cgroups)
  File "/usr/bin/tuna", line 275, in ps_show
    sock_inode_re, cgroups)
  File "/usr/bin/tuna", line 187, in ps_show_thread
    cgout = ps[pid]["cgroups"]
  File "/usr/lib/python2.6/site-packages/procfs/procfs.py", line 169, in __getitem__
    return getattr(self, attr)
AttributeError: process instance has no attribute 'cgroups'


Expected results:
                      thread       ctxt_switches
    pid SCHED_ rtpri affinity voluntary nonvoluntary             cmd 
 1       OTHER     0    0xfff      1065           54            init  
 2       OTHER     0    0xfff       291            0        kthreadd  
 3        FIFO    99        0       168            0     migration/0  
 4       OTHER     0        0       377            0     ksoftirqd/0  
 5        FIFO    99        0        20            0       stopper/0  
 6        FIFO    99        0      1894            0      watchdog/0  
 7        FIFO    99        1        50            0     migration/1  
 8        FIFO    99        1        20            0       stopper/1  
 9       OTHER     0        1       112            0     ksoftirqd/1  
 10       FIFO    99        1      1894            0      watchdog/1  
 11       FIFO    99        2        36            0     migration/2  
 12       FIFO    99        2        20            0       stopper/2  
 13      OTHER     0        2        13            0     ksoftirqd/2  
 14       FIFO    99        2      1894            0      watchdog/2  
 15       FIFO    99        3        17            0     migration/3  


etc

Additional info:

This is well tested on rhel-mrg, and rhel-7
as well as tested personally on rhel6.6

Comment 6 John Kacur 2014-09-02 13:29:17 UTC
Fixed with python-linux-procfs-0.4.6-3

Comment 10 errata-xmlrpc 2014-10-14 08:30:45 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.

http://rhn.redhat.com/errata/RHBA-2014-1615.html