Skip to content

CMP-4444: Add rule kubevirt-vcpu-metrics-enabled (CIS OCP-Virt 6.2) - #14961

Closed
abushkin-redhat wants to merge 1 commit into
ComplianceAsCode:masterfrom
abushkin-redhat:cmp-4444
Closed

CMP-4444: Add rule kubevirt-vcpu-metrics-enabled (CIS OCP-Virt 6.2)#14961
abushkin-redhat wants to merge 1 commit into
ComplianceAsCode:masterfrom
abushkin-redhat:cmp-4444

Conversation

@abushkin-redhat

Copy link
Copy Markdown
Collaborator

Summary

  • Adds OpenSCAP node rule kubevirt-vcpu-metrics-enabled checking that
    schedstats=enable is present in the kernel command line and boot loader entries
  • Uses the coreos_kernel_option template which checks both /proc/cmdline
    and /boot/loader/entries/ostree-*.conf
  • Adds the rule to the cis-vm-extension-node profile selections

Depends on

Test plan

Validated on a live OCP cluster (OCP 4.22, RHEL 10, TechPreviewNoUpgrade):

  • schedstats=enable absent → FAIL
  • schedstats=enable present (via MachineConfig) → PASS

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.
@openshift-ci

openshift-ci Bot commented Aug 6, 2026

Copy link
Copy Markdown

@abushkin-redhat: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/e2e-aws-openshift-node-compliance 8b19a50 link false /test e2e-aws-openshift-node-compliance

Full PR test history. Your PR dashboard.

Details

Instructions 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.

@openshift-ci openshift-ci Bot added the needs-rebase Used by openshift-ci bot. label Aug 9, 2026
@openshift-ci

openshift-ci Bot commented Aug 9, 2026

Copy link
Copy Markdown

PR needs rebase.

Details

Instructions 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.

@Vincent056

Copy link
Copy Markdown
Contributor

Closing: superseded by #14980 (merged), which carries the identical rule content - validated with a datastream build + oscap-chroot truth table and live-cluster runs in both stock and schedstats-enabled states. Thanks for the original work here - CMP-4444 is delivered.

@Vincent056 Vincent056 closed this Aug 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs-rebase Used by openshift-ci bot.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants