Nomad CLI exec
and logs
randomly fails when used with -task
and -job
combination
#24938
Labels
hcc/jira
stage/accepted
Confirmed, and intend to work on. No timeline committment though.
theme/allocation API
theme/cli
type/bug
Nomad version
Operating system and Environment details
OS Independent (happens on macOS and Linux)
Issue
The nomad CLI subcommand
exec
andlogs
fails randomly when used with-task
and-job
combinations, when used without explicitly specifying allocation ID.Reproduction steps
(ref: https://asciinema.org/a/0oRoEEcho4rs78NosVvOgm8jn)
Create the countdash example job
Run the job against the cluster
Try to
exec
or uselogs
subcommand against a task without explicitly specifying the allocation IDor
Both the above subcommands would randomly fail to pick the right task.
Expected Result
Actual Result
However, repeating the command multiple times will finally work.
Job file (if appropriate)
Nomad Server logs (if appropriate)
Nomad Client logs (if appropriate)
The text was updated successfully, but these errors were encountered: