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 1155799 - Irqbalance didn't log failing to set SMP affinity
Summary: Irqbalance didn't log failing to set SMP affinity
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: irqbalance
Version: 7.1
Hardware: All
OS: Linux
unspecified
medium
Target Milestone: rc
: ---
Assignee: Petr Holasek
QA Contact: Andrej Manduch
URL:
Whiteboard:
Depends On: 1152188
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-10-22 20:43 UTC by Andrej Manduch
Modified: 2019-02-15 03:09 UTC (History)
5 users (show)

Fixed In Version: irqbalance-1.0.7-2.el7
Doc Type: Bug Fix
Doc Text:
Clone Of: 1152188
Environment:
Last Closed: 2015-11-19 05:21:22 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2015:2207 0 normal SHIPPED_LIVE irqbalance bug fix update 2015-11-19 08:17:13 UTC

Description Andrej Manduch 2014-10-22 20:43:06 UTC
+++ This bug was initially created as a clone of Bug #1152188 +++

Description of problem:

If irqbalance doesn't have right to change irq smp affinity it will silliently continue without any warning in logs what so ever.

How reproducible:

Run irqbalance with 

Steps to Reproduce:
1. log yourself as regular user
2. set IRQBALANCE_BANNED_CPUS
3. run irqbalancer
4. check /proc/irq/*/smp_affinity if was changed by irqbalance to value coresponding with IRQBALANCE_BANNED_CPUS (if you've done everything right value should stay unchanged due lack of privileges)
5. check irqbalance log (you'll see nothing about failing to set SMP affinity)

Expected results:

I belive I should be able to at least see some warning in logs about failing to set SMP affinity

Additional info:
In attachment I'm sending output from my run of `strace -e trace=file irqbalance --debug --oneshot`

--- Additional comment from RHEL Product and Program Management on 2014-10-15 05:40:35 EDT ---

Since this bug report was entered in bugzilla, the release flag has been
set to ? to ensure that it is properly evaluated for this release.

Comment 2 Petr Holasek 2014-12-10 14:58:12 UTC
Hi Andrej,

What is use case of using irqbalance as regular user? I would rather make irqbalance writing warning at the startup if it wasn't executed under root account.

Comment 3 Andrej Manduch 2014-12-15 09:25:04 UTC
(In reply to Petr Holasek from comment #2)
> Hi Andrej,
> 
> What is use case of using irqbalance as regular user? I would rather make
> irqbalance writing warning at the startup if it wasn't executed under root
> account.

I mentioned run as a regular user only to way to reproduce this. When I reported this I had in mind maybe some security module in kernel or whatever what sysadmin can get easilly miss when he will not see warning in log.
Or in some irq you don't have right to change smp affinity by nature of the interrupt.

Comment 8 errata-xmlrpc 2015-11-19 05:21:22 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-2015-2207.html


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