This project is mirrored from https://gitee.com/mirrors/nomad.git.
Pull mirroring failed .
Repository mirroring has been paused due to too many failed attempts. It can be resumed by a project maintainer.
Repository mirroring has been paused due to too many failed attempts. It can be resumed by a project maintainer.
- 26 Feb, 2019 5 commits
-
-
Michael Schurter authored
logmon fixes
-
Danielle Tomlinson authored
-
Michael Schurter authored
Other logmon tests should be portable.
-
Mahmood Ali authored
Port some integration tests of driver fingerprinting. Some tests (e.g. `TestFingerprintManager_Run_DriversInBlacklist`) have been subsituted by more isolated tests in `client/pluginmanager/drivermanager/manager_test.go`
-
Danielle Tomlinson authored
docker: Support Stats on Windows
-
- 25 Feb, 2019 4 commits
-
-
Michael Schurter authored
This code chooses to be conservative as opposed to optimal: when failing to reattach to logmon simply return a recoverable error instead of immediately trying to restart logmon. The recoverable error will cause the task's restart policy to be applied and a new logmon will be launched upon restart. Trying to do the optimal approach of simply starting a new logmon requires error string comparison and should be tested against a task actively logging to assert the behavior (are writes blocked? dropped?).
-
Preetha authored
More alloc runner tests ported from 0.8.7
-
Danielle Tomlinson authored
docker: Return undetected before first detection
-
Danielle Tomlinson authored
This commit causes the docker driver to return undetected before it first establishes a connection to the docker daemon. This fixes a bug where hosts without docker installed would return as unhealthy, rather than undetected.
-
- 23 Feb, 2019 1 commit
-
-
Michael Schurter authored
-
- 22 Feb, 2019 19 commits
-
-
Preetha Appan authored
-
Mahmood Ali authored
Port some 0.8.7 alloc runner tests
-
Charlie Voiselle authored
Created .github; Added CoC
-
Charlie Voiselle authored
Set NextEval when making `failed-follow-up` evals
-
Mahmood Ali authored
When Vault token expires and task is restarted, emit `TaskRestartSignal` similar to v0.8.7
-
Mahmood Ali authored
-
Mahmood Ali authored
Port TestAllocRunner_RetryArtifact from https://github.com/hashicorp/nomad/blob/v0.8.7/client/alloc_runner_test.go#L610-L672 I changed the test name because it doesn't actually test that artifact hooks is retried
-
Mahmood Ali authored
-
Preetha authored
Support json logging for CLI output for agent
-
Preetha Appan authored
-
Charlie Voiselle authored
-
Charlie Voiselle authored
* caller should created eval id * prev/next eval used in failed-follow-up
-
Michael Schurter authored
Do not wrap errors from StartTask as that loses Recoverable
-
Danielle Tomlinson authored
-
- 21 Feb, 2019 11 commits
-
-
Michael Schurter authored
There were multiple bugs here: 1. Reattach unmarshalling always returned an error because you can't unmarshal into a nil pointer. 2. The hook data wasn't being saved because it was put on the request struct, not the response struct. 3. The plugin configuration should only have reattach *or* a command set. Not both. 4. Setting Done=true meant the hook was never re-run on agent restart so reattaching was never attempted.
-
Michael Schurter authored
The initial fingerprint message is actually fairly useful, so I bumped it to Debug and fixed the output formatting.
-
Michael Schurter authored
As far as I can tell this is the most straightforward and resilient way to skip error logging on context cancellation with grpc streams. You cannot compare the error against context.Canceled directly as it is of type `*status.statusError`. The next best solution I found was: ```go resp, err := stream.Recv() if code, ok := err.(interface{ Code() code.Code }); ok { if code.Code == code.Canceled { return } } ``` However I think checking ctx.Err() directly makes the code much easier to read and is resilient against grpc API changes.
-
Michael Schurter authored
Fixes restarting on recoverable errors from StartTask. Ports TestTaskRunner_Run_RecoverableStartError from 0.8 which discovered the bug.
-
Michael Schurter authored
-
Michael Schurter authored
-
Michael Schurter authored
Fix regression by restarting on artifact download errors
-
Omar Khawaja authored
* reformat lxc guide * reformat lxc guide
-
Michael Schurter authored
docs: clarify use of toJSON for passwords
-
Preetha Appan authored
-
Mahmood Ali authored
Run Docker tests in Windows AppVeyor CI
-