-
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
add -data-dir option when starting nomad #2345
Conversation
Could you instead add it to the config? |
A change in the behavior of `os.Rename` in Go 1.8 brought to light a difference in the logic between `{Alloc,Task}Runner` and this test: AllocRunner builds the alloc dir, moves dirs if necessary, and then lets TaskRunner call TaskDir.Build(). This test called `TaskDir.Build` *before* `AllocDir.Move`, so in Go 1.8 it failed to `os.Rename over` the empty {data,local} dirs. I updated the test to behave like the real code, but I defensively added `os.Remove` calls as a subtle change in call order shouldn't break this code. `os.Remove` won't remove a non-empty directory, so it's still safe.
This commit makes an explicit note in the documentation for the Nomad task specification about capping of `max_kill_timeout` based on agent configuration as well as task configuration.
This PR removes defaulting from the parse, fixes some regressions that existed as part of the parser refactor and fixes the tests.
This PR adds the drivers that are enabled to the output of `nomad node-status`
Updated. |
Hold off... I should have checked this first. |
Ok, should be good now. |
@scottw Unfortunately I think something happened when you rebased as you pulled in a lot of other changes. |
Those should have been from master. Sorry for the mess. I'm going to close this request and make a clean fork. |
I'm going to lock this pull request because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active contributions. |
When you run the commands from the guide as it exists now returns:
By adding
-data-dir
nomad starts properly.