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.
  1. 14 Feb, 2019 2 commits
  2. 12 Feb, 2019 4 commits
  3. 22 Jan, 2019 3 commits
    • Michael Schurter's avatar
      test: port TestTaskRunner_CheckWatcher_Restart · 06119e25
      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",
      	}
      ```
      06119e25
    • Michael Schurter's avatar
      test: port RestartTask from 0.8 · 81334cd3
      Michael Schurter authored
      81334cd3
    • Michael Schurter's avatar
      test: port SignalFailure test from 0.8 · 418d360d
      Michael Schurter authored
      Also fix signal error handling in mock_driver.
      418d360d
  4. 18 Jan, 2019 1 commit
  5. 15 Jan, 2019 1 commit
  6. 14 Jan, 2019 1 commit
  7. 07 Jan, 2019 1 commit
  8. 19 Dec, 2018 2 commits
    • Nick Ethier's avatar
    • Nick Ethier's avatar
      client/drivermananger: add driver manager · 39ca1b00
      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.
      39ca1b00
  9. 28 Nov, 2018 2 commits
    • Michael Schurter's avatar
      client: properly support hook env vars · a13607f2
      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)
      a13607f2
    • Alex Dadgar's avatar
      Device hook and devices affect computed node class · 429c5bb8
      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.
      429c5bb8
  10. 20 Nov, 2018 1 commit
  11. 16 Nov, 2018 3 commits
  12. 13 Nov, 2018 1 commit
  13. 05 Nov, 2018 2 commits
  14. 16 Oct, 2018 2 commits
  15. 15 Sep, 2018 1 commit
  16. 13 Jun, 2018 2 commits
  17. 12 Jun, 2018 1 commit
  18. 01 Jun, 2018 1 commit
  19. 07 May, 2018 1 commit
    • Michael Schurter's avatar
      consul: remove services with/without canary tags · 435a6bdd
      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.
      435a6bdd
  20. 15 Mar, 2018 1 commit
    • Michael Schurter's avatar
      Replace Consul TLSSkipVerify handling · 9f50ab33
      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.
      9f50ab33
  21. 11 Mar, 2018 1 commit
  22. 15 Feb, 2018 1 commit
  23. 08 Dec, 2017 2 commits
    • Michael Schurter's avatar
      Validate port label for host address mode · b9993588
      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.
      b9993588
    • Michael Schurter's avatar
      Test Consul from TaskRunner thoroughly · 74e7d57b
      Michael Schurter authored
      Rely less on the mockConsulServiceClient because the real
      consul.ServiceClient needs all the testing it can get!
      74e7d57b
  24. 03 Nov, 2017 1 commit
  25. 26 Sep, 2017 1 commit
  26. 14 Sep, 2017 1 commit