Bug 1798183
Summary: | RFE: support post-loaded profile | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 8 | Reporter: | Rich Megginson <rmeggins> |
Component: | tuned | Assignee: | Jaroslav Škarvada <jskarvad> |
Status: | CLOSED ERRATA | QA Contact: | Robin Hack <rhack> |
Severity: | medium | Docs Contact: | |
Priority: | high | ||
Version: | 8.4 | CC: | jeder, jskarvad, rhack, thozza |
Target Milestone: | rc | Keywords: | FutureFeature, Patch, TestCaseProvided, Triaged, Upstream |
Target Release: | 8.0 | Flags: | pm-rhel:
mirror+
|
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | tuned-2.14.0-0.1.rc1.el8 | Doc Type: | No Doc Update |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2020-11-04 02:03:07 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: | 1817044, 1825061 |
Description
Rich Megginson
2020-02-04 18:27:06 UTC
Are you OK with the /etc/tuned-main.conf option like, e.g.: preload_profile = your_preloaded_profile or is special file better for you? In this case we could also add option to /etc/tuned-main.conf, e.g.: preload_profile_file = /etc/tuned/pre-loaded-profile (In reply to Jaroslav Škarvada from comment #1) > Are you OK with the /etc/tuned-main.conf option like, e.g.: > preload_profile = your_preloaded_profile It depends. Is the /etc/tuned-main.conf in a strict INI file format? If so, I can use the ansible ini module. If not, then I would have to resort to using less optimal solutions such as the lineinfile module with a regexp. > > or is special file better for you? In this case we could also add option to > /etc/tuned-main.conf, e.g.: > preload_profile_file = /etc/tuned/pre-loaded-profile see above (In reply to Rich Megginson from comment #2) > (In reply to Jaroslav Škarvada from comment #1) > > Are you OK with the /etc/tuned-main.conf option like, e.g.: > > preload_profile = your_preloaded_profile > > It depends. Is the /etc/tuned-main.conf in a strict INI file format? If > so, I can use the ansible ini module. If not, then I would have to resort > to using less optimal solutions such as the lineinfile module with a regexp. > Yes, it's strict ini file, i.e. no special features, just 'option = value', whitespaces and comments. (In reply to Jaroslav Škarvada from comment #3) > (In reply to Rich Megginson from comment #2) > > (In reply to Jaroslav Škarvada from comment #1) > > > Are you OK with the /etc/tuned-main.conf option like, e.g.: > > > preload_profile = your_preloaded_profile > > > > It depends. Is the /etc/tuned-main.conf in a strict INI file format? If > > so, I can use the ansible ini module. If not, then I would have to resort > > to using less optimal solutions such as the lineinfile module with a regexp. > > > Yes, it's strict ini file, i.e. no special features, just 'option = value', > whitespaces and comments. Ok. Then yes, the implementation can be the addition of a new parameter to tuned-main.conf: preload_profile = your_preloaded_profile Thanks! (In reply to Jaroslav Škarvada from comment #1) > Are you OK with the /etc/tuned-main.conf option like, e.g.: > preload_profile = your_preloaded_profile > > or is special file better for you? In this case we could also add option to > /etc/tuned-main.conf, e.g.: > preload_profile_file = /etc/tuned/pre-loaded-profile What is the reason to do it this way? It seems like we're complicating things unnecessarily. And given that the preset profile is stored in a separate file, hiding the preloaded profile in tuned-main.conf might be considered inconsistent and a hard-to-discover easter egg. Personally, I'd go with the original proposal to store it in something like /etc/tuned/pre-loaded-profile. (In reply to Ondřej Lysoněk from comment #5) > (In reply to Jaroslav Škarvada from comment #1) > > Are you OK with the /etc/tuned-main.conf option like, e.g.: > > preload_profile = your_preloaded_profile > > > > or is special file better for you? In this case we could also add option to > > /etc/tuned-main.conf, e.g.: > > preload_profile_file = /etc/tuned/pre-loaded-profile > > What is the reason to do it this way? It seems like we're complicating > things unnecessarily. And given that the preset profile is stored in a > separate file, hiding the preloaded profile in tuned-main.conf might be > considered inconsistent and a hard-to-discover easter egg. > > Personally, I'd go with the original proposal to store it in something like > /etc/tuned/pre-loaded-profile. It doesn't matter to me - either way works fine with Ansible. Do whatever you guys think is the right thing. It turns out that Rich needs the "pre-loaded profile" to be applied last, so that other profiles don't override its settings. So in my view, this is more like a "post-loaded profile". Upstream PR: https://github.com/redhat-performance/tuned/pull/272 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 (tuned bug fix and enhancement update), 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:4559 |