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

Consul service doesn't work if port is omitted #1084

Closed
phinze opened this issue Apr 12, 2016 · 3 comments
Closed

Consul service doesn't work if port is omitted #1084

phinze opened this issue Apr 12, 2016 · 3 comments

Comments

@phinze
Copy link
Contributor

phinze commented Apr 12, 2016

Nomad version

master

Operating system and Environment details

all

Issue

When a service is defined without a port, nomad fails to register the service in Consul.

Reproduction steps

Create a nomad job w/ the following service block:

      service {
        name = "foo"
      }

This should work, but instead results in the following logs in the client:

2016/04/12 16:43:25 [ERR] driver.docker: error registering services with consul for task: "foo": 1 error(s) occurred:

* host for the service "foo"  couldn't be found

Investigation reveals that the code seems to assume that a PortLabel is specified, when this should be optional.

@diptanu
Copy link
Contributor

diptanu commented Apr 13, 2016

@phinze This was by design, wasn't sure if users would want to register services which don't offer a service over the network. This can be easily fixed. We can get it out by 0.3.2

@dadgar
Copy link
Contributor

dadgar commented Apr 14, 2016

Fixed by #1092

@dadgar dadgar closed this as completed Apr 14, 2016
@github-actions
Copy link

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 23, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants