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

Change on Consul / Vault variable drops nomad-pack related metadata, because of template reload #589

Closed
linuxmail opened this issue Nov 25, 2024 · 1 comment

Comments

@linuxmail
Copy link

linuxmail commented Nov 25, 2024

hi,

right now we using Levant and templates, where we can edit / change / Consul variables for the running containers with a template entry like:

        driver = "docker"
          template {
            data = <<EOH
            {{key "nomad/auth_api/environment"}}
            EOH
              destination = "local/env"
              env         = true
          }

Nomad will refresh container(s) and all is fine .. but using nomad-pack .. it reverts from a nomad-pack deployed app, to a normal container. If we try to update the container via CI as Normad-pack again .. it fails:

echo "${LOCAL_CERT}" > $CI_PROJECT_DIR/server.crt # collapsed multi-line command ! Failed Job Conflict Validation ! Error: job with id "project1" already exists and is not managed by nomad pack ! Context: ! Template Name: project1/templates/project1.nomad.tpl Error: Failed to deploy nomad pack Cleaning up project directory and file based variables 00:01 ERROR: Job failed: exit code 1

The only way for now is to remove the job and redeploy.

Is that expected ? How can we avoid it or is it a bug ?

maybe related: #561

cu denny

@tgross
Copy link
Member

tgross commented Feb 10, 2025

Going to mark this as a duplicate of #561, as it appears to be related.

@tgross tgross closed this as completed Feb 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants