Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ncm-sysctl: /etc/sysctl.conf takes precedence over sysctl.d #737

Closed
ned21 opened this issue Mar 21, 2016 · 5 comments
Closed

ncm-sysctl: /etc/sysctl.conf takes precedence over sysctl.d #737

ned21 opened this issue Mar 21, 2016 · 5 comments
Labels

Comments

@ned21
Copy link
Contributor

ned21 commented Mar 21, 2016

As per this post any OS vendor defaults shipped in /etc/sysctl.conf cannot be overridden in sysctl.d. The easy fix is to blank the file, either as part of ncm-sysctl, or by configuring another component (ncm-filecopy?) to do so. However it may be important to preserve any vendor supplied defaults which vary from the kernel defaults, e.g. by copying them to /etc/sysctl.d/00-defaults.conf

@jrha
Copy link
Member

jrha commented Mar 23, 2016

This was discussed briefly at the 21st workshop and agreed as a good idea.

@wdpypere
Copy link
Contributor

for reference, on EL7 there is a symlink:

[root@node sysctl.d]# ls -l
lrwxrwxrwx 1 root root 14 Jan 29 09:03 99-sysctl.conf -> ../sysctl.conf

@jouvin
Copy link
Contributor

jouvin commented Apr 25, 2018

According to discussion at April 2018 workshop, it seems easy to fix on EL7 by adding a Quattor-generated file as 991 or something that will be read after 99. It seems more difficult to find a clean solution on EL6 where /etc/sysctl.cong is always read last.... May be ensure that the component is writing to this file, replacing the value if the key exists already.
BTW, we need a schema refinement to allow to say that the value specified should be a final value (overriding any default, including the system ones) or a default one that can be overriden by /etc/sysctl.conf.

@stdweird
Copy link
Member

i want to add here that when /etc/sysctl.conf is managed by the compoent, it works as a fileeditor; so you can modify vendor values in el6 (but probably only once).

@ned21
Copy link
Contributor Author

ned21 commented Oct 29, 2018

Since there's now a workaround for RH7 (use a file called 991-something), and in practice it's never really caught us out on RH5 & 6, closing this out.

@ned21 ned21 closed this as completed Oct 29, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

5 participants