Skip to content
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

skip check for advertise address for http and rpc in client mode #4687

Closed
wants to merge 1 commit into from
Closed

skip check for advertise address for http and rpc in client mode #4687

wants to merge 1 commit into from

Conversation

tantra35
Copy link
Contributor

This is may be useful when we set bind addr to 127.0.0.1(localhost) when nomad in client mode, and consul.auto_advertise was set into false

Due new nomad rpc communication, its not necessary bind to 0.0.0.0 in client mode, and when nomad agent doiens't advertise him by consul, so we can set bind addr to localhost, but without this patch nomad doesn't start with error:

Failed to parse HTTP advertise address (, 127.0.0.1, 4646, false): Defaulting advertise to localhost is unsafe, please set advertise manually

But this is wrong

@tgross
Copy link
Member

tgross commented Nov 7, 2019

Hi @tantra35! I'm going through and reviewing some of these open PRs.

I'm not totally sure I understand the scenario we're trying to avoid here... can you provide an example client configuration that you think should be ok but is triggering the error message?

@glennschmidt
Copy link

I tried to start a client using the example client config here:
https://github.com/hashicorp/nomad/blob/master/dist/client.hcl
and it failed with the error described above ('defaulting advertise to localhost is unsafe').

To get it to start, I had to change bind_addr = "127.0.0.1" to bind_addr = "0.0.0.0"

Given that it's functioning as a client, it's not obvious to me why it would need to 'advertise' or why it would need to listen for connections on a public interface?

@tgross tgross removed their assignment Oct 5, 2020
@tgross
Copy link
Member

tgross commented Feb 19, 2021

Doing some issue triage cleanup... going to close this one out.

@tgross tgross closed this Feb 19, 2021
@github-actions
Copy link

I'm going to lock this pull request because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active contributions.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 29, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants