hashicorp / hashicorp/nomad

Multiple jobs with template stanza to the same destination docker mount file fail

Open
#10,374 2 comments 0 reactions 0 assignees View on GitHub
stage/waiting-reply theme/template type/bug
Dominant language
Go
Stars
17k
Forks
2.1k
Avg merge
1d 9h
Merged PRs (30d)
105

Description

Board,

I am working to have multiple docker jobs run with a template stanza to define a config in the docker. When I run one docker it works perfectly. When I run another job with a template entry in the job to the same destination docker /local/filename I have a constant reboot of the docker job.

If I change the destination /local/filename to be different on the second job my job runs successfully.

### Nomad version
Nomad v1.0.4 (9294f35f9aa8dbb4acb6e85fa88e3e2534a3e41a)

### Operating system and Environment details
Ubuntu 20.04 LTS
### Issue
two jobs with template stanza statements to the same /loca/filename cause a failure on the second
### Reproduction steps
run two jobs with a common destination /local/filename, the second will fail.
#### Expected Result
Two Jobs running successfully.
#### Actual Result
The second job loops and fails.
### Job file (if appropriate)

```hcl
template {
data = <

Contributor guide

No contributing guide indexed for this repository

Research direction

The issue names no source files or tests. Start by reproducing two Docker jobs with template stanzas writing to the same destination, then inspect the client and allocation behavior around the failing second job. Done means both jobs run successfully while sharing the destination path, with the failure explained or covered by a regression test.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, go
Domain
devops, infrastructure
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.