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

"missing network" constraint w/ bridge network #8684

Closed
cecilphillip opened this issue Aug 18, 2020 · 4 comments
Closed

"missing network" constraint w/ bridge network #8684

cecilphillip opened this issue Aug 18, 2020 · 4 comments

Comments

@cecilphillip
Copy link

cecilphillip commented Aug 18, 2020

Nomad version

v0.12.3

Operating system and Environment details

macOS Catalina 10.15.6
Single node nomad environment

Issue

Short version is.. I was trying to move to the group level network stanza and using the bridge network. When I bring up nomad with nomad agent -dev -config=./ on my macbook it doesn't load the bridge network driver. Works fine if I switch to a Linux VM. Is there something additional that I need to enable?

Reproduction steps

Job file (if appropriate)

    network {
      mode = "bridge"
      port "redis" {to = 6379, static = 6379} 
    }

    task "redis" {
      driver = "docker"
      config {
        image = "redis:3.2"
        ports = ["redis"]
      }

      service {
        name = "redis-cache"
        tags = ["global", "cache"]
        port = "6379"
        address_mode="driver"
        check {
          name     = "alive"
          address_mode="driver"
          type     = "tcp"
          interval = "10s"
          timeout  = "2s"
        }
      }

Nomad Client logs (if appropriate)

2020-08-17T22:54:44.785-0400 [DEBUG] client.fingerprint_mgr: built-in fingerprints: fingerprinters=[arch, cni, consul, cpu, host, memory, network, nomad, signal, storage, vault, env_aws, env_gce]

@nickethier
Copy link
Member

Hey @cecilphillip

The reason this is only working on linux is because the bridge Nomad networking mode is only fingerprinted on linux. If you remove the network mode = "bridge" line all together then it should schedule on macOS. The docker driver docs have been updated as well with current information on how to port map when you're unable to use bridge network mode: https://www.nomadproject.io/docs/drivers/docker#forwarding-and-exposing-ports

Let me know if you have any issues.

@cecilphillip
Copy link
Author

Thanks @nickethier. Yep, that resolved it.
Would it be possible to also add a note in the docs somewhere that the bridge mode doesn't work in MacOS?

@nickethier
Copy link
Member

Yes! I’m glad you got it working 😁

@github-actions
Copy link

github-actions bot commented Nov 3, 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 Nov 3, 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

No branches or pull requests

2 participants