Skip to content

[release 4.20] OCPBUGS-77252: Calculate machine counts in MCP status from node properties#5692

Open
isabella-janssen wants to merge 1 commit intoopenshift:release-4.20from
isabella-janssen:ocpbugs-77055-420
Open

[release 4.20] OCPBUGS-77252: Calculate machine counts in MCP status from node properties#5692
isabella-janssen wants to merge 1 commit intoopenshift:release-4.20from
isabella-janssen:ocpbugs-77055-420

Conversation

@isabella-janssen
Copy link
Member

@isabella-janssen isabella-janssen commented Feb 24, 2026

- What I did
This updates the calculateStatus function used to to always calculate the machine counts in an MCP's status based on the associated nodes' properties instead of from MCN conditions. This allows the removal of the confusing if degradedMachineCount+readyMachineCount+unavailableMachineCount+updatingMachineCount != int32(len(nodes)) conditional found at

if degradedMachineCount+readyMachineCount+unavailableMachineCount+updatingMachineCount != int32(len(nodes)) {
.

This conditional was removed in 4.21 and MCN conditions were used to populate the updated and degraded machine counts as part of the ImageModeStatusReporting work. For <=4.20, it does not make sense to populate the machine counts with MCN conditions, when the node properties have the most predictable and consistent performance.

- How to verify it
The MCP machine counts should continue to transition throughout updates as previously expected & all existing tests should continue passing.

- Description for the changelog

@openshift-ci openshift-ci bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Feb 24, 2026
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Feb 24, 2026

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@isabella-janssen
Copy link
Member Author

/test all

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Feb 24, 2026
@isabella-janssen isabella-janssen changed the title (WIP) Calculate machine counts in MCP status from node properties Feb 24, 2026
@isabella-janssen
Copy link
Member Author

/jira cherrypick OCPBUGS-77055

@openshift-ci-robot
Copy link
Contributor

@isabella-janssen: Jira Issue OCPBUGS-77055 has been cloned as Jira Issue OCPBUGS-77252. Will retitle bug to link to clone.
/retitle OCPBUGS-77252: Calculate machine counts in MCP status from node properties

Details

In response to this:

/jira cherrypick OCPBUGS-77055

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.

@openshift-ci openshift-ci bot changed the title Calculate machine counts in MCP status from node properties OCPBUGS-77252: Calculate machine counts in MCP status from node properties Feb 24, 2026
@openshift-ci-robot openshift-ci-robot added 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 Feb 24, 2026
@openshift-ci-robot
Copy link
Contributor

@isabella-janssen: This pull request references Jira Issue OCPBUGS-77252, 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.

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:

- What I did
This updates the calculateStatus function used to to always calculate the machine counts in an MCP's status based on the associated nodes' properties instead of from MCN conditions. This allows the removal of the confusing if degradedMachineCount+readyMachineCount+unavailableMachineCount+updatingMachineCount != int32(len(nodes)) conditional found at

if degradedMachineCount+readyMachineCount+unavailableMachineCount+updatingMachineCount != int32(len(nodes)) {
.

This conditional was removed in 4.21 and MCN conditions were used to populate the updated and degraded machine counts as part of the ImageModeStatusReporting work. For <=4.20, it does not make sense to populate the machine counts with MCN conditions, when the node properties have the most predictable and consistent performance.

- How to verify it
The MCP machine counts should continue to transition throughout updates as previously expected & all existing tests should continue passing.

- Description for the changelog

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.

@isabella-janssen
Copy link
Member Author

/retitle [release 4.20] OCPBUGS-77252: Calculate machine counts in MCP status from node properties

@openshift-ci openshift-ci bot changed the title OCPBUGS-77252: Calculate machine counts in MCP status from node properties [release 4.20] OCPBUGS-77252: Calculate machine counts in MCP status from node properties Feb 24, 2026
@isabella-janssen
Copy link
Member Author

/jira refresh

@openshift-ci-robot openshift-ci-robot added the jira/valid-bug Indicates that a referenced Jira bug is valid for the branch this PR is targeting. label Feb 24, 2026
@openshift-ci-robot
Copy link
Contributor

@isabella-janssen: This pull request references Jira Issue OCPBUGS-77252, which is valid. The bug has been moved to the POST state.

7 validation(s) were run on this bug
  • bug is open, matching expected state (open)
  • bug target version (4.20.z) matches configured target version for branch (4.20.z)
  • bug is in the state New, which is one of the valid states (NEW, ASSIGNED, POST)
  • release note type set to "Release Note Not Required"
  • dependent bug Jira Issue OCPBUGS-77055 is in the state Closed (Done), which is one of the valid states (VERIFIED, RELEASE PENDING, CLOSED (ERRATA), CLOSED (CURRENT RELEASE), CLOSED (DONE), CLOSED (DONE-ERRATA))
  • dependent Jira Issue OCPBUGS-77055 targets the "4.21.z" version, which is one of the valid target versions: 4.21.0, 4.21.z
  • bug has dependents

Requesting review from QA contact:
/cc @sergiordlr

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

Details

In response to this:

/jira refresh

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.

@openshift-ci-robot openshift-ci-robot removed the jira/invalid-bug Indicates that a referenced Jira bug is invalid for the branch this PR is targeting. label Feb 24, 2026
@openshift-ci openshift-ci bot requested a review from sergiordlr February 24, 2026 21:11
@isabella-janssen isabella-janssen marked this pull request as ready for review February 24, 2026 21:17
@openshift-ci openshift-ci bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Feb 24, 2026
@isabella-janssen
Copy link
Member Author

/retest-required

@coderabbitai
Copy link

coderabbitai bot commented Mar 11, 2026

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: openshift/coderabbit/.coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: f5719b37-b8f0-400f-b28f-03b9250727fe

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
  • Post copyable unit tests in a comment

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

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Mar 11, 2026

@isabella-janssen: The following tests 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-gcp-op-1of2 398a473 link true /test e2e-gcp-op-1of2
ci/prow/e2e-gcp-op-2of2 398a473 link true /test e2e-gcp-op-2of2
ci/prow/e2e-hypershift 82ab142 link true /test e2e-hypershift

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.

@djoshy
Copy link
Contributor

djoshy commented Mar 12, 2026

/lgtm

/label backport-risk-assessed

@openshift-ci openshift-ci bot added the backport-risk-assessed Indicates a PR to a release branch has been evaluated and considered safe to accept. label Mar 12, 2026
@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Mar 12, 2026
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Mar 12, 2026

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: djoshy, isabella-janssen

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:
  • OWNERS [djoshy,isabella-janssen]

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

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. backport-risk-assessed Indicates a PR to a release branch has been evaluated and considered safe to accept. 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. lgtm Indicates that a PR is ready to be merged.

Projects

None yet

Development

Successfully merging this pull request may close these issues.