-
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
fqdn_ip4 and fqdn_ip6 are empty on 2016.3+ #34129
Comments
@onorua I am able to replicate this but only on ubuntu15 not centos7. HOw are you installing salt on ubuntu15? For record I installed it using the bootstrap script as a git install v2016.3.1 |
I'm installing it using deb repository for trusty, and |
@onorua thanks for the additional information. Yeah we don't need the additional state file. Thanks we will get this fixed up. |
Same here: (CentOS 7): [root@ip-10-13-10-85 salt]# salt-call grains.get fqdn_ip4 |
@onorua Does the Therefore, I believe this grain to no longer be populated is intentional (if |
Also, it is worth mentioning that while I was able to reproduce what you're seeing between the 2015.8 and 2016.3 branches, I was only able to do so on minions where the |
Indeed, when I populate domain -
one thing bothers me though... this dependency never stated in documentation, on the systems without
but I can ping fqdn no problems:
What are the requirements to get domain populated automatically? I could not find this in documentation :( |
@onorua Right - thanks for pointing that out. It looks like #29346 has caused a genuine regression here. @adelcast I would like to loop you in here. If there isn't a way to fully restore this behavior, we'll have to revert the change you made in #29346. If it's possible, I'd like to keep the core grains loading light and restore this behavior, but I am not seeing a way to do that currently which the way the code sits right now. |
Looks like the check on fqdn_ip4 and fqdn_ip6 to skip the socket.getaddrinfo call is incomplete since there seems to be cases where the grains['domain'] is empty, but the sockert.getaddrinfo call succeeds, as @onorua pointed out. I ran a few test on my system (Linux 4.1.15, previously I was using 3.15) where I reintroduced the old behavior on fqdn_ip4 and fqdn_ip6. This time socket.getaddrinfo failed quickly....so it's likely that the network stack got better (fails faster). So, I agree, I think we can safely partially revert #29346 (keep the optimization on hostname()). Thanks for the detective work and apologies for the troubles. |
looks good to me, thanks for taking care of this! |
I can confirm that |
Description of Issue/Question
I've discovered really strange behaviour after upgrade,
fqdn_ip4
andfqdn_ip6
are empty.According to documentation it is supported and no word about deprecation
Steps to Reproduce Issue
but as soon as I upgrade to version 2016.3.0 or 1, I've got following result:
I believe this is a bug, but let me know if I'm missing some configuration here.
The text was updated successfully, but these errors were encountered: