-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
urllib3.exceptions.ProtocolError from long lived watch #1693
Comments
The watch client itself doesn't handle retry (so does the watch in client-go). The right solution is to implement an informer in this client #868, or have something smaller like a retrywatcher. cc @yliaog |
The Kubernetes project currently lacks enough contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle rotten |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /close |
@k8s-triage-robot: Closing this issue. In 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. |
These pop up frequently and while systemctl restarts the daemon the chaff in the log is annoying. It looks like the kubernetes-client maintainers won't fix the bug so we've got to work around it. kubernetes-client/python#1693
What happened (please include outputs or screenshots):
Code which generated:
Code I need to add to ^ to handle:
What you expected to happen:
The python client shouldn't surface a urllib3 error, but rather a
KubeApiException
or similar. Ideally, the watch code would retry internally.How to reproduce it (as minimally and precisely as possible):
Happens "regularly" on our EKS clusters running kube 1.19. Regularly meaning several times a day, which is why we have the elaborate error handling. The error handling above should be in the documentation (or have a document for "long lived watches")
Anything else we need to know?:
Environment: n/a
python:3.9-slim-buster
aka debianPython 3.9.10
kubernetes 19.15.0
The text was updated successfully, but these errors were encountered: