-
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-call hangs on Windows - version 3005.1 #62937
Comments
Onedir or classic packaging? |
Classic I believe. |
Does it look like the same causes as #62550? But that should be fixed in 3005.1 |
I saw that one... It looks like it was addressed for Ubuntu.. Not Windows.. We are running 3005.1... |
I added kill statement to our bootstrap process in the meantime... |
in your highstate are you using any imports? I'm trying to track this down and think i have a lead but just want to be sure. but I am not sure why it is only happening on windows. when i say imports i mean jinja that imports a map.jinja or any other code that does |
@AGirin Could you post the exact salt-call command you are running? Are you using |
@twangboy I was able to replicate this also. here is the setup i did to get the fastest replication of the issue
and the command i ran on the wndows host was
which gave the following output windows hang log.txt same hang also happens when run with state.apply instead of the slsutil.renderer |
as a test. i just built same setup local to the windows minion and using --local and it doesn't hang with --local and local files. |
Upgrading to pyzmq to 22.0.3 fixes the issue |
How do we update this on Windows? And sorry for late reply. |
For that matter we do not use --local. |
And really any state hagngs... salt-call.bat state.apply grains.roles or salt-call state.apply --> both hang at the end. |
Will |
Previous command does not work... What is the correct way to do this on Windows? |
So, you can only update pyzmq with the original packages for Windows. The OneDir/Tiamat packages don't pick up the change. We're probably going to have to re-package for Windows with the updated pyzmq. We're trying to decide if that means a re-tag or if we can fix Tiamat to pick up the updated pyzmq. |
If you installed Salt using the Classic Package, you can upgrade pyzmq by doing the following: Observe the version of pyzmq that Salt is using:
Look for the following in the return:
Upgrade pyzmq:
Then check the pyzmq version again to make sure it is updated. You may need to restart the minion.
We will be fixing this in either a 3005.2 release or a 3005.1-2 build for Windows packages. |
You could also run pip directly from the Salt python environment. From a command line:
|
The above commands will only work if you have installed the Classic Package of Salt. If you are using a OneDir/Tiamat package, you will have to wait for the fix (either a patched build, or a new release). |
Hi, just wanted to post here and confirm that in another environment upgrading pyzmq to version 22.0.3 addressed the behavior as noted |
Let me try the commands you provided. |
is this fix only for the classic package of the salt-minion? |
Description
salt-call now hangs on Windows and needs to be killed manually. Observed on many servers that we built with our bootstrap process. Windows 2019 and 2022 were tested.
Setup
Any state - salt-call hangs.
Versions Report
The text was updated successfully, but these errors were encountered: