-
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
Salt-Call Hangs when IPv6 is disabled on System #32719
Comments
Thanks, I'll be hacking away at this at the sprint tonight. 😄 |
Hmm, I can't reproduce:
|
I did test on Arch Linux though, I'll try on a Cent7 VM |
Sitting here with @beardedeagle at the sprint and he's not able to reproduce either. This looks to be a problem with DNS resolution, since that is what fqdn_ip6 is doing. After a bit of RTFM'ing I found that DNS resolution times out by default after 30 seconds (see here), which might explain the lag. I'd have a look at your /etc/resolv.conf and see if the nameservers being used are the problem. If other nameservers can be substituted, try editing /etc/resolv.conf and see if the problem persists. |
As @terminalmage said, unfortunately I am unable to reproduce this issue. I spun up a new centos 7 server in the same environment, installed masterless salt and ran
|
As @terminalmage and @beardedeagle have both verified that this is working, I'm going to close this until if a more specific, concrete case can be provided. |
I've managed to run into this issue also. Steps to reproduce:
To fix this, you can either reenable ipv6:
Or add an entry into the I.e, if your server's hostname is
|
I still can't reproduce this.
And when I run salt-call:
|
I removed the |
When I tcpdump traffic, the DNS server set in resolv.conf returns nxdomain for the AAAA record of the hostname of the server. Not sure if this has any grounding on the problem. |
This prevents DNS resolution issues from causing ``salt-call --local`` to hang. Resolves saltstack#32719.
@cetra3 OK, I still can't reproduce this but I came up with a solution that I think should fix the problem for you (and others who have run into this corner case). I've opened pull request #35233, which simply skips compilation of |
OK cheers for that. I will give it a shot in my environment and report back |
Thanks! |
Ok, I've tested #35233 and it appears to work a lot better: Without the change:
With the change:
|
Cool. I'll go ahead and close this then. Thanks! |
Description of Issue/Question
When calling
salt-call --local state.apply
orsalt-call --local grains.items
, there is a 30-60s hang while the grains/core.py fqdn_ip6 attempts to resolve ipv6 info.Setup
default installation (on CentOS 7)
Steps to Reproduce Issue
salt-call --local grains.items --log-level=trace
Versions Report
v2015.8.8.2
@terminalmage @beardedeagle
The text was updated successfully, but these errors were encountered: