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

Unable to get job status: Multiple matches found for id "<job_name>" #3117

Closed
pznamensky opened this issue Aug 29, 2017 · 3 comments · Fixed by #3120
Closed

Unable to get job status: Multiple matches found for id "<job_name>" #3117

pznamensky opened this issue Aug 29, 2017 · 3 comments · Fixed by #3120

Comments

@pznamensky
Copy link

Hi,
We're unable to get job's status if it's name can be part of another job name.
For instance:

~ $ nomad status
ID        Type     Priority  Status   Submit Date
test-job    service  50        running  08/23/17 16:40:12 MSK                                                                                          
test-job1   service  50        running  08/23/17 22:58:17 MSK                                                                                          
test-job10  service  50        running  08/23/17 22:58:13 MSK                                                                                          
~ $ nomad status test-job
Multiple matches found for id "test-job"

~ $ nomad status test-job1
Multiple matches found for id "test-job1"

~ $ nomad status test-job10
ID            = test-job10
Name          = test-job10
Submit Date   = 08/23/17 22:58:13 MSK
Type          = service
Priority      = 50
Datacenters   = staging
Status        = running
Periodic      = false
Parameterized = false

Summary
Task Group  Queued  Starting  Running  Failed  Complete  Lost
test-job      0       0         1        0       0         0

Latest Deployment
ID          = 8e3fea8c
Status      = successful
Description = Deployment completed successfully

Deployed
Task Group  Desired  Placed  Healthy  Unhealthy
test-job      1        1       1        0

Allocations
ID        Node ID   Task Group  Version  Desired  Status   Created At
686bb943  60ad5a4a  test-job      1        run      running  08/26/17 05:49:23 MSK

Nomad version

Nomad v0.7.0-dev (6fb08b8)

@dsolsona
Copy link

I can reproduce this with Nomad 0.6.2, it is not possible to get the status of a job if you have multiple jobs that have the same prefix.

This works fine in Nomad 0.6.0

@pznamensky
Copy link
Author

Yes, nomad job status <job_name> works fine.

@github-actions
Copy link

github-actions bot commented Dec 8, 2022

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

Successfully merging a pull request may close this issue.

3 participants