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

[RHELC-1200] Add OVERRIDABLE result to tainted kernel module check #1015

Merged
merged 3 commits into from
Jan 26, 2024

Conversation

pr-watson
Copy link
Contributor

@pr-watson pr-watson commented Dec 12, 2023

This PR adds an overridable result to the tainted kernel module check allowing users to override in the event of a tainted kernel module detected on the system. Additionally improves the message to the user to not alarm them along with some documentation explaining what a tainted kernel module is.

Jira Issues: RHELC-1200

Checklist

  • PR has been tested manually in a VM (either author or reviewer)
  • Jira issue has been made public if possible
  • [RHELC-] is part of the PR title
  • GitHub label has been added to help with Release notes
  • PR title explains the change from the user's point of view
  • Code and tests are documented properly
  • The commits are squashed to as few commits as possible (without losing data)
  • When merged: Jira issue has been updated to Release Pending if relevant

@pr-watson pr-watson added kind/feature New feature or request tests/sanity PR ready to run the sanity test suit. Equivalent to `/packit test --labels sanity`. labels Dec 12, 2023
@has-bot
Copy link
Member

has-bot commented Dec 12, 2023

/packit test --labels sanity


@oamg/conversions-qe please review results and provide ack.

Copy link

codecov bot commented Dec 12, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (e67ab3c) 94.32% compared to head (b969566) 94.33%.
Report is 7 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1015   +/-   ##
=======================================
  Coverage   94.32%   94.33%           
=======================================
  Files          47       47           
  Lines        4549     4557    +8     
  Branches      810      811    +1     
=======================================
+ Hits         4291     4299    +8     
  Misses        182      182           
  Partials       76       76           
Flag Coverage Δ
centos-linux-7 89.52% <100.00%> (+0.01%) ⬆️
centos-linux-8 90.52% <100.00%> (+0.01%) ⬆️
centos-linux-9 90.58% <100.00%> (+0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@pr-watson pr-watson requested a review from r0x0d January 17, 2024 19:41
Copy link
Member

@Venefilyn Venefilyn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems good to me as long as it's been tested in a VM

convert2rhel/actions/system_checks/tainted_kmods.py Outdated Show resolved Hide resolved
@Venefilyn
Copy link
Member

/packit test --labels sanity

Comment on lines 31 to 33
LINK_KMODS_RH_POLICY = "https://access.redhat.com/third-party-software-support"
LINK_PREVENT_KMODS_FROM_LOADING = "https://access.redhat.com/solutions/41278"
LINK_TAINTED_KMOD_DOCS = "https://docs.kernel.org/admin-guide/tainted-kernels.html"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not access those constants from the tainted_kmods directly?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i'll add this

Copy link
Member

@r0x0d r0x0d left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. As @SpyTec mentioned, after testing in a VM it should be good to go.

@pr-watson pr-watson force-pushed the override_tainted_kmods branch from 35c3da3 to a21d8c6 Compare January 22, 2024 19:26
pr-watson and others added 2 commits January 22, 2024 14:27
@pr-watson pr-watson force-pushed the override_tainted_kmods branch from 8045e3f to b969566 Compare January 22, 2024 21:29
@pr-watson
Copy link
Contributor Author

PR has been tested in a VM

@Venefilyn
Copy link
Member

/packit test --labels sanity

@Venefilyn Venefilyn merged commit 0309446 into oamg:main Jan 26, 2024
31 of 62 checks passed
@Venefilyn Venefilyn mentioned this pull request Feb 22, 2024
@bocekm
Copy link
Member

bocekm commented Aug 13, 2024

The new CONVERT2RHEL_TAINTED_KERNEL_MODULE_CHECK_SKIP is missing at https://github.com/oamg/convert2rhel/wiki/Environment-variables. I'm adding it now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature New feature or request merge-after-tests-ok tests/sanity PR ready to run the sanity test suit. Equivalent to `/packit test --labels sanity`.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants