-
Notifications
You must be signed in to change notification settings - Fork 38.7k
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
improve error message on control-plane endpoint reconciler #105531
Conversation
pkg/controlplane/controller.go
Outdated
@@ -151,7 +151,7 @@ func (c *Controller) Start() { | |||
// Reconcile during first run removing itself until server is ready. | |||
endpointPorts := createEndpointPortSpec(c.PublicServicePort, "https", c.ExtraEndpointPorts) | |||
if err := c.EndpointReconciler.RemoveEndpoints(kubernetesServiceName, c.PublicIP, endpointPorts); err != nil { | |||
klog.Errorf("Unable to remove old endpoints from kubernetes service: %v", err) | |||
klog.Errorf("Error removing endpoints from kubernetes service, ignore if is a new installation: %v", err) |
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.
this means that not finding itself is also leading to an error? Can't we detect that? Or change the signature of the RemoveEndpoints func?
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.
now that you mention, finding yourself (your own endpoints) is what should indicate a problem, right?
That should mean that the apiserver was abruptly stopped, because the Stop()
process remove itself from the endpoint ...
27ad3a1
to
88a123b
Compare
/triage accepted |
/retest |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: aojea, sttts 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 |
The Kubernetes project has merge-blocking tests that are currently too flaky to consistently pass. This bot retests PRs for certain kubernetes repos according to the following rules:
You can:
/retest |
2 similar comments
The Kubernetes project has merge-blocking tests that are currently too flaky to consistently pass. This bot retests PRs for certain kubernetes repos according to the following rules:
You can:
/retest |
The Kubernetes project has merge-blocking tests that are currently too flaky to consistently pass. This bot retests PRs for certain kubernetes repos according to the following rules:
You can:
/retest |
/kind cleanup
What this PR does / why we need it:
The apiserver, on start, tries to remove the endpoints from etcd and throws an error if the endpoints doesn't exist.
On a new installation, this is going to fail always, and throw the error, but it will continue with the bootstrap process.
The problem is that if the apiserver is not able to start later for any reasons, this error seems to be a magnet for users, following that red-herring and confusing them.
Which issue(s) this PR fixes:
Fixes #76146
Special notes for your reviewer: