-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Nomad agent ignores retry-join server address and uses consul discovery instead on boot. #11404
Comments
Hi @YafimK! I dug into the client code a bit and although
Those behaviors are captured in the
So in the scenario you've described my hunch is that the client can't reach the server and the That being said, can you share the full client and server configuration (redacted as needed)? In the meantime there may be a workaround for the public/private IP that's getting advertised to Consul at least. |
I've opened #11585 with the fix for this. |
I'm going to lock this issue because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active issues. |
Nomad version
Client - Nomad v1.1.0 (2678c36)
Server -
Operating system and Environment details
Linux (Ubuntu focal) - DISTRIB_DESCRIPTION="Ubuntu 20.04.3 LTS"
Linux 127 5.4.0-89-generic #100-Ubuntu SMP Fri Sep 24 14:50:10 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
Issue
On boot, nomad tries to connect to servers and uses consul discovered servers with private addresses instead of public IP which are advertised.
Nomad servers have public IP used for RPC interface and Serf / HTTP are exposed via private IP (the nomad servers and clients don't reside in the same cloud provider).
we have almost been able to solve this by restarting both nomad and consul and also by putting the following in our nomad client configuration:
Reproduction steps
Set up nomad cluster as prescribed whereas nomad agent should be only accessible to nomad server via public servers, and vice versa.
Expected Result
nomad agent should use staticlly defines servers block in nomad.hcl config file and not use consul discovery or the very least use the public advertised rpc address of nomad server and not private.
Actual Result
nomad client agent get the wrong ip of nomad servers (logs above)
Nomad Client logs (if appropriate)
we see the following in the nomad agent logs (1.2.3.1-3 are the public addresses) -
The text was updated successfully, but these errors were encountered: