Skip to content

Errors deploying jobs of type parameterized since 0.4.2 #852

@agarfer1

Description

@agarfer1

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

  1. Create a job of type parameterized. Ideally the job should be some kind of infinite loop, for testing purposes.
  2. Deploy the job. It might work if it has no instances of the job running.
  3. Launch an instance of the job.
  4. Perform the deploy again using nomad-pack 0.4.2. The process should fail.
  5. Launch another instance of the job, since it would have been stopped.
  6. Perform the deploy again using nomad-pack 0.4.1. It should work.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions