CMP-4444: Add rule kubevirt-vcpu-metrics-enabled (CIS OCP-Virt 6.2) - #14980
Conversation
OpenSCAP node rule using the coreos_kernel_option template to check that schedstats=enable is present in the kernel command line (/proc/cmdline) and boot loader entries. Enables vCPU metrics for monitoring virtual CPU consumption on OpenShift Virtualization nodes. Validated on a live cluster: schedstats=enable absent = FAIL, schedstats=enable present (via MachineConfig) = PASS.
|
Hi @taimurhafeez. Thanks for your PR. I'm waiting for a ComplianceAsCode member to verify that this patch is reasonable to test. If it is, they should reply with Tip We noticed you've done this a few times! Consider joining the org to skip this step and gain Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
|
/lgtm |
|
/ok-to-test |
Vincent056
left a comment
There was a problem hiding this comment.
Rule content is byte-identical to #14961, which I validated in depth (built datastream + oscap-chroot truth table, 5/5) - and the live before/after results here match.
/approve
|
@taimurhafeez: The following test failed, say
Full PR test history. Your PR dashboard. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
Supersedes #14961
Tested on OCP 4.22
Result when there is no schedstats=enable
Result with schedstats=enable