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 May, 2020 5 commits
-
-
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.
-
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.
-
Mahmood Ali authored
-
Mahmood Ali authored
By convention, go functions take `context.Context` as the first argument.
-
Mahmood Ali authored
When disabling volumewatcher (at the end of a test), avoid starting a new update batcher with its new goroutine.
-
- 21 May, 2020 5 commits
-
-
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.
-
Tim Gross authored
Adds `NetIsolationModes`, `MustInitiateNetwork`, and `MountConfigs` fields to the driver `Capabilities` internals documentation.
-
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.
-
Michael Lange authored
UI: CSI Plugin Allocations Page
-
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...
-
- 20 May, 2020 13 commits
-
-
Michael Lange authored
-
Michael Lange authored
-
Tim Gross authored
Following the new volumewatcher in #7794 and performance improvements to it that landed afterwards, there's no particular reason we should be threading claim releases through the GC eval rather than writing an empty `CSIVolumeClaimRequest` with the mode set to `CSIVolumeClaimRelease`, just as the GC evaluation would do. Also, by batching up these raft messages, we can reduce the amount of raft writes by 1 and cross-server RPCs by 1 per volume we release claims on.
-
Tim Gross authored
The `stats_hook` writes an Error log every time an allocation becomes terminal. This is a normal condition, not an error. A real error condition like a failure to collect the stats is logged later. It just creates log noise, and this is a particularly bad operator experience for heavy batch workloads.
-
Tim Gross authored
The tasklet passes the timeout for the script check into the task driver's `Exec`, and its up to the task driver to enforce that via a golang `context.WithDeadline`. In practice, this deadline is started before the task driver starts setting up the execution environment (because we need it to do things like timeout Docker API calls). Under even moderate load, the time it takes to set up the execution context for the script check regularly exceeds a full second or two. This can cause script checks to unexpected timeout or even never execute if the context expires before the task driver ever gets a chance to `execve`. This changeset adds a notice to operators about setting script check timeouts with plenty of padding and what to monitor for problems.
-
Tim Gross authored
Some of the CSI RPC endpoints were missing validation that the ID or the Volume definition was present. This could result in nonsense `CSIVolume` structs being written to raft during registration. This changeset corrects that bug and adds validation checks to present nicer error messages to operators in some other cases.
-
James Rasell authored
api: return custom error if API attempts to decode empty body.
-
James Rasell authored
docs: update CSI PUT operation blocking query support yes->no.
-
Michael Lange authored
-
Michael Lange authored
-
Michael Lange authored
-
Michael Lange authored
Typically these filterable list views don't have titles beyond the breadcrumbs, but since this page has no search bar, the title really helps balance it out.
-
Michael Lange authored
-
- 19 May, 2020 17 commits
-
-
Mahmood Ali authored
Update hcl2 vendoring
-
Mahmood Ali authored
The hcl2 library has moved from http://github.com/hashicorp/hcl2 to https://github.com/hashicorp/hcl/tree/hcl2. This updates Nomad's vendoring to start using hcl2 library. Also updates some related libraries (e.g. `github.com/zclconf/go-cty/cty` and `github.com/apparentlymart/go-textseg`).
-
Charlie Voiselle authored
update docs to mention spread algorithm
-
Shantanu Gadgil authored
-
Charlie Voiselle authored
[docs] Fix version typo
-
Charlie Voiselle authored
Creating a FAQ question to provide a home for additional context around bootstrapping. Linking from API page to `default_server_config` attribute. Added sample API response to to discuss "Updated: false"
-
Michael Lange authored
Add missing bug fix from the changelog for 0.11.2
-
Michael Lange authored
UI: CSI node only support
-
Seth Hoenig authored
consul/connect: use task kind to get service name
-
James Rasell authored
-
Charlie Voiselle authored
-
Michael Lange authored
-
James Rasell authored
-
Michael Lange authored
-
Michael Lange authored
-
Michael Lange authored
-
Michael Lange authored
-