-
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 worker nodes not joining via consul #2264
Comments
FWIW, this is a new test cluster. I'm actively working to set it up and start using it and can gather additional data if needed. As a workaround, I'm deploying workers with |
@stevenscg Can you |
@dadgar Yes, I believe that the servers are registered and healthy in Consul.... From the same worker node I captured logs from earlier (WITH curl http://127.0.0.1:8500/v1/agent/checks?pretty=true
{
"289cc7e1737904489a71a4705d50e2dea3a55881": {
"Node": "i-0ac1cf890221be861",
"CheckID": "289cc7e1737904489a71a4705d50e2dea3a55881",
"Name": "Nomad Client HTTP Check",
"Status": "passing",
"Notes": "",
"Output": "HTTP GET http://0.0.0.0:4646/v1/agent/servers: 200 OK Output: [\"10.101.25.219:4647\",\"10.101.34.7:4647\",\"10.101.27.97:4647\"]",
"ServiceID": "_nomad-client-nomad-client-http",
"ServiceName": "nomad-client",
"CreateIndex": 0,
"ModifyIndex": 0
}
} From the same worker node I captured logs from earlier (WITHOUT {
"289cc7e1737904489a71a4705d50e2dea3a55881": {
"Node": "i-0ac1cf890221be861",
"CheckID": "289cc7e1737904489a71a4705d50e2dea3a55881",
"Name": "Nomad Client HTTP Check",
"Status": "passing",
"Notes": "",
"Output": "HTTP GET http://0.0.0.0:4646/v1/agent/servers: 200 OK Output: []",
"ServiceID": "_nomad-client-nomad-client-http",
"ServiceName": "nomad-client",
"CreateIndex": 0,
"ModifyIndex": 0
}
} Catalog from the same node (truncated):
|
This PR fixes config merging/copying code. Fixes #2264
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. |
Issue
Nomad worker nodes will not automatically join the cluster using consul as configured.
The only way I can get a client-only nomad agent to join the cluster is to add at least 1 server address to the
client.servers
configuration option.Nomad version
Nomad v0.5.4. I may also have observed this back on v0.5.3 and v0.5.2.
Operating system and Environment details
CentOS 7 on AWS.
Security group ingress allowed on ports 4646, 4647, 4648 for the worker node.
Connectivity between worker and servers good.
Consul agent running locally on the worker node and connected to an existing consul cluster.
Nomad agent configured to use
client_auto_join
.Nomad agent configuration:
Nomad Client logs
No servers are returned from the local node API:
The text was updated successfully, but these errors were encountered: