calico: Regularly see E0164 - timeout or abort while handling: method GET URI /apis/projectcalico.org/v3
Hi We regularly see these errors below on our kube-apiservers, that suggest something is not right with the aggregated v3 api’s. However, we don’t see any negative impact, calico is working fine, the apiserver in calico-apiserver namespace all seems fine.
We removed the custom resource for default APIServer and put it back on, no difference…
Should we be concerned?
Expected Behavior
No errors in logs - errors in kube-apiserver logs attract our attention quickly 😉
Current Behavior
wrap.go:53] timeout or abort while handling: method=GET URI="/apis/projectcalico.org/v3/profiles?allowWatchBookmarks=true&resourceVersion=73417144%2F73417144&watch=true" audit-ID="c17b2ff6-c3a8-4698-a9b5-58b9dc6bf56a"
wrap.go:53] timeout or abort while handling: method=GET URI="/apis/projectcalico.org/v3/globalnetworksets?allowWatchBookmarks=true&resourceVersion=73417144&watch=true" audit-ID="e853832c-3508-48a7-b5a8-f3e787df9c94
wrap.go:53] timeout or abort while handling: method=GET URI="/apis/projectcalico.org/v3/hostendpoints?allowWatchBookmarks=true&resourceVersion=73417144&watch=true" audit-ID="31ef1042-a457-4510-997a-26cd306e0551"
wrap.go:53] timeout or abort while handling: method=GET URI="/apis/projectcalico.org/v3/bgppeers?allowWatchBookmarks=true&resourceVersion=73417144&watch=true" audit-ID="a4bd1b53-156b-4f62-b8d7-8413283d9a2b"
wrap.go:53] timeout or abort while handling: method=GET URI="/apis/projectcalico.org/v3/kubecontrollersconfigurations?allowWatchBookmarks=true&resourceVersion=73417144&watch=true" audit-ID="540af559-1cf8-47ed-9a03-6165a016901b"
wrap.go:53] timeout or abort while handling: method=GET URI="/apis/projectcalico.org/v3/ipamconfigurations?allowWatchBookmarks=true&resourceVersion=73417144&watch=true" audit-ID="d0ce56d5-209b-4241-8442-787ce6903d50"
wrap.go:53] timeout or abort while handling: method=GET URI="/apis/projectcalico.org/v3/clusterinformations?allowWatchBookmarks=true&resourceVersion=73417144&watch=true" audit-ID="f67a7af1-d9cf-4110-9c56-80ee4a87c545"
wrap.go:53] timeout or abort while handling: method=GET URI="/apis/projectcalico.org/v3/felixconfigurations?allowWatchBookmarks=true&resourceVersion=73417144&watch=true" audit-ID="bf03ef4f-73f4-4ae0-aeb4-30f8c1dacad4"
wrap.go:53] timeout or abort while handling: method=GET URI="/apis/projectcalico.org/v3/networksets?allowWatchBookmarks=true&resourceVersion=73417144&watch=true" audit-ID="5a855bef-247b-4214-8909-4eedf83d5ec1"
wrap.go:53] timeout or abort while handling: method=GET URI="/apis/projectcalico.org/v3/globalnetworkpolicies?allowWatchBookmarks=true&resourceVersion=73417144&watch=true" audit-ID="fd9c9329-8a19-4bce-a1b3-5863aefeb72e"
wrap.go:53] timeout or abort while handling: method=GET URI="/apis/projectcalico.org/v3/ippools?allowWatchBookmarks=true&resourceVersion=73417144&watch=true" audit-ID="f1972004-bc13-43c0-8f97-701fae5f1f91"
wrap.go:53] timeout or abort while handling: method=GET URI="/apis/projectcalico.org/v3/caliconodestatuses?allowWatchBookmarks=true&resourceVersion=73417144&watch=true" audit-ID="aa809b3f-23bd-41f9-9713-43a90270c736"
wrap.go:53] timeout or abort while handling: method=GET URI="/apis/projectcalico.org/v3/blockaffinities?allowWatchBookmarks=true&resourceVersion=73417144&watch=true" audit-ID="34ef13d1-658b-4141-bea3-4c0c5ab09a69"
wrap.go:53] timeout or abort while handling: method=GET URI="/apis/projectcalico.org/v3/networkpolicies?allowWatchBookmarks=true&resourceVersion=73417144&watch=true" audit-ID="ce6fe12c-039c-4005-a0f3-f6e0d46d7369"
wrap.go:53] timeout or abort while handling: method=GET URI="/apis/projectcalico.org/v3/bgpconfigurations?allowWatchBookmarks=true&resourceVersion=73417144&watch=true" audit-ID="9857ed1e-e75f-4c4b-87a1-c06210a0eea1"
wrap.go:53] timeout or abort while handling: method=GET URI="/apis/projectcalico.org/v3/ipreservations?allowWatchBookmarks=true&resourceVersion=73417144&watch=true" audit-ID="43db0f4e-0d78-42fe-b2ef-4442fed68325"
Steps to Reproduce (for bugs)
- Fresh K8s 1.25 Cluster
- Install tigera-operator
- Add default Installation
- Add default APIService
apiVersion: operator.tigera.io/v1
kind: APIServer
metadata:
name: default
spec: {}
Your Environment
- Calico version 3.25.1, but have seen on earlier versions on other clusters…
- Orchestrator version (e.g. kubernetes, mesos, rkt): kubernetes 1.25
About this issue
- Original URL
- State: open
- Created 3 years ago
- Reactions: 7
- Comments: 24 (13 by maintainers)
We are seeing these as well in our kube-api-server logs. Is there a way to disable these? Cause they cause a massive amount of spam over time, and if they are benign why are they being logged as WARN or even ERROR sometimes?
I’ve submitted a patch upstream to fix the issue: https://github.com/kubernetes/kubernetes/pull/131245
It comes down to the proxying logic in the API server raising a particular error that is normally only raised for timed-out non-watch requests. That gets logged because, for those requests it indicates an overload. However, for a watch request it typically means “client closed connection”.
Thanks for the update @Anton-Kartashev ; that suggests that the version of Argo that you’re using has a bug, where it is timing out watch requests every 10s at the client side. For normal (not aggregated API) resources, the API server doesn’t log anything when that happens but for aggregated resources you get this error.
It would be good to make those logs go away - I will see what can be done about that… but I think it’s safe to say these are benign logs and essentially working as expected, since long-lived “watch” requests against the API server that receive no traffic will eventually be terminated and restarted by design.
Hi @caseydavenport - every 10 minutes without fail.