OCPBUGS-42083: Include bootstrap IP in etcd endpoints list#1807
Conversation
During bootstrap kube-apiserver points to master etcd instances. These instances are being added to etcd-servers list one by one, to ensure that if any master can't reach some other etcds this revision won't block the entire rollout. However, at some point the masters may end up with just one etcd (localhost and its IP), which makes it non-HA and apiserver may lose etcd connection if this etcd is being reconfigured. This change updates the list to include bootstrap etcd so that any master would always have an etcd instance to connect to.
|
@vrutkovs: This pull request references Jira Issue OCPBUGS-42083, 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 |
|
@vrutkovs: This pull request references Jira Issue OCPBUGS-42083, 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 openshift-eng/jira-lifecycle-plugin repository. |
|
/lgtm thanks! |
|
found the code that removes this after bootstrapping: https://github.com/openshift/cluster-etcd-operator/blob/72555433bbf7bdb9ce5f8d93c3f49375c2770f0a/pkg/operator/etcdendpointscontroller/etcdendpointscontroller.go#L100-L105 /approve |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: deads2k, tjungblu, vrutkovs 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 |
|
@vrutkovs: 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-sigs/prow repository. I understand the commands that are listed here. |
|
@vrutkovs: Jira Issue OCPBUGS-42083: 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-42083 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. |
|
/cherrypick release-4.17 |
|
@vrutkovs: new pull request created: #1814 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-sigs/prow repository. |
During bootstrap kube-apiserver points to master etcd instances. These instances are being added to etcd-servers list one by one, to ensure that if any master can't reach some other etcds this revision
won't block the entire rollout.
However, at some point the masters may end up with just one etcd
(localhost and its IP), which makes it non-HA and apiserver may
lose etcd connection if this etcd is being reconfigured.
This change updates the list to include bootstrap etcd so that any master would always have an etcd instance to connect to.
Tested in openshift/cluster-kube-apiserver-operator#1745