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

Unable to pass -consul-address via command line #3503

Closed
james-powis opened this issue Nov 4, 2017 · 1 comment · Fixed by #3504
Closed

Unable to pass -consul-address via command line #3503

james-powis opened this issue Nov 4, 2017 · 1 comment · Fixed by #3504

Comments

@james-powis
Copy link
Contributor

Nomad version

Omni:~ james$ nomad -v
Nomad v0.7.0

Operating system and Environment details

Omni:~ james$ uname -a
Darwin Omni.local 16.7.0 Darwin Kernel Version 16.7.0: Thu Jun 15 17:36:27 PDT 2017; root:xnu-3789.70.16~2/RELEASE_X86_64 x86_64

Issue

Omni:~ james$ nomad -v
Nomad v0.7.0
Omni:~ james$ nomad agent -consul-address=192.168.0.211:8500 -dev 2>&1| head -n 3
flag provided but not defined: -consul-address
==> Usage: nomad agent [options]

Reproduction steps

Replace 192.168.0.211 with the ip address of your primary nic.

  • Start consul with the following:
sudo consul agent -dev -node consul -advertise 192.168.0.211 -client 192.168.0.211 -dns-port 53
  • Start nomad with the following
nomad agent -consul-address=192.168.0.211:8500 -dev 2>&1| head -n 3

Note: Running with the following nomad.config does not manifest the same problem

bind_addr = "0.0.0.0" # the default

data_dir  = "/Users/james/nomad_data_dir"

advertise {
  # Defaults to the node's hostname. If the hostname resolves to a loopback
  # address you must manually configure advertise addresses.
  http = "192.168.0.211"
  rpc  = "192.168.0.211"
  #serf = "192.168.0.211:5648" # non-default ports may be specified
  serf = "192.168.0.211"
}

server {
  enabled          = true
  bootstrap_expect = 1
}

client {
  enabled       = true
  network_speed = 10
  options {
    "driver.raw_exec.enable" = "1"
  }
}

consul {
  address = "192.168.0.211:8500"
}
@github-actions
Copy link

github-actions bot commented Dec 6, 2022

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.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 6, 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 a pull request may close this issue.

1 participant