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
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.
The text was updated successfully, but these errors were encountered:
@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
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
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:
This should work, but instead results in the following logs in the client:
Investigation reveals that the code seems to assume that a
PortLabel
is specified, when this should be optional.The text was updated successfully, but these errors were encountered: