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.
- 14 Feb, 2019 2 commits
-
-
Mahmood Ali authored
Co-Authored-By:
schmichael <michael.schurter@gmail.com>
-
Mahmood Ali authored
Co-Authored-By:
schmichael <michael.schurter@gmail.com>
-
- 12 Feb, 2019 4 commits
-
-
Michael Schurter authored
-
Michael Schurter authored
Broke ShutdownDelay but the test was timing dependent so it just appeared flaky. Made the test slower so that it should never incorrectly pass.
-
Michael Schurter authored
-
Michael Schurter authored
Also fix race conditions in the mock vault client.
-
- 22 Jan, 2019 3 commits
-
-
Michael Schurter authored
Added ability to adjust the number of events the TaskRunner keeps as there's no way to observe all events otherwise. Task events differ slightly from 0.8 because 0.9 emits Terminated every time a task exits instead of only when it exits on its own (not due to restart or kill). 0.9 does not emit Killing/Killed for restarts like 0.8 which seems fine as `Restart Signaled/Terminated/Restarting` is more descriptive. Original v0.8 events emitted: ``` expected := []string{ "Received", "Task Setup", "Started", "Restart Signaled", "Killing", "Killed", "Restarting", "Started", "Restart Signaled", "Killing", "Killed", "Restarting", "Started", "Restart Signaled", "Killing", "Killed", "Not Restarting", } ```
-
Michael Schurter authored
-
Michael Schurter authored
Also fix signal error handling in mock_driver.
-
- 18 Jan, 2019 1 commit
-
-
Chris Baker authored
-
- 15 Jan, 2019 1 commit
-
-
Michael Schurter authored
Porting test from 0.8 to 0.9.
-
- 14 Jan, 2019 1 commit
-
-
Michael Schurter authored
Restore a pre-0.9 test that asserts Consul services are deregistered before a task's shutdown delay.
-
- 07 Jan, 2019 1 commit
-
-
Alex Dadgar authored
-
- 19 Dec, 2018 2 commits
-
-
Nick Ethier authored
-
Nick Ethier authored
The driver manager is modeled after the device manager and is started by the client. It's responsible for handling driver lifecycle and reattachment state, as well as processing the incomming fingerprint and task events from each driver. The mananger exposes a method for registering event handlers for task events that is used by the task runner to update the server when a task has been updated with an event. Since driver fingerprinting has been implemented by the driver manager, it is no longer needed in the fingerprint mananger and has been removed.
-
- 28 Nov, 2018 2 commits
-
-
Michael Schurter authored
The old approach was incomplete. Hook env vars are now: * persisted and restored between agent restarts * deterministic (LWW if 2 hooks set the same key)
-
Alex Dadgar authored
This PR introduces a device hook that retrieves the device mount information for an allocation. It also updates the computed node class computation to take into account devices. TODO Fix the task runner unit test. The environment variable is being lost even though it is being properly set in the prestart hook.
-
- 20 Nov, 2018 1 commit
-
-
Michael Schurter authored
Client.Shutdown now blocks until all AllocRunners and TaskRunners have exited their Run loops. Tasks are left running.
-
- 16 Nov, 2018 3 commits
-
-
Michael Schurter authored
-
Michael Schurter authored
The error messages are really bad, but it's extremely difficult to produce good error messages without the original HCL.
-
Michael Schurter authored
Also add missing SetDriverNetwork calls.
-
- 13 Nov, 2018 1 commit
-
-
Mahmood Ali authored
-
- 05 Nov, 2018 2 commits
-
-
Michael Schurter authored
-
Michael Schurter authored
Task restoring works but dead tasks may be restarted
-
- 16 Oct, 2018 2 commits
-
-
Alex Dadgar authored
-
Michael Schurter authored
-
- 15 Sep, 2018 1 commit
-
-
Alex Dadgar authored
-
- 13 Jun, 2018 2 commits
-
-
Alex Dadgar authored
-
Alex Dadgar authored
-
- 12 Jun, 2018 1 commit
-
-
Alex Dadgar authored
-
- 01 Jun, 2018 1 commit
-
-
Preetha Appan authored
-
- 07 May, 2018 1 commit
-
-
Michael Schurter authored
Guard against Canary being set to false at the same time as an allocation is being stopped: this could cause RemoveTask to be called with the wrong Canary value and leaking a service. Deleting both Canary values is the safest route.
-
- 15 Mar, 2018 1 commit
-
-
Michael Schurter authored
Instead of checking Consul's version on startup to see if it supports TLSSkipVerify, assume that it does and only log in the job service handler if we discover Consul does not support TLSSkipVerify. The old code would break TLSSkipVerify support if Nomad started before Consul (such as on system boot) as TLSSkipVerify would default to false if Consul wasn't running. Since TLSSkipVerify has been supported since Consul 0.7.2, it's safe to relax our handling.
-
- 11 Mar, 2018 1 commit
-
-
Josh Soref authored
-
- 15 Feb, 2018 1 commit
-
-
Alex Dadgar authored
-
- 08 Dec, 2017 2 commits
-
-
Michael Schurter authored
Also skip getting an address for script checks which don't use them. Fixed a weird invalid reserved port in a TaskRunner test helper as well as a problem with our mock Alloc/Job. Hopefully the latter doesn't cause other tests to fail, but we were referencing an invalid PortLabel and just not catching it before.
-
Michael Schurter authored
Rely less on the mockConsulServiceClient because the real consul.ServiceClient needs all the testing it can get!
-
- 03 Nov, 2017 1 commit
-
-
Preetha Appan authored
Move logic for determinic event display message to task_runner, added two new fields DisplayMessage and Details.
-
- 26 Sep, 2017 1 commit
-
-
Alex Dadgar authored
-
- 14 Sep, 2017 1 commit
-
-
Michael Schurter authored
Also expose a mock Consul Agent to allow testing ServiceClient and checkWatcher from TaskRunner without actually talking to a real Consul.
-