E2E: Remove ovs-vswitchd from platform services#1526
Conversation
ovs-vswitchd will always use all the online cpus and will not be restricted to reserved cpus even on schedulabel control plane nodes with workload partition enabled Signed-off-by: Niranjan M.R <mniranja@redhat.com>
WalkthroughThe control-plane scheduling test modifies the set of platform services validated for CPU affinity by removing ChangesPlatform Services CPU Affinity Validation
🎯 2 (Simple) | ⏱️ ~8 minutes 🚥 Pre-merge checks | ✅ 15✅ Passed checks (15 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 golangci-lint (2.12.2)level=error msg="Running error: context loading failed: failed to load packages: failed to load packages: failed to load with go/packages: err: exit status 1: stderr: go: inconsistent vendoring in :\n\tgithub.com/RHsyseng/operator-utils@v1.4.13: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt\n\tgithub.com/coreos/go-systemd@v0.0.0-20191104093116-d3cd4ed1dbcf: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt\n\tgithub.com/coreos/ignition@v0.35.0: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt\n\tgithub.com/coreos/ignition/v2@v2.26.0: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt\n\tgithub.com/docker/go-units@v0.5.0: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt\n\tgithub.com/go-logr/stdr@v1.2.2: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt\n\tgithub.com/google/go-cmp@v0.7.0 ... [truncated 19340 characters] ... is replaced in go.mod, but not marked as replaced in vendor/modules.txt\n\tk8s.io/legacy-cloud-providers: is replaced in go.mod, but not marked as replaced in vendor/modules.txt\n\tk8s.io/metrics: is replaced in go.mod, but not marked as replaced in vendor/modules.txt\n\tk8s.io/mount-utils: is replaced in go.mod, but not marked as replaced in vendor/modules.txt\n\tk8s.io/pod-security-admission: is replaced in go.mod, but not marked as replaced in vendor/modules.txt\n\tk8s.io/sample-apiserver: is replaced in go.mod, but not marked as replaced in vendor/modules.txt\n\tgithub.com/onsi/ginkgo/v2: is replaced in go.mod, but not marked as replaced in vendor/modules.txt\n\n\tTo ignore the vendor directory, use -mod=readonly or -mod=mod.\n\tTo sync the vendor directory, run:\n\t\tgo mod vendor\n" Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: mrniranjan The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
There was a problem hiding this comment.
Actionable comments posted: 0
🧹 Nitpick comments (1)
test/e2e/performanceprofile/functests/1_performance/cpu_management.go (1)
990-990: ⚡ Quick winDocument why ovs-vswitchd is excluded from platform services validation.
The exclusion of
ovs-vswitchdfrom the platform services list should be documented with an inline comment. While the PR description explains that ovs-vswitchd always uses all online CPUs and cannot be restricted to reserved CPUs, this context is not preserved in the code. Future maintainers reviewing this test may question why this service is excluded or attempt to add it back.📝 Suggested documentation
- platformServices = []string{"systemd", "crio", "kubelet"} + // ovs-vswitchd is intentionally excluded because it always uses all online CPUs + // and cannot be restricted to reserved CPUs, even on schedulable control plane + // nodes with workload partitioning enabled. + platformServices = []string{"systemd", "crio", "kubelet"}🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@test/e2e/performanceprofile/functests/1_performance/cpu_management.go` at line 990, Add an inline comment explaining why "ovs-vswitchd" is omitted from the platformServices list: update the declaration of platformServices (the variable holding []string{"systemd", "crio", "kubelet"}) to include a brief comment that ovs-vswitchd is intentionally excluded because it always uses all online CPUs and cannot be limited to reserved CPUs, so validating it against reserved-CPU rules would be incorrect; keep the comment concise and placed immediately above or inline with the platformServices variable to preserve context for future maintainers.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Nitpick comments:
In `@test/e2e/performanceprofile/functests/1_performance/cpu_management.go`:
- Line 990: Add an inline comment explaining why "ovs-vswitchd" is omitted from
the platformServices list: update the declaration of platformServices (the
variable holding []string{"systemd", "crio", "kubelet"}) to include a brief
comment that ovs-vswitchd is intentionally excluded because it always uses all
online CPUs and cannot be limited to reserved CPUs, so validating it against
reserved-CPU rules would be incorrect; keep the comment concise and placed
immediately above or inline with the platformServices variable to preserve
context for future maintainers.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository: openshift/coderabbit/.coderabbit.yaml
Review profile: CHILL
Plan: Enterprise
Run ID: d2b84e2b-23ab-46b4-aac8-93500aa5d83d
📒 Files selected for processing (1)
test/e2e/performanceprofile/functests/1_performance/cpu_management.go
|
@mrniranjan: all tests passed! 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. |
ovs-vswitchd will always use all the online cpus
and will not be restricted to reserved cpus even
on schedulabel control plane nodes with workload partition enabled
Summary by CodeRabbit