-
-
Notifications
You must be signed in to change notification settings - Fork 162
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
kopf does not fire handlers after re-authentication #1036
Comments
I suspect the issue I have is the same root cause (whatever it might be) in 1.36.1. I have an aiocron task that runs regularly to refresh credentials from a 3rd party API in a Memo. Works on 1.36.0, not on 1.36.1 🤔 |
I'm having the same problem. After several hours of debugging I think I found the reason. kopf initiates the re-authentication when no usable ConnectionInfo objects exist in it's so called Vault. This can happen when either kopf got an 'unauthorized error' from the API server or if the ConnectionInfo that you are using has expired. kopf will remove the no longer working ConnectionInfo objects from it's Vault and when doing this also calls The problem now is that the old You can work around this by setting a low client_timeout, e.g.
With this setting your operator should recover after that timeout has expired. I have a patch that fixes the problem by keeping track of all the unclosed response objects so that those can be properly closed before closing the session. With this patch, I can no longer reproduce this dead-lock situation. |
Long story short
Process was running for a while.
Re-authentication process was ran and after that kopf does not react to any resources being created.
Kopf version
1.36.1
Kubernetes version
1.24
Python version
3.9
Code
Logs
Additional information
No response
The text was updated successfully, but these errors were encountered: