-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Nomad renders incorrect service address and ports in template. #18203
Comments
Hi @blmhemu, what does the CLI output of the |
Hi @jrasell ! Yup it does match - The service info shows three IDs
|
FWIW, I tried |
#16616 is a longer issue about services failing to be removed, which smells a lot like the problem here. Others in that thread have also reported the problem happening with Nomad service discovery so I will update the title. @blmhemu I will close this one as duplicate to focus the discussion in a single place. Feel free to 👍 and add any additional comments there. Thanks for the report! |
Nomad version
Output from
nomad version
1.6.1
Operating system and Environment details
Fedora 38
Issue
Here is the template in the nomad job
here is what is rendered
But the thing is only one of the above ip:port is valid. There is only one service (count==1) and even nomad shows only one allocation. This leads to the situation where my reverse proxy fails to get upstream 66% of the time.
This happens not just for one service, but for multiple services. I had to manually delete (cleanup) the services from nomad to fix this.
Reproduction steps
Expected Result
Actual Result
Job file (if appropriate)
Nomad Server logs (if appropriate)
Nomad Client logs (if appropriate)
The text was updated successfully, but these errors were encountered: