Skip to content

OCPBUGS-90521: fix(nodepool): don't explicitly set the MinReadySeconds default - #8783

Closed
sdminonne wants to merge 1 commit into
openshift:release-4.22from
sdminonne:OCPBUGS-90521
Closed

OCPBUGS-90521: fix(nodepool): don't explicitly set the MinReadySeconds default#8783
sdminonne wants to merge 1 commit into
openshift:release-4.22from
sdminonne:OCPBUGS-90521

Conversation

@sdminonne

Copy link
Copy Markdown
Contributor

Summary

Problem

The e2e-aws-upgrade-hypershift-operator test on release-4.22 has been 100% broken for all PRs since PR #8594 merged to main on June 3.

The upgrade test installs the pre-upgrade operator from hypershift/hypershift-operator:latest (built from main), which after #8594 no longer sets MinReadySeconds on MachineDeployments. It then upgrades to the release-4.22 operator, which unconditionally sets MinReadySeconds = *int32(0). This causes a spec change (nil*int32(0)) on every MachineDeployment, bumping .metadata.generation from 1 to 2, and failing the upgrade invariant check:

Pre-upgrade and post-upgrade MachineDeployment generations should match
Expected <int64>: 2 to equal <int64>: 1

Fix

Remove the explicit MinReadySeconds defaulting from both reconcileMachineDeployment() and reconcileMachineSet() in capi.go. The CAPI controller applies its own defaults, making the explicit setting unnecessary — as recognized by the removal in #8594 on main.

Test plan

  • e2e-aws-upgrade-hypershift-operator should pass on release-4.22
  • Unit tests pass (go test ./hypershift-operator/controllers/nodepool/...)

References

🤖 Generated with Claude Code

The upgrade test on release-4.22 has been 100% broken since PR openshift#8594
(CAPI 1.11 upgrade) merged to main. The pre-upgrade operator image
(hypershift/hypershift-operator:latest, built from main) no longer
sets MinReadySeconds on MachineDeployments, but the post-upgrade
release-4.22 operator unconditionally sets it to *int32(0). This
causes a spec change (nil -> 0) on every MachineDeployment during
reconciliation, bumping the generation and failing the upgrade
invariant check.

Remove the explicit MinReadySeconds defaulting from both
MachineDeployment and MachineSet reconciliation, matching what openshift#8594
already did on main. The CAPI controller applies its own defaults,
making the explicit setting unnecessary.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@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: LGTM mode

@openshift-ci-robot openshift-ci-robot added jira/severity-important Referenced Jira bug's severity is important for the branch this PR is targeting. jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. jira/invalid-bug Indicates that a referenced Jira bug is invalid for the branch this PR is targeting. labels Jun 19, 2026
@openshift-ci-robot

Copy link
Copy Markdown

@sdminonne: This pull request references Jira Issue OCPBUGS-90521, which is invalid:

  • release note text must be set and not match the template OR release note type must be set to "Release Note Not Required". For more information you can reference the OpenShift Bug Process.
  • expected Jira Issue OCPBUGS-90521 to depend on a bug targeting a version in 5.0.0 and in one of the following states: MODIFIED, ON_QA, VERIFIED, but no dependents were found

Comment /jira refresh to re-evaluate validity if changes to the Jira bug are made, or edit the title of this pull request to link to a different bug.

The bug has been updated to refer to the pull request using the external bug tracker.

Details

In response to this:

Summary

Problem

The e2e-aws-upgrade-hypershift-operator test on release-4.22 has been 100% broken for all PRs since PR #8594 merged to main on June 3.

The upgrade test installs the pre-upgrade operator from hypershift/hypershift-operator:latest (built from main), which after #8594 no longer sets MinReadySeconds on MachineDeployments. It then upgrades to the release-4.22 operator, which unconditionally sets MinReadySeconds = *int32(0). This causes a spec change (nil*int32(0)) on every MachineDeployment, bumping .metadata.generation from 1 to 2, and failing the upgrade invariant check:

Pre-upgrade and post-upgrade MachineDeployment generations should match
Expected <int64>: 2 to equal <int64>: 1

Fix

Remove the explicit MinReadySeconds defaulting from both reconcileMachineDeployment() and reconcileMachineSet() in capi.go. The CAPI controller applies its own defaults, making the explicit setting unnecessary — as recognized by the removal in #8594 on main.

Test plan

  • e2e-aws-upgrade-hypershift-operator should pass on release-4.22
  • Unit tests pass (go test ./hypershift-operator/controllers/nodepool/...)

References

🤖 Generated with Claude Code

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.

@coderabbitai

coderabbitai Bot commented Jun 19, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

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

Review profile: CHILL

Plan: Enterprise

Run ID: 384a6857-37a0-4632-b504-b892c3dd8dd6

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

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

@openshift-ci
openshift-ci Bot requested review from cblecker and enxebre June 19, 2026 12:45
@openshift-ci openshift-ci Bot added area/hypershift-operator Indicates the PR includes changes for the hypershift operator and API - outside an OCP release and removed do-not-merge/needs-area labels Jun 19, 2026
@sdminonne

Copy link
Copy Markdown
Contributor Author

/cc @jparrill

@openshift-ci
openshift-ci Bot requested a review from jparrill June 19, 2026 12:46
@sdminonne

Copy link
Copy Markdown
Contributor Author

/uncc @cblecker

@openshift-ci
openshift-ci Bot removed the request for review from cblecker June 19, 2026 12:46
@openshift-ci

openshift-ci Bot commented Jun 19, 2026

Copy link
Copy Markdown
Contributor

@sdminonne: all tests passed!

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.

@codecov

codecov Bot commented Jun 19, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 35.44%. Comparing base (5cb8735) to head (7926dad).
⚠️ Report is 2 commits behind head on release-4.22.

Additional details and impacted files
@@               Coverage Diff                @@
##           release-4.22    #8783      +/-   ##
================================================
- Coverage         35.45%   35.44%   -0.01%     
================================================
  Files               767      767              
  Lines             93724    93718       -6     
================================================
- Hits              33226    33220       -6     
  Misses            57785    57785              
  Partials           2713     2713              
Files with missing lines Coverage Δ
hypershift-operator/controllers/nodepool/capi.go 68.70% <ø> (-0.18%) ⬇️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@jparrill

Copy link
Copy Markdown
Contributor

/approve

@openshift-ci

openshift-ci Bot commented Jun 19, 2026

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: jparrill, sdminonne

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

The pull request process is described 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 added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jun 19, 2026
@sdminonne

Copy link
Copy Markdown
Contributor Author

/pipeline-required

@enxebre

enxebre commented Jun 22, 2026

Copy link
Copy Markdown
Member

/hold

@openshift-ci openshift-ci Bot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Jun 22, 2026
@celebdor celebdor added jira/valid-bug Indicates that a referenced Jira bug is valid for the branch this PR is targeting. and removed jira/invalid-bug Indicates that a referenced Jira bug is invalid for the branch this PR is targeting. labels Jun 22, 2026
@sdminonne sdminonne closed this Jun 30, 2026
@openshift-ci-robot

Copy link
Copy Markdown

@sdminonne: This pull request references Jira Issue OCPBUGS-90521. The bug has been updated to no longer refer to the pull request using the external bug tracker. All external bug links have been closed. The bug has been moved to the NEW state.

Details

In response to this:

Summary

Problem

The e2e-aws-upgrade-hypershift-operator test on release-4.22 has been 100% broken for all PRs since PR #8594 merged to main on June 3.

The upgrade test installs the pre-upgrade operator from hypershift/hypershift-operator:latest (built from main), which after #8594 no longer sets MinReadySeconds on MachineDeployments. It then upgrades to the release-4.22 operator, which unconditionally sets MinReadySeconds = *int32(0). This causes a spec change (nil*int32(0)) on every MachineDeployment, bumping .metadata.generation from 1 to 2, and failing the upgrade invariant check:

Pre-upgrade and post-upgrade MachineDeployment generations should match
Expected <int64>: 2 to equal <int64>: 1

Fix

Remove the explicit MinReadySeconds defaulting from both reconcileMachineDeployment() and reconcileMachineSet() in capi.go. The CAPI controller applies its own defaults, making the explicit setting unnecessary — as recognized by the removal in #8594 on main.

Test plan

  • e2e-aws-upgrade-hypershift-operator should pass on release-4.22
  • Unit tests pass (go test ./hypershift-operator/controllers/nodepool/...)

References

🤖 Generated with Claude Code

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.

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

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. area/hypershift-operator Indicates the PR includes changes for the hypershift operator and API - outside an OCP release do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. jira/severity-important Referenced Jira bug's severity is important for the branch this PR is targeting. jira/valid-bug Indicates that a referenced Jira bug is valid for the branch this PR is targeting. jira/valid-reference Indicates that this PR references a valid Jira ticket of any type.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants