-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Permanent re-render template in job. #4343
Comments
@sadpirit Can you file an issue against https://www.github.com/hashicorp/consul-template and link it to this. |
thats a fun one, since a map in Go is not sorted, and will be random ordered on each creation - which is likely also why its re-rendering over and over :) |
@sadpirit I created the issue |
I seem to have this issue even when the data is not a map. As an example, given the following template stanza:
I find that it is re-rendering the secrets/file.env constantly:
As a note, the lease duration is set to quite high:
Nomad v0.8.3 (c85483d) |
I believe I'm running into this problem as well similar to @dansteen My templates looks like this:
|
Actually my report/claim was false. But it does bring up an interesting question for me:
|
I had a dependent service that was in a restart loop with config that depended on it. |
I'm also running into an infinite restart cycle and it's very hard to find out why. I'd also like to know more about the options we have to debug this, e.g. change logs of the template or diffs between re-renders. |
I'm doing some old issue cleanup and it looks like this turned out to be a question rather than a bug, albeit one without much a satisfactory answer. If this comes up again for folks, let's open a new issue and make sure it gets properly triaged. |
I'm going to lock this issue because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active issues. |
Nomad version
Output from
nomad version
0.8.3
Operating system and Environment details
Ubuntu 16.04LTS
Issue
If the nomad template returns an dict, this results in a permanent restart
Reproduction steps
The job will restart indefinitely
If the data in the vaultare stored in an array, it will not result in an error. But vault returns the dictionary in random order.
The text was updated successfully, but these errors were encountered: