-
Notifications
You must be signed in to change notification settings - Fork 22
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
Add kernel_report module #58
Open
mprovenc
wants to merge
30
commits into
linux-system-roles:main
Choose a base branch
from
mprovenc:master
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Basic functionality of kernel settings report module
Move everything to python functionality instead of using shell scripts, change the format of the output to be more consistent with kernel_settings role input, filter out some known unstable values
Also convert unstable settings list to regex for more flexibility
Simple two host test to apply kernel settings output from kernel_report module to another machine
Assumes that two images will be specified as TEST_SUBJECTS: One CentOS image and one Fedora image
Taken from the tuned documentation and existing profiles, support added for more parameters which the kernel_settings role should allow users to change
Update apply_kernel_report_settings test
Add special logic so that if one of these values is read in as '0', the kernel_report plugin will ignore it and only populate one of the bytes/ratio fields
Tested with two Fedora machines sharing an identical release
[citest commit:ed44dbad1e58faef5a4ca4a2db2e6cdcd0691dfe] |
[citest pending] |
1 similar comment
[citest pending] |
[citest bad] |
[citest pending] |
3 similar comments
[citest pending] |
[citest pending] |
[citest pending] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
New kernel_report module to pull settings from an existing template machine and apply them to a number of target machines. This also required adding "device-specific" support to the existing kernel_settings system role so that, similar to tuneD, it allows for changing kernel settings that are associated with particular devices.
A few notes about the PR and outstanding items that will need to be reviewed before merging:
defaults/main.yml
, though the README should probably include it since this was significant formatting changesysctl
fields from Joe Mario that can be added to the list kernel_report module and tested (I will link a corresponding issue to this PR)