-
Notifications
You must be signed in to change notification settings - Fork 2k
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
port label not found
error in case when ports are not needed
#3673
Comments
Thanks for reporting this issue, and the PR that seems to introduce this break. Do you also have a jobspec where you do not see this error? |
@pznamensky Why are you registering a service without specifying its port? The service stanza requires a port to be specified as documented here: https://www.nomadproject.io/docs/job-specification/service.html#port. So if anything the bug is that we did not catch the invalid stanza on job submit |
Oops, I missed it. |
Hi @pznamensky! I'm responsible for that validation change in #3619 We never intended to allow jobs to register services without a port, so that PR added validation to prevent it. However after hearing your use case (and discussing some other potential uses I'm sure others' are using), we've decided to allow services without ports. I'll get a PR up ASAP and it will be included in 0.7.1 final. |
Thank you! |
@pznamensky thanks for testing the rc and making 0.7.1 better! We really appreciate it! |
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. |
Nomad version
Nomad v0.7.1-rc1 (b81a2b6)
Issue
Some of our jobs are don't bind any ports.
But with the latest version we started to get error:
It seems that all work fine before this PR: #3619
Job file (if appropriate)
The text was updated successfully, but these errors were encountered: