OCPBUGS-81737: Dynamically find worker-generated-kubelet MC name to support different platforms#30967
OCPBUGS-81737: Dynamically find worker-generated-kubelet MC name to support different platforms#30967BhargaviGudi wants to merge 1 commit intoopenshift:mainfrom
Conversation
…upport different platforms
|
@BhargaviGudi: This pull request references Jira Issue OCPBUGS-81737, which is invalid:
Comment The bug has been updated to refer to the pull request using the external bug tracker. DetailsIn response to this:
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 openshift-eng/jira-lifecycle-plugin repository. |
|
Important Review skippedAuto reviews are limited based on label configuration. 🚫 Review skipped — only excluded labels are configured. (1)
Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
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 |
|
Pipeline controller notification For optional jobs, comment This repository is configured in: automatic mode |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: BhargaviGudi 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 |
|
/jira refresh |
|
@BhargaviGudi: This pull request references Jira Issue OCPBUGS-81737, which is valid. The bug has been moved to the POST state. 3 validation(s) were run on this bug
DetailsIn response to this:
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 openshift-eng/jira-lifecycle-plugin repository. |
|
@BhargaviGudi: This pull request references Jira Issue OCPBUGS-81737, which is valid. 3 validation(s) were run on this bug
DetailsIn response to this:
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 openshift-eng/jira-lifecycle-plugin repository. |
|
/payload-job periodic-ci-openshift-release-main-ci-4.22-upgrade-from-stable-4.21-e2e-azure-ovn-upgrade |
|
@BhargaviGudi: trigger 1 job(s) for the /payload-(with-prs|job|aggregate|job-with-prs|aggregate-with-prs) command
See details on https://pr-payload-tests.ci.openshift.org/runs/ci/dfa1bac0-3265-11f1-8e73-15c5620d4c01-0 |
|
Scheduling required tests: |
|
@BhargaviGudi: This pull request references Jira Issue OCPBUGS-81737, which is valid. 3 validation(s) were run on this bug
DetailsIn response to this:
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 openshift-eng/jira-lifecycle-plugin repository. |
|
/test e2e-gcp-ovn |
|
@BhargaviGudi: The following tests 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. |
|
/test e2e-gcp-ovn |
|
@cpmeadors and @ngopalak-redhat Could you please help to review this PR? Thanks |
|
/verified by @BhargaviGudi |
|
@BhargaviGudi: This PR has been marked as verified by DetailsIn response to this:
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 openshift-eng/jira-lifecycle-plugin repository. |
Bug: https://redhat.atlassian.net/browse/OCPBUGS-81737
Summary
Problem
The test OCP-86395 was hardcoded to use 99-worker-generated-kubelet as the MachineConfig name. However, the prefix varies by platform/ocp version:
Azure: 98-worker-generated-kubelet
This caused the test to fail on Azure clusters with "MachineConfig not found" error.
Solution
Added a helper function getWorkerGeneratedKubeletMC that lists all MachineConfigs and finds the one containing worker-generated-kubelet in its name. This works across all platforms regardless of the numeric prefix.
Test:
[Jira:Node][sig-node] Node non-cnv swap configuration should reject user override of swap settings via KubeletConfig API [OCP-86395] [Lifecycle:informing]test passed on AWS and AZURE 4.22.0-0.nightly-2026-04-06-051707periodic-ci-openshift-release-main-ci-4.22-upgrade-from-stable-4.21-e2e-azure-ovn-upgrade Passed