Open notnoop opened 5 years ago
Hey there
Since this issue hasn't had any activity in a while - we're going to automatically close it in 30 days. If you're still seeing this issue with the latest version of Nomad, please respond here and we'll keep this open and take another look at this.
Thanks!
This issue will be auto-closed because there hasn't been any activity for a few months. Feel free to open a new one if you still experience this problem :+1:
Nomad version
Also affects v0.9.1 and v0.9.2
Operating system and Environment details
Affects macOS installation too.
Issue
Nomad 0.9.0 started interpolating variables appearing anywhere in task driver config, and failing if nomad is unable to interpolate. Nomad 0.8 jobs would interpolate if we can, but leave interpolation text unprocessed if it couldn't. This means that Nomad 0.8 jobs that used shell interpolation with
"${ENV_VAR}"
syntax stop working.Operators can workaround behavior by referencing env-var differently, e.g. without braces (i.e.
$ENV_VAR
) or by double quoting env-var reference (e.g.$${ENV_VAR}
).Reproduction steps
On 0.8.7, run the following:
Then try running it against a 0.9.X release
Job file (if appropriate)
Observed
Notice below how task completes successfully on 0.8.7, but fails to even start on 0.9.2:
On Nomad 0.8.7
On 0.9.2: