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

[UI] Services with variables in their name don't show properly in the UI #18164

Closed
SamMousa opened this issue Aug 7, 2023 · 3 comments
Closed

Comments

@SamMousa
Copy link
Contributor

SamMousa commented Aug 7, 2023

This issue could be related to: #17109

Nomad version

v1.6.1

Operating system and Environment details

Linux

Issue

I'm using some job files that expose a service with a variable in the name: ${NOMAD_JOB_NAME}
This works well, the service is exposed in the API and discovery, for example, Traefik works properly.

In the UI however I'm seeing no allocations for the service.
This is the screenshot from inside an allocation (/ui/alllocations/{uuid}:
image

Note that this is correct, other than the name which did not get replaced.

However when I go to the job services (`/ui/jobs/{job-name}@{namespace}/services:
image

Reproduction steps

Create a job that exposes a service and use "${NOMAD_JOB_NAME}" for the service name.

Expected Result

It should properly display in the UI.

Actual Result

It doesn't show allocations at the job level.

@SamMousa
Copy link
Contributor Author

SamMousa commented Aug 7, 2023

Also confirmed that changing the service name to the literal value of the job name resolves the issue in the UI.

@schmichael
Copy link
Member

Thanks for the bug report @SamMousa. This is likely due to us interpolating service names on the client, but there's no reason we couldn't interpolate static values such as job name on the server to fix issues like this.

@lgfa29
Copy link
Contributor

lgfa29 commented Aug 16, 2023

I think this is a duplicated of #9741, so I'm going to close this one. Feel free to add a 👍 or more comments and details there, or let us know if you think this is a different problem and we can reopen it.

Thanks for the report!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

No branches or pull requests

3 participants