Bug 1245677

Summary: The current regex solution breaks tuna and possible others apps with newer kernels
Product: Red Hat Enterprise Linux 7 Reporter: Flavio Leitner <fleitner>
Component: python-linux-procfsAssignee: John Kacur <jkacur>
Status: CLOSED ERRATA QA Contact: Jiri Kastner <jkastner>
Severity: high Docs Contact:
Priority: high    
Version: 7.1CC: bhu, jkacur, jkastner
Target Milestone: rc   
Target Release: 7.3   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: No Doc Update
Doc Text:
undefined
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-11-04 08:08:00 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:
Bug Depends On:    
Bug Blocks: 1274397, 1282960, 1313485    

Description Flavio Leitner 2015-07-22 14:09:12 UTC
Description of problem:

The /proc/interrupts format changed a bit in the newer kernels adding an extra column.
This is how it used to be:
 43:  0   0   0   0   PCI-MSI-edge  virtio0-input.0
This is how it is now:
 43:  0   0   0   0   PCI-MSI 32769-edge  virtio0-input.0

The extra column breaks the 'users' parser.  As a consequence tuna breaks too.

# tuna --irqs='virtio0*' --cpus=0,1,2,3  -x
[]
tuna: --move requires a list of threads/irqs!
[root@localhost ~]# tuna --irqs='*virtio0*' --cpus=0,1,2,3  -x
[32, 33, 34, 26, 27, 28, 29, 30, 31]

Version-Release number of selected component (if applicable):
tuna-0.11.1-8.el7.noarch
python-linux-procfs-0.4.6-2.el7.noarch
Good kernel: 3.10.0-252.el7.x86_64
Bad kernel: vmlinuz-4.1.0-05824-gb922622

How reproducible:
Always, just reboot a guest using the bad kernel version.

Actual results:
tuna regex for irq users is broken

Expected results:
both kernels are supported and the same regex applies.

Additional info:
The bad kernel might not be supported at this moment, but it is useful for testing and might be the case of more advanced kernels, like kernel-rt. In any case, this needs to be fixed to prevent customers to find it later on when the supported kernel gets updated too.

Comment 2 John Kacur 2016-05-23 14:13:05 UTC
The patch to fix this was included in bz1235826

Comment 6 errata-xmlrpc 2016-11-04 08:08:00 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-2016-2532.html