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
Bug 1912820: competing connectivitycheckcontrollers cause pod restarts during upgrades #987
Bug 1912820: competing connectivitycheckcontrollers cause pod restarts during upgrades #987
Conversation
7198ada
to
7321795
Compare
7321795
to
1ae9777
Compare
| // upgrade is in progress if there is no history, or the latest history entry matches the desired version and is completed | ||
| if len(history) == 0 || !(history[0].Version == desired && history[0].State == configv1.CompletedUpdate) { |
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.
| // upgrade is in progress if there is no history, or the latest history entry matches the desired version and is completed | |
| if len(history) == 0 || !(history[0].Version == desired && history[0].State == configv1.CompletedUpdate) { | |
| // upgrade is in progress if there is no history, or the latest history entry matches the desired version and is not completed | |
| if len(history) == 0 || !(history[0].Version == desired && history[0].State == configv1.CompletedUpdate) { |
?
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.
Updated
1ae9777
to
b7ad411
Compare
| desired := clusterVersion.Status.Desired.Version | ||
| history := clusterVersion.Status.History | ||
| // upgrade is in progress if there is no history, or the latest history entry matches the desired version and is not completed | ||
| if len(history) == 0 || !(history[0].Version == desired && history[0].State != configv1.CompletedUpdate) { |
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.
Are you sure this logic is correct? I expected (and have easier time reading)
if len(history) == 0{
klog.V(1).Infof("ConnectivityCheckController is waiting for transition to first desired version (%s) to be completed.", desired)
return nil
}
if history[0].Version != desired{
klog.V(1).Infof("ConnectivityCheckController is waiting for transition to desired version (%s) to be started.", desired)
return nil
}
// this one looks different from what you wrote above....
if history[0].State != configv1.CompletedUpdate{
klog.V(1).Infof("ConnectivityCheckController is waiting for transition to desired version (%s) to be completed.", desired)
return nil
}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.
Yes, I had a == that should of been a != there. I'll split it out as per your suggestion.
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.
Updated.
|
/lgtm release the hold when you're confident your proof works. |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: deads2k, sanchezl The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
@sanchezl: This pull request references Bugzilla bug 1912820, which is valid. The bug has been updated to refer to the pull request using the external bug tracker. 3 validation(s) were run on this bug
In 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 kubernetes/test-infra repository. |
|
/hold cancel |
|
@sanchezl: 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 Bugzilla bug in order for it to move to the next state. Once unlinked, request a bug refresh with Bugzilla bug 1912820 has not been moved to the MODIFIED state. In 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 kubernetes/test-infra repository. |
No description provided.