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. 26 May, 2020 5 commits
    • Mahmood Ali's avatar
      cleanup driver eventor goroutines · d6c75e30
      Mahmood Ali authored
      This fixes few cases where driver eventor goroutines are leaked during
      normal operations, but especially so in tests.
      
      This change makes few modifications:
      
      First, it switches drivers to use `Context`s to manage shutdown events.
      Previously, it relied on callers invoking `.Shutdown()` function that is
      specific to internal drivers only and require casting.  Using `Contexts`
      provide a consistent idiomatic way to manage lifecycle for both internal
      and external drivers.
      
      Also, I discovered few places where we don't clean up a temporary driver
      instance in the plugin catalog code, where we dispense a driver to
      inspect and validate the schema config without properly cleaning it up.
      d6c75e30
    • Mahmood Ali's avatar
      terminate leader goroutines on shutdown · 29eca948
      Mahmood Ali authored
      Ensure that nomad steps down (and terminate leader goroutines) on
      shutdown, when the server is the leader.
      
      Without this change, `monitorLeadership` may handle `shutdownCh` event
      and exit early before handling the raft `leaderCh` event and end up
      leaking leadership goroutines.
      29eca948
    • Mahmood Ali's avatar
      fix a trace logline · 4a7f4b22
      Mahmood Ali authored
      4a7f4b22
    • Mahmood Ali's avatar
      refactor: context is first parameter · 2bdbed09
      Mahmood Ali authored
      By convention, go functions take `context.Context` as the first
      argument.
      2bdbed09
    • Mahmood Ali's avatar
      volumewatcher: no batcher when disabling · ada9a6a8
      Mahmood Ali authored
      When disabling volumewatcher (at the end of a test), avoid starting a
      new update batcher with its new goroutine.
      ada9a6a8
  2. 21 May, 2020 5 commits
    • Tim Gross's avatar
      csi: skip unit tests on unsupported platforms (#8033) · cc7e4b22
      Tim Gross authored
      Some of the unit tests for CSI require platform-specific APIs that aren't
      available on macOS. We can safely skip these tests.
      cc7e4b22
    • Tim Gross's avatar
      docs: add missing fields to driver Capabilities (#8037) · 262cafcd
      Tim Gross authored
      Adds `NetIsolationModes`, `MustInitiateNetwork`, and `MountConfigs` fields to
      the driver `Capabilities` internals documentation.
      262cafcd
    • Buck Doyle's avatar
      Add test-timing comparison for UI PRs (#7929) · 07fb795f
      Buck Doyle authored
      This runs ember-test-audit for UI PRs to compare how long
      the tests take for the base vs the PR. It posts or updates
      a comparison of times and test count.
      
      It’s somewhat slow to report back as it runs the test suite
      three times to even out variability in a shared environment.
      If we end up being unhappy with that slowness, we could try
      running the repetitions in parallel as well, but that would
      involve more changes to ember-test-audit.
      07fb795f
    • Michael Lange's avatar
      Merge pull request #8024 from hashicorp/f-ui/csi-plugin-allocations · 4b545360
      Michael Lange authored
      UI: CSI Plugin Allocations Page
      4b545360
    • Tim Gross's avatar
      volumes: return better error messages for unsupported task drivers (#8030) · 8860b72b
      Tim Gross authored
      When an allocation runs for a task driver that can't support volume mounts,
      the mounting will fail in a way that can be hard to understand. With host
      volumes this usually means failing silently, whereas with CSI the operator
      gets inscrutable internals exposed in the `nomad alloc status`.
      
      This changeset adds a MountConfig field to the task driver Capabilities
      response. We validate this when the `csi_hook` or `volume_hook` fires and
      return a user-friendly error.
      
      Note that we don't currently have a way to get driver capabilities up to the
      server, except through attributes. Validating this when the user initially
      submits the jobspec would be even better than what we're doing here (and could
      be useful for all our other capabilities), but that's out of scope for this
      changeset.
      
      Also note that the MountConfig enum starts with "supports all" in order to
      support community plugins in a backwards compatible way, rather than...
      8860b72b
  3. 20 May, 2020 13 commits
  4. 19 May, 2020 17 commits