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 959732 - tuned ignores /etc/sysctl.d
Summary: tuned ignores /etc/sysctl.d
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: tuned
Version: 6.4
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Jaroslav Škarvada
QA Contact: Branislav Blaškovič
URL:
Whiteboard:
Depends On:
Blocks: 1103691
TreeView+ depends on / blocked
 
Reported: 2013-05-05 06:52 UTC by Axel Thimm
Modified: 2022-09-05 10:43 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Cause: Previously ktune didn't handle the /etc/sysctl.d directory nor it didn't support more multiple files with sysctl settings. Consequence: The /etc/sysctl.d settings whis is installed by several packages like libvirt was ignored. Fix: The ktune code and profiles were modified. Result: Now all the sysctl settings under the /etc/sysctl.d directory is loaded and then the /etc/sysctl.conf is loaded. Also the user can now specify multiple sysctl files (wildcards are also supported) to load in the tuned profiles.
Clone Of:
: 1103691 (view as bug list)
Environment:
Last Closed: 2013-11-21 11:34:47 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Proposed fix (9.09 KB, patch)
2013-07-23 19:04 UTC, Jaroslav Škarvada
no flags Details | Diff


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2013:1623 0 normal SHIPPED_LIVE tuned bug fix and enhancement update 2013-11-20 21:38:38 UTC

Description Axel Thimm 2013-05-05 06:52:36 UTC
Description of problem:
sysctl configuration under /etc/sysctl.d is ignored when tuned applies SYSCTL_POST (usually just /etc/sysctl.conf)

Version-Release number of selected component (if applicable):
tuned-0.2.19-11.el6.1.noarch

How reproducible:
Always

Steps to Reproduce:
1.Installed tuned
2.Pick a profile
3.
 
Actual results:
/etc/sysctl.d entries are ignored

Expected results:
/etc/sysctl.d entries should be respected

Additional info:
/etc/sysctl.d is already used by libvirt and vdsm

A crude fix is the following hack into the initscript:
--- /etc/rc.d/init.d/ktune.org	2013-02-05 14:59:01.000000000 +0100
+++ /etc/rc.d/init.d/ktune	2013-05-04 20:19:57.709291163 +0200
@@ -125,8 +125,12 @@
 
         # Apply general sysctl settings afterwards
 	if [ -r "$SYSCTL_POST" ]; then
-	    echo $"Applying sysctl settings from $SYSCTL_POST"
-	    sysctl -e -p "$SYSCTL_POST" >/dev/null 2>&1
+	    if [ "$SYSCTL_POST" = /etc/sysctl.conf ]; then
+		apply_sysctl
+	    else
+		echo $"Applying sysctl settings from $SYSCTL_POST"
+		sysctl -e -p "$SYSCTL_POST" >/dev/null 2>&1
+	    fi
 	fi
     fi
 }

Comment 3 Jaroslav Škarvada 2013-07-23 19:04:20 UTC
Created attachment 777433 [details]
Proposed fix

Comment 6 errata-xmlrpc 2013-11-21 11:34:47 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-2013-1623.html


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