-
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] os.nice requires an argument #66289
Comments
Hi there! Welcome to the Salt Community! Thank you for making your first contribution. We have a lengthy process for issues and PRs. Someone from the Core Team will follow up as soon as possible. In the meantime, here’s some information that may help as you continue your Salt journey.
There are lots of ways to get involved in our community. Every month, there are around a dozen opportunities to meet with other contributors and the Salt Core team and collaborate in real time. The best way to keep track is by subscribing to the Salt Community Events Calendar. |
@boyadzhievb please provide the output of |
[root@saltmaster-bb]$ salt --versions-report Python Version: Dependency Versions: System Versions: |
it was removed because it was useless information as is even when working. a random number in the middle of the logs does not help anyone. i knew perfectly well adding 0 to the function would output the current niceness level. but that just sticks a random number in the middle of the logs with no context. I could have updated the log to be more informative about what it meant yes. but the line above already covered what is happening. |
Adding the argument is pretty useful, i am talking from experience not from assumption. It is not random message, it is exactly what i expected. |
Description
(
salt/salt/master.py
Line 1293 in 927ccc7
os.nice(increment) requires an argument
Setup
set mworker_niceness: 1 in master, you'll see the error in logs :
2024-03-29 09:14:30,842 [salt.utils.process:913 ][ERROR ][28892] An un-handled exception from the multiprocessing process 'MWorker-101' was caught:
Traceback (most recent call last):
File "/usr/lib/python3.6/site-packages/salt/utils/process.py", line 904, in wrapped_run_func
return run_func()
File "/usr/lib/python3.6/site-packages/salt/master.py", line 1195, in run
log.info(os.nice())
TypeError: nice() takes exactly one argument (0 given)
Please be as specific as possible and give set-up details.
Steps to Reproduce the behavior
(Include debug logs if possible and relevant)
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Versions Report
salt --versions-report
(Provided by running salt --versions-report. Please also mention any differences in master/minion versions.)PASTE HERE
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: