-
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
[BUG] salt-master port not closed cause a "Too many open files" error #63040
Comments
Are you doing anything to trigger this, or does an idle system just keep leaking sockets? |
Is it also leaking processes? |
No, I don't have leaking processes. It's stable, and they don't increase. |
This is largely fixed in Salt 3006.3, still a minor issue which is being investigated, but the main problem has been resolved. |
Hello, Thanks. I will do some tests. |
@Denislb @dmurphy18 has anyone checked if pyflakes and pylint run w/out detecting anything related to open file handles? |
@bschoening As part of the Salt process, there is a pre-commit step which runs various tests against the intended code, and pre-commit has to be clean before you can even successfully get through the 'git commit' step. Static analysis is done by Bandit, pylint, black, etc. In an upcoming release, there have been changes made to allow for warnings in the log files, where detection is made for some outstanding remaining rare conditions with file handles not getting closed, however the majority of the file handle issues not being closed was resolved by the 3006.3 release of Salt. |
@Denislb The issue has been fixed in the Salt 3006.3 release and recommend upgrading to the latest release which is 3006.4. Salt 3005 reaches End-Of-Life in February 2024, 2 and 1/2 months from now, hence the suggestion to upgrade. If the answer is satisfactory, please consider closing this issue, or provide additional information. |
@Denislb Can you test this against the latest Salt 3006.8 and close the issue if it is resolved. A number of changes have been made to deal with "too many open files" issues in earlier version of 3006.x. |
@Denislb Closing this due to unresponsive, please feel free to reopen if more information is provided. |
Description
salt-master does not close properly the receiving port from minions. This causes a "Too many open files" error and we cannot contact any minion after that.
I don't see errors on the master/minion (even in debug mode) and don't know how to reproduce this bug.
On the master if I check opens sockets:
On the minion side:
Setup
Please be as specific as possible and give set-up details.
Expected behavior
The open port should be closed properly after execution
Versions Report
salt --versions-report
The text was updated successfully, but these errors were encountered: