You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Interpolation for NOMAD_ALLOC_DIR, NOMAD_TASK_DIR, and NOMAD_SECRETS_DIR is broken for template stanzas when using task drivers like raw_exec which do not have any filesystem isolation.
The way the NOMAD_*_DIR environment variables are initialized depends on whether or not the task driver supports filesystem isolation:
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.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
Nomad version
Nomad v0.12.8 (b850164)
Issue
Interpolation for
NOMAD_ALLOC_DIR
,NOMAD_TASK_DIR
, andNOMAD_SECRETS_DIR
is broken fortemplate
stanzas when using task drivers likeraw_exec
which do not have any filesystem isolation.The way the
NOMAD_*_DIR
environment variables are initialized depends on whether or not the task driver supports filesystem isolation:https://github.com/hashicorp/nomad/blob/v0.12.8/client/allocrunner/taskrunner/task_dir_hook.go#L77-L98
However, when interpolating these variables for templating we improperly handle them and cause them to be broken/unusable.
See https://github.com/hashicorp/nomad/pull/9383/files#r526105415 and the associated PR description.
Reproduction steps
In an agent with raw_exec enabled (or the dev agent):
Job file (if appropriate)
https://gist.github.com/schmichael/2a9132537956c6c764461bb59671c45c
The text was updated successfully, but these errors were encountered: