You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The consul services published by nomad set the service address to the advertise address. This is expected behavior, however the health check which is registered against that service is also registered against the service address.
This is unexpected because often times the service address is unreachable from the localhost. Since the Consul agent is expected to run locally, and the default address is on the loopback adapter, it makes sense for the default endpoint of all associated ServiceChecks to be configured against the bind address as opposed to the advertise address. Additionally, the address for the ServiceCheck is not configurable.
Reproduction steps
Install Nomad
Configure Addresses with the interface address
Configure Advertise with unreachable IP
Start Nomad
Registered consul checks will fail against unreachable service address, even though Nomad is healthy.
Suggested Solution
Configure all ServiceChecks with endpoint address and port equal to the bind address (config.Addresses.HTTP and so on)
The text was updated successfully, but these errors were encountered:
@diptanu@dadgar do you have any plan to address this, if its not soon enough (we need this before september end), will you be open to a patch from our side?
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.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
Nomad version
Nomad v0.4.0
Operating system and Environment details
Ubuntu Xenial
Issue
The consul services published by nomad set the service address to the advertise address. This is expected behavior, however the health check which is registered against that service is also registered against the service address.
This is unexpected because often times the service address is unreachable from the localhost. Since the Consul agent is expected to run locally, and the default address is on the loopback adapter, it makes sense for the default endpoint of all associated ServiceChecks to be configured against the bind address as opposed to the advertise address. Additionally, the address for the ServiceCheck is not configurable.
Reproduction steps
Registered consul checks will fail against unreachable service address, even though Nomad is healthy.
Suggested Solution
Configure all ServiceChecks with endpoint address and port equal to the bind address (config.Addresses.HTTP and so on)
The text was updated successfully, but these errors were encountered: