Skip to content

Add no-reboot assertion to kubelet TLS upgrade test - #31547

Open
machine424 wants to merge 1 commit into
openshift:mainfrom
machine424:tls-no-reboot
Open

Add no-reboot assertion to kubelet TLS upgrade test#31547
machine424 wants to merge 1 commit into
openshift:mainfrom
machine424:tls-no-reboot

Conversation

@machine424

@machine424 machine424 commented Aug 21, 2026

Copy link
Copy Markdown
Contributor

The TLS drop-in change (openshift/machine-config-operator#6426) makes KubeletConfig TLS profile changes trigger a kubelet restart instead of a full node reboot. Static pods with TLS args baked in their manifests (e.g. crio metrics proxy) are also recreated by kubelet. No drain occurs.

Assert that the node BootID remains unchanged after the MCP rollout completes.

Also move the test from [Disruptive] to [Serial] since the operation no longer reboots the node or drains workloads.

Summary by CodeRabbit

  • Tests
    • Updated kubelet TLS validation to ensure configuration changes do not reboot the node.
    • Improved test scheduling and status reporting to account for expected kubelet and static-pod restarts.

The TLS drop-in change (openshift/machine-config-operator#6426) makes
KubeletConfig TLS profile changes trigger a kubelet restart instead of
a full node reboot. Static pods with TLS args baked in their manifests
(e.g. crio metrics proxy) are also recreated by kubelet. No drain occurs.

Assert that the node BootID remains unchanged after the MCP rollout
completes.

Also move the test from [Disruptive] to [Serial] since the operation no
longer reboots the node or drains workloads.
@openshift-merge-bot

Copy link
Copy Markdown
Contributor

Pipeline controller notification
This repo is configured to use the pipeline controller. Second-stage tests will be triggered either automatically or after lgtm label is added, depending on the repository configuration. The pipeline controller will automatically detect which contexts are required and will utilize /test Prow commands to trigger the second stage.

For optional jobs, comment /test ? to see a list of all defined jobs. To trigger manually all jobs from second stage use /pipeline required command.

This repository is configured in: automatic mode

// MachineConfigPool containing a single worker node.
// [Serial] because the MCP rollout restarts kubelet and static pods whose
// manifests embed TLS settings.
var _ = g.Describe("[sig-node][Serial] Kubelet TLS configuration", func() {

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@coderabbitai

coderabbitai Bot commented Aug 21, 2026

Copy link
Copy Markdown

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository YAML (base), Central YAML (inherited)

Review profile: CHILL

Plan: Enterprise

Run ID: 540a00fe-65d1-473d-894c-a6b2a25cf5cb

📥 Commits

Reviewing files that changed from the base of the PR and between 6e93454 and 780cc13.

📒 Files selected for processing (1)
  • test/extended/node/kubeletconfig_tls.go

Included review availability: Your plan provides up to 12 included reviews per hour; 11 remain after this review.


Walkthrough

The kubelet TLS test now runs serially, records the node BootID before configuration, and verifies that the BootID remains unchanged after the rollout.

Changes

Kubelet TLS validation

Layer / File(s) Summary
TLS rollout reboot check
test/extended/node/kubeletconfig_tls.go
The test metadata documents kubelet and static-pod restarts during MCP rollout. The test records the initial BootID and asserts that the TLS upgrade completes without a node reboot.

Estimated code review effort: 3 (Moderate) | ~15 minutes

Merge Risk: ⚪ Minimal · up to 780cc

This localized test change adds coverage for the no-reboot behavior and has no actionable merge-blocking risk beyond completing normal repository checks.


Caution

Pre-merge checks failed

Please resolve all errors before merging. Addressing warnings is optional.

  • Ignore

❌ Failed checks (1 error, 1 warning)

Check name Status Explanation Resolution
No-Sensitive-Data-In-Logs ❌ Error The added framework.Logf emits testNode (the internal worker node name) and originalBootID; the new assertion also includes both BootIDs in failure output. Do not log node names or BootIDs. Use identifier-free messages, such as a boolean unchanged result and a generic reboot assertion message.
Test Structure And Quality ⚠️ Warning The PR adds o.Expect(err).NotTo(o.HaveOccurred()) after the BootID node Get without a failure message; this violates the assertion-message requirement. Add a diagnostic message, such as failed to record BootID for node %s, including the node name.
✅ Passed checks (13 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and concisely describes the main change: adding a no-reboot assertion to the kubelet TLS upgrade test.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 1 files.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Stable And Deterministic Test Names ✅ Passed The diff changes only static Ginkgo metadata and adds static step text; the Describe and It titles contain no runtime node, namespace, timestamp, IP, UUID, or generated value.
Microshift Test Compatibility ✅ Passed The PR only modifies an existing test. Its MachineConfig API use remains protected by [apigroup:machineconfiguration.openshift.io], and the new BootID check uses the standard Node API.
Single Node Openshift (Sno) Test Compatibility ✅ Passed The existing test calls skipOnSingleNodeTopology before selecting a pure worker node; the PR only adds BootID checks and changes labels, so it introduces no unguarded SNO multi-node assumption.
Topology-Aware Scheduling Compatibility ✅ Passed The diff changes only a node test's Ginkgo labels, BootID checks, and log text; it adds no manifests, operator/controller code, replicas, affinity, selectors, tolerations, or PDBs.
Ote Binary Stdout Contract ✅ Passed The diff changes only Describe metadata and code inside g.It; it introduces no main/suite-setup stdout writes, fmt.Print, klog, or os.Stdout use.
Ipv6 And Disconnected Network Test Compatibility ✅ Passed The diff modifies an existing test only; added BootID reads and equality checks use cluster node API, with no IPv4 literals, URL construction, or external connectivity.
No-Weak-Crypto ✅ Passed The diff adds BootID capture and equality checks only; it introduces no MD5, SHA1, DES, RC4, Blowfish, ECB, custom crypto, or secret comparison.
Container-Privileges ✅ Passed The patch changes only a Go test: it adds BootID checks and changes test labels. It adds no privileged, host namespace, SYS_ADMIN, or container security settings.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Comment @coderabbitai help to get the list of available commands.

@openshift-ci
openshift-ci Bot requested review from cpmeadors and dgrisonnet August 21, 2026 13:41
@openshift-ci

openshift-ci Bot commented Aug 21, 2026

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: machine424
Once this PR has been reviewed and has the lgtm label, please assign mrunalp for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci

openshift-ci Bot commented Aug 21, 2026

Copy link
Copy Markdown
Contributor

@machine424: This PR was included in a payload test run from openshift/machine-config-operator#6426
trigger 0 job(s) for the /payload-(with-prs|job|aggregate|job-with-prs|aggregate-with-prs) command

@openshift-ci

openshift-ci Bot commented Aug 21, 2026

Copy link
Copy Markdown
Contributor

@machine424: This PR was included in a payload test run from openshift/machine-config-operator#6426
trigger 2 job(s) for the /payload-(with-prs|job|aggregate|job-with-prs|aggregate-with-prs) command

  • periodic-ci-openshift-release-main-nightly-5.1-e2e-aws-ovn-serial-1of2
  • periodic-ci-openshift-release-main-nightly-5.1-e2e-aws-ovn-serial-2of2

See details on https://pr-payload-tests.ci.openshift.org/runs/ci/1a942780-9d69-11f1-968a-0fb060ceecb8-0

@openshift-merge-bot

Copy link
Copy Markdown
Contributor

Scheduling required tests:
/test e2e-aws-csi
/test e2e-aws-ovn-fips
/test e2e-aws-ovn-microshift
/test e2e-aws-ovn-microshift-serial
/test e2e-aws-ovn-serial-1of2
/test e2e-aws-ovn-serial-2of2
/test e2e-gcp-csi
/test e2e-gcp-ovn
/test e2e-gcp-ovn-upgrade
/test e2e-metal-ipi-ovn-ipv6
/test e2e-vsphere-ovn
/test e2e-vsphere-ovn-upi

@openshift-trt

openshift-trt Bot commented Aug 21, 2026

Copy link
Copy Markdown

Risk analysis has seen new tests most likely introduced by this PR.
Please ensure that new tests meet guidelines for naming and stability.

New Test Risks for sha: 780cc13

Job Name New Test Risk
pull-ci-openshift-origin-main-e2e-aws-ovn-serial-1of2 High - "[sig-node][Serial] Kubelet TLS configuration should upgrade kubelet TLS from 1.2 to 1.3 on a custom pool [apigroup:machineconfiguration.openshift.io] [Suite:openshift/conformance/serial]" is a new test, was only seen in one job, and failed 1 time(s) against the current commit.

New tests seen in this PR at sha: 780cc13

  • "[sig-node][Serial] Kubelet TLS configuration should upgrade kubelet TLS from 1.2 to 1.3 on a custom pool [apigroup:machineconfiguration.openshift.io] [Suite:openshift/conformance/serial]" [Total: 1, Pass: 0, Fail: 1, Flake: 0]

@openshift-ci

openshift-ci Bot commented Aug 21, 2026

Copy link
Copy Markdown
Contributor

@machine424: 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-ovn-serial-1of2 780cc13 link true /test e2e-aws-ovn-serial-1of2

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.

@machine424

Copy link
Copy Markdown
Contributor Author

/testwith openshift/origin/main/e2e-aws-ovn-serial openshift/machine-config-operator#6426

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant