-
Notifications
You must be signed in to change notification settings - Fork 231
OCPCLOUD-2986,OCPBUGS-56849: fix: controllers: guard on empty .status.authoritativeAPI #1380
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OCPCLOUD-2986,OCPBUGS-56849: fix: controllers: guard on empty .status.authoritativeAPI #1380
Conversation
|
Skipping CI for Draft Pull Request. |
0e7711d to
9ddbe20
Compare
257af99 to
384ed7b
Compare
|
@damdo: This pull request references OCPCLOUD-2986 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "4.20.0" version, but no target version was set. 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. |
|
@damdo: This pull request references OCPCLOUD-2986 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "4.20.0" version, but no target version was set. 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. |
|
/assign @JoelSpeed |
384ed7b to
760eca9
Compare
JoelSpeed
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/approve
/assign @mdbooth
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: JoelSpeed 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 |
|
/jira refresh |
|
@damdo: This pull request references OCPCLOUD-2986 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "4.20.0" version, but no target version was set. 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. |
|
/jira refresh |
|
@damdo: This pull request references OCPCLOUD-2986 which is a valid jira issue. 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. |
760eca9 to
705e2c7
Compare
|
/retest-required |
|
@damdo: This pull request references OCPCLOUD-2986 which is a valid jira issue. This pull request references Jira Issue OCPBUGS-56849, 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. |
|
/jira refresh |
|
@damdo: This pull request references OCPCLOUD-2986 which is a valid jira issue. This pull request references Jira Issue OCPBUGS-56849, which is invalid:
Comment 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. |
|
/jira refresh |
|
@damdo: This pull request references OCPCLOUD-2986 which is a valid jira issue. This pull request references Jira Issue OCPBUGS-56849, which is valid. The bug has been moved to the POST state. 3 validation(s) were run on this bug
Requesting review from QA contact: 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. |
|
/hold |
|
/test e2e-aws-operator-techpreview |
1 similar comment
|
/test e2e-aws-operator-techpreview |
|
@damdo: 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. |
|
/unhold |
917e2fa
into
openshift:main
|
@damdo: Jira Issue OCPBUGS-56849: All pull requests linked via external trackers have merged: Jira Issue OCPBUGS-56849 has been moved to the MODIFIED state. 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. |
|
[ART PR BUILD NOTIFIER] Distgit: ose-machine-api-operator |
|
@damdo: Jira Issue OCPBUGS-56849: Some pull requests linked via external trackers have merged: The following pull requests linked via external trackers have not merged: These pull request must merge or be unlinked from the Jira bug in order for it to move to the next state. Once unlinked, request a bug refresh with Jira Issue OCPBUGS-56849 has not been moved to the MODIFIED state. 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. |
Originally reverted by #1383
--
Subsequently un-reverted by #1386
--
Currently if the .spec.authoritativeAPI is set to ClusterAPI on Machine/MachineSet creation, there is a chance for a race where:
if m.Status.AuthoritativeAPI != "" && m.Status.AuthoritativeAPI != machinev1.MachineAuthorityMachineAPIas it is emptyThis PR puts an end to that by explicitly checking for all the possible
.Status.AuthoritativeAPIstates and acting accordingly.I didn't simply remove the topmostif m.Status.AuthoritativeAPI != ""fromif m.Status.AuthoritativeAPI != "" && m.Status.AuthoritativeAPI != machinev1.MachineAuthorityMachineAPIbecause that would cause the controller to Pause: True the MAPI MachineSet even if it was only a matter of waiting the propagation of the authority from spec to.status.authoritativeAPI.Also I didn't want to change the logic of updateStatus as that's used in various places and is quite legacy code at this point so don't think that's very wise.