-
Notifications
You must be signed in to change notification settings - Fork 63
Errors deploying jobs of type parameterized since 0.4.2 #852
Copy link
Copy link
Open
Description
Environment
The error seems to be present since version 0.4.2 and is currently present in the nightly version.
The environment is a Gitlab pipeline using the dockerhub version of nomad-pack (hashicorp/nomad-pack:0.4.2)
Description of the problem
This error occurs for jobs of type parameterized/dispatch. And it seems that since 0.4.2 nomad-pack tries to stop the jobs currently running. And it actually goes through with it and stops them.
Job 'job-requester' in pack deployment 'skeleton' registered successfully
warning: Job 'job-requester/periodic-1774607280' is no longer defined in pack deployment 'skeleton' - stopping
And at the end, this is reported as a failed deployment.
The same job definition but using version 0.4.1 works correctly:
Job 'job-requester' in pack deployment 'skeleton' registered successfully
Pack successfully deployed. Use packs/skeleton/ to manage this deployed instance with plan, stop, destroy, or info
Congrats! You deployed the xyz pack on Nomad.
Reproduction steps
- Create a job of type parameterized. Ideally the job should be some kind of infinite loop, for testing purposes.
- Deploy the job. It might work if it has no instances of the job running.
- Launch an instance of the job.
- Perform the deploy again using nomad-pack 0.4.2. The process should fail.
- Launch another instance of the job, since it would have been stopped.
- Perform the deploy again using nomad-pack 0.4.1. It should work.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels