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
2015.5.0: Masterless sync_all hangs at MinionEvent PULL #22796
Comments
|
Thanks for the report @obestwalter. |
|
I just had a look at the Priority labels - P3 means half will see the bug half will not. As priority levels are relative to their functional area I would say this is clearly P1 as 100% of people who try to use the minion masterless on windows will see the bug - or am I missing something? I think this is especially significant because it completely breaks windows with vagrant + salt provisioner (in cooperation with a bag of bugs that vagrant has regarding to salt provisioning atm). |
|
All fair points. I've made the label changes as needed. |
|
Thanks Nicole, I am on a bit of a crusade atm to get salt and vagrant on windows working and then keep it that way :) |
|
@obestwalter Could you send me a copy of your vagrantfile so I can reproduce? |
|
It's not specific to vagrant. I would say running a masterless minion on windows (at least 2008 r2) is always hanging. Correct me if I am wrong. |
|
Oh, I thought this was specific to vagrant... I've been getting a vagrant environment all set up to troubleshoot this... |
|
I just detailed the way I reproduced the referenced closed bug - sorry if this was confusing. Speaking of vagrant though: I'd be absolutely thrilled if this bug would be squashed soon, because it's one of the bugs that renders salt unusable in combination with vagrant on Windows. |
|
This command works fine for me. Are there some unique permission on C:\vagrant? I used C:\salt\roots. I ran it from the head of 2015.5 and it worked, so I thought it was an issue with 2015.2rc2, so I spun up a vm and installed 2015.2rc2 and set up the environment. It worked there too. Are you running salt-call from an Administrator cmd prompt? |
|
Vagrant might be relevant here because c:\vagrant is the default share for vagrant, right? Sorry, I'm not the king of vagrant. |
|
C:/vagrant is automatcally mapped by vagrant as a shared folder with full read/write access. It surprises me that it works for you with any setup though ... I had this marked as non vagrant specific and very reliably broken - so maybe there is something specific about all the ways I was testing this, that triggers the problem. Could you post your Vagrantfile here, so I can verify a setup that actually works and work my way towards the problem? When you run it on a non vagrant setup masterless with local file roots everything is fine with the latest release? |
|
I haven't done anything with my Vagrantfile. It's just the default one that get's created when you do a vagrant init. I added the path to the box is all. Here's what I have in my vagrant file, minus all the commented stuff: Everything else is commented out. I'm also using hyperv instead of virtualbox, it seems to be more responsive on windows for me. I finally got my C:\Vagrant folder to work and I tried moving the file_roots there. It still worked for me. Here's my output from the Versions report: |
|
First thing jumping at me is the ipc mode explicitely set to tcp. I am On Thu, 4 Jun 2015 18:59 Shane Lee notifications@github.com wrote:
|
|
The setting It defaults to |
|
Interesting. Does that mean it is broken by design on windows if you unknowingly use the real minion default for this setting on windows, like I did? Will investigate that next week and report back |
|
Eh, I don't know if I'd go as far as to say that it's broken by design. I would expect the history developed the other way around...that the Windows-specific That said, I do think having a wholly separate conf file is a rather static and fragile way to manage the Windows-specific settings. |
|
On second thought, that's overly complicated. Just default to the platform-specific configuration settings internally, and use the conf file to override the defaults. This is basically how it already works, just need to implement the platform-specific logic (some may already be there, now that I think about it) and document what they are in the conf file. It would perhaps be nice to log if the conf file contains settings that differ from the known 'safe' settings. |
That's spot on Loren! |
|
@obestwalter, I was poking around the source this morning, and much of the logic for platform-specific default values is already in place. The Windows-specific Defaults are set in defaults.py, which pulls some values from syspaths.py. From my read, the only Windows-specific value that is set in the Windows-specific |
|
@obestwalter Did you try changing to |
|
@twangboy Not yet. Today I built a public box for the vagrant powered version of your salt-windows-dev repo. Any chance to get this merged, when it's done (hopefully tomorrow)? See: vmware-archive/salt-windows-dev#12 |
|
What needs to be merged? Just the Vagrantfile? |
@twangboy I am glad you're open for this approach. Let's move this discussion to the assciated issue |
|
The immediate issue is resolved and had to do with proper defaults not being set. This is resolved with #24749 and released since 2015.5.3 |
|
Wow. thanks @obestwalter @twangboy. I'm going to have vagrant's documentation updated for the plugin so no one else runs into this issue. |
|
@PatOShea - which part of the Vagrant docs would need updating? In my view the problem here was entirely on the side of Salt, as proper defaults weren't loaded on windows. This problem should be fixed now on the Salt side and you can use a minimal minion config and it should work. |
|
I agree if one uses a minimal configuration you should be good. You'll
|
|
@PatOShea o.k. could you then please mention this issue in the vagrant bug, so we can see the connection? |
|
Definitely. I will try to make the pull request this afternoon.
|
I have a similar problem like in the closed issue #8058.
I can reproduce the problem reliably in a vagrant box with Windows 2008 R2 x64 and 2015.2.0rc2. It is hanging on SaltEvent PUB socket URI.
versions:
minion config:
salt-call --local saltutil.sync_all... and it hangs
The text was updated successfully, but these errors were encountered: