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

Not working URIs for jobs in organization #2572

Closed
serhiy-storchaka opened this issue Jan 28, 2022 · 0 comments · Fixed by #2579
Closed

Not working URIs for jobs in organization #2572

serhiy-storchaka opened this issue Jan 28, 2022 · 0 comments · Fixed by #2579
Assignees
Labels
bug Something isn't working

Comments

@serhiy-storchaka
Copy link
Contributor

neuro status and any other command which takes a job URI does not work with a job ran in organization.

$ neuro status job:job-3cfa7099-2cda-42ca-9afb-9b2582b4b2d6
ERROR: Illegal argument(s) ({0: DataError('value should be None'), 1: DataError('String is longer than 40 characters')})
$ neuro status job://default/test-org/serhiystorchaka/job-3cfa7099-2cda-42ca-9afb-9b2582b4b2d6
ERROR: Illegal argument(s) ({0: DataError('value should be None'), 1: DataError('String is longer than 40 characters')})
$ neuro status job:test-job2
ERROR: Illegal argument(s) ({0: DataError('value should be None'), 1: DataError('does not match pattern \\A[a-z](?:-?[a-z0-9])*\\Z')})
$ neuro status job://default/test-org/serhiystorchaka/test-job2
ERROR: Illegal argument(s) ({0: DataError('value should be None'), 1: DataError('does not match pattern \\A[a-z](?:-?[a-z0-9])*\\Z')})

It is because the full URI job://{cluster}/{org}/{user}/{jobid} is parsed as cluster={cluster}, owner={org} and name={user}/{jobid}.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant