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.

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