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 2087750 - irqbalance unit file - /path/to dummy filename
Summary: irqbalance unit file - /path/to dummy filename
Keywords:
Status: CLOSED DUPLICATE of bug 2058509
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: irqbalance
Version: 9.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: ltao
QA Contact: Jiri Dluhos
URL:
Whiteboard:
Depends On: 2007761 2058510
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-05-18 12:39 UTC by Jan Pazdziora (Red Hat)
Modified: 2023-06-22 09:06 UTC (History)
10 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 2007761
Environment:
Last Closed: 2022-05-20 12:32:11 UTC
Type: Bug
Target Upstream Version:
Embargoed:
pm-rhel: mirror+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHELPLAN-122444 0 None None None 2022-05-18 12:51:27 UTC

Description Jan Pazdziora (Red Hat) 2022-05-18 12:39:20 UTC
+++ This bug was initially created as a clone of Bug #2007761 +++

Description of problem:

See https://bugzilla.redhat.com/show_bug.cgi?id=1952715#c8 which is still uncorrected and marked as needing info (though it appears no info is needed).
This problem still exists in Fedora 35 (Fedora-35-20210924.n.0).

The systemd unit file for irqbalance has the line:

EnvironmentFile=-/path/to/irqbalance.env

This /path/to was clearly intended to be a place-holder. It should refer to the local /etc config file, so:

EnvironmentFile=-/etc/sysconfig/irqbalance

--------

Also, the irqbalance service still, in Fedora 35, gives the journal error:

libcap-ng used by "/usr/sbin/irqbalance" failed due to not having CAP_SETPCAP in capng_apply

and, as referred to in the bugzilla linked above, can be corrected by this line in the unit file:

CapabilityBoundingSet=CAP_SETPCAP




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

irqbalance-1.7.0-8.fc35

How reproducible:

Always.

Steps to Reproduce:
1.
2.
3.

Actual results:

Local config file /etc/sysconfig/irqbalance ignored.

Error message re CAP_SETPCAP given.


Expected results:

Local config file /etc/sysconfig/irqbalance *NOT* ignored.

*NO* error message re CAP_SETPCAP.

Additional info:

--- Additional comment from Zbigniew Jędrzejewski-Szmek on 2021-10-13 09:07:43 CEST ---

#1952715 describes the second issue sufficiently.

Comment 1 Jan Pazdziora (Red Hat) 2022-05-18 12:46:26 UTC
The issue is present on RHEL 9.0 as well:

# rpm -q irqbalance
irqbalance-1.8.0-4.el9.x86_64
# grep EnvironmentFile /usr/lib/systemd/system/irqbalance.service
EnvironmentFile=-/usr/lib/irqbalance/defaults.env
EnvironmentFile=-/path/to/irqbalance.env

Sourcing configuration from location which does exist and is not part of Filesystem Hierarchy Standard has a potential of affecting behaviour of this root-executing daemon in unexpected ways.

This is a regression against RHEL 8:

# rpm -q irqbalance
irqbalance-1.4.0-6.el8.x86_64
# grep EnvironmentFile /usr/lib/systemd/system/irqbalance.service
EnvironmentFile=/etc/sysconfig/irqbalance

Comment 2 Jan Pazdziora (Red Hat) 2022-05-18 12:48:47 UTC
The correct patch seems to have been lost from .spec in Fedora 33:

https://src.fedoraproject.org/rpms/irqbalance/c/76add4e1b859699ad90e6438dd6362a284191b93?branch=rawhide

Comment 3 ltao 2022-05-20 02:27:59 UTC
Hi Jan,

I think this bz is duplicated to bz2058509, which has been fixed in irqbalance-1.8.0-5.el9. Hi Jiri, bz2058509 is currently in modified status, could you please have a test on it? I can then add the build in to errata after the bz verified tested, which then can be integrated into nightly compose.

Thanks,
Tao Liu

Comment 4 Jan Pazdziora (Red Hat) 2022-05-20 12:32:11 UTC
Sorry for having missed the already opened RHEL 9 bugzilla, marking as duplicate.

*** This bug has been marked as a duplicate of bug 2058509 ***


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