-
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
Error setting schedule on macOS #64153
Comments
Possible duplicate of #64111 |
I'm seeing this error since salt 3005. Not sure whether this is a duplicate of #64111 |
More details on this. It seems that when I start the salt-minion, the scheduled is set and jobs are scheduled:
However, after running the first highstate, the minion loses its connection with the master and schedules disappear. Moreover, while the highstate is running, the master can ping the minion. But once the highstate has finished the master cannot ping the minion anymore. So it looks more an issue on my config than on the code itself. |
It seems to be related with some kind of timeout with my macOS states. After commenting several macOS states and decreasing the highstate running time, the minion keeps connected to the master. However, with the full configuration, after the highstate has finished the minion is no longer connected to the master. Maybe related with: |
So finally I've found the issue. Running
My worker_threads: 6
reactor_worker_threads: 10 and I only manage 8 minions. Reading the official documentation it is recommended one worker thread per 200 minions. So I understand my Tracking the message I have found this issue #53474, where @weswhet suggest to set I would like to understand now, why the master is unable to manage the return. And it would be great to add this information to the minion's log even running the minion as a service. Since finding the message with the real error has not been easy. I'll close this issue in the following days. |
I haven't found why my master is unable to process the returned job from the minion. But given it seems to be something related with my config, I'm closing this issue now. However, I hope this issue can help other people with similar issues. |
Description
When trying to set or update an schedule with the state
schedule.present
the state fails.This is my current state:
The result of applying the state is the following:
After debugging the schedule.py (module/state/util) I've found that the issue is here:
salt/salt/modules/schedule.py
Lines 672 to 675 in 4bbdd65
Because no event is recovered.
Setup
I'm currently running salt 3005 on an Apple Silicon Mac (macOS 13.3.1) with salt installed via Homebrew. However, the issue also happens on an Intel Mac (macOS 12) running salt 3006 installed via onedir package.
Steps to Reproduce the behavior
The issue can be reproduced with the following command too:
The text was updated successfully, but these errors were encountered: