-
Notifications
You must be signed in to change notification settings - Fork 215
OCPBUGS-1458: Allow CVO to update KUBERNETES_SERVICE_HOST with LB address
#851
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
OCPBUGS-1458: Allow CVO to update KUBERNETES_SERVICE_HOST with LB address
#851
Conversation
|
@petr-muller: This pull request references Jira Issue OCPBUGS-1458, 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 kubernetes/test-infra repository. |
|
@petr-muller: This pull request references Jira Issue OCPBUGS-1458, 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 kubernetes/test-infra repository. |
|
/test all |
|
/test unit |
|
/retest |
|
/test all |
|
/retest |
406dac8 to
afcb8c8
Compare
|
/jira refresh |
|
@petr-muller: This pull request references Jira Issue OCPBUGS-1458, 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 kubernetes/test-infra repository. |
KUBERNETES_SERVICE_HOST failing to reconcileKUBERNETES_SERVICE_HOST with LB address
|
@petr-muller: This pull request references Jira Issue OCPBUGS-1458, which is valid. 3 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 kubernetes/test-infra repository. |
|
/wip |
KUBERNETES_SERVICE_HOST with LB addressKUBERNETES_SERVICE_HOST with LB address
|
Needs #855 first |
f8be0cd to
088b109
Compare
|
/retest |
|
@wking @LalatenduMohanty I was seeing some surprising behavior of the timeout in I solved this by implementing the timeout with a context instead, happy to hear your thoughts. |
|
upgrade-out-of-change failure does not seem related: /retest |
|
|
296ae5f to
6b84006
Compare
The client-go code retries a subset of network errors on GET for 30s, but we saw occurrences of other short disruptions, like DNS ones, that make us abort and restart unnecessarily soon. Make CVO retry all errors for 25s and only abort when we do not succeed in this time frame. This helps CVO survive short disruptions on startup, leading to less noise, mostly during installation.
6b84006 to
542520d
Compare
|
|
wking
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.
/lgtm
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: petr-muller, wking 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 |
|
/retest |
|
/bugzilla refresh The requirements for Bugzilla bugs have changed (BZs linked to PRs on main branch need to target OCP 4.12), recalculating validity. |
|
@openshift-bot: No Bugzilla bug is referenced in the title of this pull request. Retaining the bugzilla/valid-bug label as it was manually added. 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 kubernetes/test-infra repository. |
|
/retest |
|
/jira refresh |
|
@petr-muller: This pull request references Jira Issue OCPBUGS-1458, which is valid. 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 kubernetes/test-infra repository. |
|
/test e2e-agnostic-upgrade-into-change |
|
/retest |
1 similar comment
|
/retest |
|
/test e2e-agnostic-upgrade-out-of-change |
2 similar comments
|
/test e2e-agnostic-upgrade-out-of-change |
|
/test e2e-agnostic-upgrade-out-of-change |
|
@petr-muller: all tests passed! 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/test-infra repository. I understand the commands that are listed here. |
|
@petr-muller: All pull requests linked via external trackers have merged: Jira Issue OCPBUGS-1458 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 kubernetes/test-infra repository. |
|
/cherry-pick release-4.12 |
|
@petr-muller: new pull request created: #866 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 kubernetes/test-infra repository. |
The problem was identified to be a broken substitution of internal load balancer into
KUBERNETES_SERVICE_HOSTby Trevor and David (see my JIRA comment and related Slack thread).CVO injects the LB hostname in the
ModifyDeploymentfine, but then the deployment gets applied inApplyDeploymentand theEnsureDeployment->ensurePodTemplateSpec->ensurePodSpec->ensureContainers->ensureContainer->ensureEnvVarchain stomps the updated value inrequiredby the old value fromexistingand reverts the injection.This behavior was added intentionally in #559 as a part of a fix for various hot-looping issues. The substitution apparently caused some hot-looping issues in the past (slack thread). I have tested removing the special handling
KUBERNETES_SERVICE_HOSTthoroughly, and saw no problematic behavior. After fixing other hot-looping problems in #855 to eliminate noise, no new hot-loops occurs withKUBERNETES_SERVICE_HOSThandling removed.Even with the substitution fix, I observed further network problems in CVO (example):
To get rid of these, I added a client-side poll to CVO, but I currently fail to reproduce the issue in #859, so maybe the
i/o timeoutissues were just some co-indidental disruption bug that we happened to fix in the meantime? Not sure.