Bug 1017473

Summary: settings in /etc/sysctl.conf are overwritten by default values
Product: [Fedora] Fedora Reporter: Andrew J. Schorr <aschorr>
Component: systemdAssignee: systemd-maint
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 19CC: johannbg, lnykryn, msekleta, plautrba, systemd-maint, vpavlin, zbyszek
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: systemd-204-17.fc19 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-10-25 01:53:10 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:
Attachments:
Description Flags
give highest priority to the settings in /etc/sysctl.conf none

Description Andrew J. Schorr 2013-10-10 01:10:29 UTC
Description of problem: After the most recent patch to systemd, the settings in /etc/sysctl.conf have the lowest priority.  Thus, they are overwritten by the default values in the sysctl.d files.


Version-Release number of selected component (if applicable): systemd-204-16.fc19.x86_64



How reproducible: Boot the system with a setting in /etc/sysctl.conf that conflicts with a default setting.  For example, I have on my system:

bash-4.2$ grep rp_filter /etc/sysctl.conf
net.ipv4.conf.default.rp_filter = 0
bash-4.2$ grep rp_filter /usr/lib/sysctl.d/50-default.conf 
net.ipv4.conf.default.rp_filter = 1

The boot messages include:
Oct 09 11:48:33 ti5 systemd-sysctl[1250]: Overwriting earlier assignment of net/ipv4/conf/default/rp_filter in file '/usr/lib/sysctl.d/50-default.conf'.





Steps to Reproduce:
1. Install /etc/sysctl.conf with values intended to override the default values in the sysctl.d files
2. Reboot
3. Observe that /etc/sysctl.conf has lowest priority

Actual results: Conflicting settings in /etc/sysctl.conf are ignored.


Expected results: The values in /etc/sysctl.conf should have priority.  That was the case until the most recent patch.


Additional info:

Comment 1 Andrew J. Schorr 2013-10-10 02:26:41 UTC
Created attachment 810239 [details]
give highest priority to the settings in /etc/sysctl.conf

This patch fixes the problem for me.

Comment 2 Fedora Update System 2013-10-22 16:21:20 UTC
systemd-204-17.fc19 has been submitted as an update for Fedora 19.
https://admin.fedoraproject.org/updates/systemd-204-17.fc19

Comment 3 Fedora Update System 2013-10-23 03:33:07 UTC
Package systemd-204-17.fc19:
* should fix your issue,
* was pushed to the Fedora 19 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing systemd-204-17.fc19'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2013-19730/systemd-204-17.fc19
then log in and leave karma (feedback).

Comment 4 Fedora Update System 2013-10-25 01:53:10 UTC
systemd-204-17.fc19 has been pushed to the Fedora 19 stable repository.  If problems still persist, please make note of it in this bug report.