Skip to content
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

catch urllib3.exceptions.ProtocolError and continue watching #724

Conversation

nmatsui
Copy link
Contributor

@nmatsui nmatsui commented Aug 14, 2018

fixed #554

When urllib3.exceptions.ProtocolError raised at watch_loop, catch it and reconnect kubernetes to watch events.

Copy link
Member

@kflynn kflynn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!! I'm OK with merging this, but I did leave a question for you.


logger.info("watch loop exited?")
except ProtocolError:
continue
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it worth logging anything here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure. When the connection was lost and caught it, container should tell us that ambassador rewatched k8s automatically. I'll rewrite this to log a message as debug, and resend pull request. Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Routing does not work - ValueError: invalid literal for int() with base 16: b''
3 participants