Bug 1759597
| Summary: | Settings in /usr/lib/sysctl.d take precedence over settings in tuned profiles in /etc/tuned. | |||
|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 8 | Reporter: | Jiří Mencák <jmencak> | |
| Component: | tuned | Assignee: | Jaroslav Škarvada <jskarvad> | |
| Status: | CLOSED ERRATA | QA Contact: | Robin Hack <rhack> | |
| Severity: | medium | Docs Contact: | ||
| Priority: | medium | |||
| Version: | 8.0 | CC: | jeder, josorior, jskarvad, olysonek, psklenar, rhack, thozza | |
| Target Milestone: | rc | Keywords: | AutoVerified, Patch, Upstream | |
| Target Release: | 8.0 | Flags: | pm-rhel:
mirror+
|
|
| Hardware: | Unspecified | |||
| OS: | Unspecified | |||
| Whiteboard: | ||||
| Fixed In Version: | tuned-2.13.0-0.1.rc1.el8 | Doc Type: | No Doc Update | |
| Doc Text: | Story Points: | --- | ||
| Clone Of: | ||||
| : | 1776149 (view as bug list) | Environment: | ||
| Last Closed: | 2020-04-28 16:59:29 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: | ||
| Embargoed: | ||||
| Bug Depends On: | ||||
| Bug Blocks: | 1776149 | |||
|
Description
Jiří Mencák
2019-10-08 15:38:30 UTC
Actually I think I see the problem looking at the debug now... /usr/lib/sysctl.d/10-default-yama-scope.conf Why would /usr/lib/sysctl.d have a precedence over a profile in /etc/tuned ? No, it's not caused by that pull request. This is old behaviour, introduced in commit https://github.com/redhat-performance/tuned/commit/d1986f20f9913cc2f. You can set 'reapply_sysctl=0' to override the behaviour. Perhaps it would be nice if it was possible to override it directly in the profile as well. I'm not sure what is the exact reason for this behaviour. Perhaps something can be digged up in the bug linked from the commit - bug#1302953. (In reply to Ondřej Lysoněk from comment #2) > No, it's not caused by that pull request. This is old behaviour, introduced > in commit > https://github.com/redhat-performance/tuned/commit/d1986f20f9913cc2f. > > You can set 'reapply_sysctl=0' to override the behaviour. Perhaps it would > be nice if it was possible to override it directly in the profile as well. > > I'm not sure what is the exact reason for this behaviour. Perhaps something > can be digged up in the bug linked from the commit - bug#1302953. Right, BZ1302953 is a great find! So are we basically saying this is a feature? While I agree that we probably want the default behaviour reapply_sysctl=1 for /etc/sysctl.conf and /etc/sysctl.d/*.conf, I'm not quite convinced profiles in /etc/tuned/ should be overriden by sysctl.conf files (such as /usr/lib/sysctl.d/10-default-yama-scope.conf) owned by system packages even when reapply_sysctl=1. Perhaps the logic can stay, but exclude /usr/lib/sysctl.d/*.conf when reapply_sysctl=1? Thoughts? Upstream PR: https://github.com/redhat-performance/tuned/pull/226 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://access.redhat.com/errata/RHBA-2020:1883 |