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
Don't increment "no local endpoints" metric when there are no remote endpoints #109782
Don't increment "no local endpoints" metric when there are no remote endpoints #109782
Conversation
@danwinship: This issue is currently awaiting triage. If a SIG or subproject determines this is a relevant issue, they will accept it by applying the The 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. |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: danwinship 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 |
bot missed this before... |
/test pull-kubernetes-verify the verify error is legit, there is some gofmt problem |
Hi Dan, |
don't retry The integration failure is https://prow.k8s.io/view/gs/kubernetes-jenkins/pr-logs/pull/109782/pull-kubernetes-integration/1521837161488322560 |
…endpoints A service having no _local_ endpoints when it does have remote endpoints is different from a service having no endpoints at all.
938b879
to
84ad54f
Compare
/lgtm carrying over the lgtm since only the gofmt problem was fixed |
What type of PR is this?
/kind bug
What this PR does / why we need it:
The new "no local endpoints" metric gets incremented even for services with no endpoints at all. This seems wrong to me; there is a difference between "Service X with iTP:Local is missing endpoints on some nodes" vs "Service X with iTP:Local has been defined but its endpoints haven't been created yet".
OTOH, the metric seems kind of flaky to me anyway (eg, it is likely to be triggered while the service is initially being deployed, which doesn't seem useful). And the entire idea of the metric seems wrong for the "externalTrafficPolicy" case. In the iTP case, it is usually a bug if the service does not have endpoints on every node. In the eTP case, it would actually be quite surprising for a service to have endpoints on every node...
But anyway, this just fixes the "no local endpoints" vs "no endpoints at all" case... Assuming people agree that it's a bug, which you might not.
I noticed this while refactoring the code, where preserving the current behavior would require more code than implementing this "fixed" behavior.
/assign @andrewsykim @MaxRenaud
Which issue(s) this PR fixes:
none
Does this PR introduce a user-facing change?
/sig network