-
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] /usr/bin/salt-call state.apply hangs at end on Xubuntu 20.04 salt 3001 #57856
Comments
Could be duplicate of #57456 |
I've got the same issue under Ubuntu 20.04 as well. If run from the master the state succeed and exit right after like normal. When executed directly on minion it hangs at the end until CTRL + C is used.
I don't think its a duplicate of #57456 because this issue is when an SLS render to nothing and the executed state from the master will exit but with and error status code and its not that case here. |
I'm hesitant on #57356 as well as I keep most of my states without jinja references and filter via grains in the top.sls file. It also fails if I run just a single state file. For example, my vscode state:
Output is similar to other fails:
CTRL-C after waiting a couple of minutes |
This is either not a duplicate of #57456, or that issue's title is misleading. As far as I can tell, applying a highstate via salt-call which contains Vagrantfile
Expected behavior: Running Actual behavior: Package is installed as expected, but salt-call never exits, causing |
The title describes the issue in 3000.1 (empty sls / fileserver? hang) that shifted into this one (pkg state? hang) in 3001. |
Sorry, I just meant that it doesn't appear to be related to an empty formula. Applying a highstate with an empty formula works just fine in my tests. |
@mgdotson thanks for the bug report. I also got this on a 20.04 box as well. |
|
I am seeing this on fedora 32 as well. |
Reproduced in 20.04 Docker container. Working on that. |
Got a lot of "Message timed out" on 3000.3 & 3001. |
@jpmenil I don't think it could be related to this one. Please try to find a similar issue or create a new one with detailed description. |
Confirmed this is related to Anyone running anything other than Edit: Note that highstate/states executed via the |
All the procs left are ZMQ showing an
|
@JaseFace yep and I'm working in this direction. Thank you for analyze. |
Does |
yes, returns instantly with transport set to tcp. |
this means salt isn't usable for ubuntu 20.04? As you cannot run mixed clients tcp and not tcp you cannot even upgrade your infra |
@disaster123 salt is still mostly usable and I've personally started upgrading infrastructure. It appears the bug only affects CLI use of That being said, the bug is quite annoying, and there are some legitimately broken workflows, such as scripted use of |
Very disappointing...! |
@sagetherage how to solve this? With transport: tcp salt-call itself is working BUT now i'm running into the next issue
it seems unpossible to run salt on ubuntu currently. tcp isn't working either. |
I tried to work around this by downgrading zmq + pyzmq but it still does not work see: #57456 (comment) |
Was anybody able to fix this? Even downgrading zmq did not work for me. |
@disaster123 both @cmcmarrow and @krionbsd are working on these issues that are not exactly the same but seem related or similar. Not sure they have a fix for all, but I will let them answer on specifics. |
Hi, I am having the same behaviour on CentOS 8.2 where every state hangs at closing MQ. States run perfectly fine in a CentOS 7 based environment with an older version of PyZMQ. I am on Salt 2019.2.5 and gather between this bug report and #57456 the fixes are reduce security or downgrade PyZMQ to 18.0.0 - are these the only options until an official fix is released?
Regards, |
@ocfmatt we are working on a long term solution, but since we do not maintain this library it is taking some time. It was one suggestion to try to downgrade, but we realize that isn't really a good idea, either, but looking for a real fix to this, still. |
Sorry for the lack of communication. The zmq hang should be merged soon. The reason why salt-call hanged was because we left the clean up to garbage collector on exit. The zmq library sometimes closes its objects out of order when left to its own. But if closed by salt this can be worked around. I tried to patch this bug for zmq but I could not figure out a good way to do it. So we just put in a patch for salt. I would be grateful if you guys check if my fix zmq hang branch stops your environment from hanging. I would hate to see you guys wait for another release because I missed something. |
Hey @cmcmarrow, thanks for this patch. I've tested it on ~70 machines that exhibited the ZMQ hang, and it has resolved the problem. I'll be leaving them with the patch to burn in further, but it's pretty straightforward, I doubt anything will come up. |
Hi @cmcmarrow, will these commits work in 2019 varients or are they just for 300X versions? |
I disagree. My start up scripts for new servers hang as a result. This is causing production issues at my company now. I am even finding on the salt master, when calling a highstate on minons, is hanging too. So this is fixed in 3002? Thank you. |
Assuming you're using state.apply from the Salt master, this bug would be unrelated, you have something else going on. This only affects direct salt-call runs. Yeah 3002 is gtg. |
Any update on this issue. I am seeing this issues still in 3001 and 3002 |
I updated to ver 3003. I can confirm the issue is resolved in 3003.
--
Sent from my Android device with K-9 Mail. Please excuse my brevity.
|
Thanks, let me try 3003 |
3002 works for me too, 3001 does not |
Description
Running
/usr/bin/salt-call state.apply
on Xubuntu 20.04 minion finishes but never completes.But command never returns back to terminal.
Notice the command has been running over an hour but only took 16 seconds for the states to be applied.
Setup
Steps to Reproduce the behavior
Xubuntu 20.04 install with ZFS root
Salt master is Ubuntu 18.04 version 3001 recently upgraded from nigrogen.
All other minions on network are 18.04 and working as expected.
Expected behavior
salt-call state.apply
to finish and return to terminal.Screenshots
Versions Report
salt --versions-report
(Provided by running salt --versions-report. Please also mention any differences in master/minion versions.)Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: