[release 4.20] OCPBUGS-77252: Calculate machine counts in MCP status from node properties#5692
Conversation
|
Skipping CI for Draft Pull Request. |
|
/test all |
|
/jira cherrypick OCPBUGS-77055 |
|
@isabella-janssen: Jira Issue OCPBUGS-77055 has been cloned as Jira Issue OCPBUGS-77252. Will retitle bug to link to clone. 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. |
|
@isabella-janssen: This pull request references Jira Issue OCPBUGS-77252, 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. |
|
/retitle [release 4.20] OCPBUGS-77252: Calculate machine counts in MCP status from node properties |
|
/jira refresh |
|
@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
Requesting review from QA contact: 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. |
3ff46eb to
398a473
Compare
|
/retest-required |
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Repository: openshift/coderabbit/.coderabbit.yaml 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)
Comment |
a9e4ff8 to
82ab142
Compare
|
@isabella-janssen: 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. |
|
/lgtm /label backport-risk-assessed |
|
[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 DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
- What I did
This updates the
calculateStatusfunction 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 confusingif degradedMachineCount+readyMachineCount+unavailableMachineCount+updatingMachineCount != int32(len(nodes))conditional found atmachine-config-operator/pkg/controller/node/status.go
Line 211 in ecf42ae
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