Skip to content

Add warning to plan when duplicate job names are detected #874

Description

@kiwakiri

Problem Description:

Running nomad-pack run for a single service with a single variables file, the command stopped all other jobs that were previously deployed under the same pack deployment name, without any warning during nomad-pack plan.

Expected behavior:

nomad-pack plan should detect that there are existing jobs with the same name and issue a warning that the jobs will be stopped as part of plan execution.

Actual behavior:

nomad-pack plan does not indicate that any existing jobs will be stopped.
All jobs previously deployed under the same pack deployment name are stopped during run with the warning:
warning: Job '<job name>' is no longer defined in pack deployment '<deployment name>' - stopping

Environment:

nomad-pack version: v0.4.2 (cd4d2a4)
Nomad version: 1.9.6+ent

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions