-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
[3007.x] Address minion log flood from zeromq #66231
Conversation
…ion else do not log
…type to exception
Looks like you have some pre-commit errors |
Hi Is there an ETA for this fix to be available (on Debian)? It's causing lots of our minions to disconnect from master. |
As I understand it from doing some debugging, the problem is not that the callback is None, but that the callback is a non-async function that is used in an Here's my understanding of coroutines as it relates to this bug: When you write |
My 'fix' (as I described in my PR) is not really fix and rather just removing the unnecessary log which floods the salt minion's logs. As far as I can tell, the code is operational/functional and thus the logging is excessive. I would like someone to resolve the root of the issue but do not have the time/bandwidth (just trying to reduce unnecessary logs in my salt minions). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please hold off on merging this until I have a chance to look at it in more detail.
superseded by #66335 |
What does this PR do?
Checks if callback object in zeromq consume method is not None when handling logging as error.
What issues does this PR fix or reference?
Fixes:
#65898
and
#66177
Previous Behavior
Every minion will see many log errors for an:
TypeError: object NoneType can't be used in 'await' expression
from zeromq callback exception handling
New Behavior
The consume method will now only log an error if there is an exception from with callback.
Merge requirements satisfied?
[NOTICE] Bug fixes or features added to Salt require tests.
Commits signed with GPG?
Yes/No
Please review Salt's Contributing Guide for best practices.
See GitHub's page on GPG signing for more information about signing commits with GPG.