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.
- 18 Apr, 2022 2 commits
-
-
Seth Hoenig authored
This PR updates the changelog, adds notes the 1.3 upgrade guide, and updates the connect integration docs with documentation about the new requirement on Consul ACL policies of Consul agent default anonymous ACL tokens.
-
Jorge Marey authored
-
- 16 Apr, 2022 1 commit
-
-
Shishir authored
* Add os to NodeListStub struct. Signed-off-by:
Shishir Mahajan <smahajan@roblox.com> * Add os as a query param to /v1/nodes. Signed-off-by:
Shishir Mahajan <smahajan@roblox.com> * Add test: os as a query param to /v1/nodes. Signed-off-by:
Shishir Mahajan <smahajan@roblox.com>
-
- 15 Apr, 2022 9 commits
-
-
Tim Gross authored
The CSI HTTP API has to transform the CSI volume to redact secrets, remove the claims fields, and to consolidate the allocation stubs into a single slice of alloc stubs. This was done manually in #8590 but this is a large amount of code and has proven both very bug prone (see #8659, #8666, #8699, #8735, and #12150) and requires updating lots of code every time we add a field to volumes or plugins. In #10202 we introduce encoding improvements for the `Node` struct that allow a more minimal transformation. Apply this same approach to serializing `structs.CSIVolume` to API responses. Also, the original reasoning behind #8590 for plugins no longer holds because the counts are now denormalized within the state store, so we can simply remove this transformation entirely.
-
Tim Gross authored
The API for `CSIVolume.List` sorts by created index and not by ID, which breaks the logic for prefix matching in the `volume status` output when the prefix is also an exact match. Ensure that we're handling this case correctly.
-
Kevin Wang authored
Co-authored-by:
Luiz Aoqui <luiz@hashicorp.com>
-
Derek Strickland authored
-
Derek Strickland authored
* structs: Add helper method for checking if alloc is configured to disconnect * system_scheduler: Add support for disconnected clients
-
Tim Gross authored
The Nomad client's `csi_hook` interpolates the alloc suffix with the volume request's name for CSI volumes with `per_alloc = true`, turning `example` into `example[1]`. We need to do this same behavior in the `alloc status` output so that we show the correct volume.
-
Seth Hoenig authored
ci: ensure package coverage of test-core
-
Lars Lehtonen authored
-
Seth Hoenig authored
-
- 14 Apr, 2022 10 commits
-
-
Michael Schurter authored
- Moved federation docs to the bottom since *everyone* is potentially affected by the other sections on the page, but only users of federation are affected by it. - Added section on the plan for node rejected bug since it is fairly easy to diagnose and removing affected nodes is a fairly reliable workaround. - Mention 5s cliff for wait_for_index. - Remove the lie that we do not have job status metrics! How old was that?! - Reinforce the importance of monitoring basic system resources
-
Tim Gross authored
This test has a failure that's happening only occassionally and not very reproducibly. Print out the allocation status on test failure so that we can do some post-mortum debugging of the test on nightly.
-
Tim Gross authored
-
Tim Gross authored
These tests have a data race where the test assertion is reading a value that's being set in the `listenFunc` goroutines that are subscribing to registry update events. Move the assertion into the subscribing goroutine to remove the race. This bug was discovered in #12098 but does not impact production Nomad code.
-
Seth Hoenig authored
Add alloc_id to sidecar bootstrap
-
Luiz Aoqui authored
-
Seth Hoenig authored
This PR expands on the work done in #12543 to - prefix the tag, so it is now "nomad.alloc_id" to be more consistent with Consul tags - merge into pre-existing envoy_stats_tags fields - update the upgrade guide docs - update changelog
-
Ian Drennan authored
-
Michael Schurter authored
Nomad Service Discovery uses an in-memory buffered pipe implementation to connect consul-template to the Nomad API. This adds a basic test for that helper functionality.
-
James Rasell authored
-
- 13 Apr, 2022 2 commits
-
-
Derek Strickland authored
-
James Rasell authored
* services: add pagination and filter support to info RPC. * cli: add filter flag to service info command. * docs: add pagination and filter details to services info API. * paginator: minor updates to comment and func signature.
-
- 12 Apr, 2022 5 commits
-
-
claire labry authored
-
Tim Gross authored
The plugin manager for CSI hands out instances of a plugin for callers that need to mount a volume. The `MounterForPlugin` method accesses the internal instances map without a lock, and can be called concurrently from outside the plugin manager's main run-loop. The original commit for the instances map included a warning that it needed to be accessed only from the main loop but that comment was unfortunately ignored shortly thereafter, so this bug has existed in the code for a couple years without being detected until we ran tests with `-race` in #12098. Lesson learned here: comments make for lousy enforcement of invariants!
-
Luiz Aoqui authored
-
Tim Gross authored
Many of our scripts have a non-portable interpreter line for bash and use bash-specific variables like `BASH_SOURCE`. Update the interpreter line to be portable between various Linuxes and macOS without complaint from posix shell users.
-
Tim Gross authored
This changeset fixes two sources of flakiness in the event stream test. First, the stream request gets the event *closest* to the index, not the exact match. Although events are written before raft entries they're written asynchronously, so it's possible to race and get a raft index from this query higher than the current head of the event buffer. Ensure the job is running before we try to get the index, so that we've given the event enough time to land in the buffer. Second, the assertion that the found index is greater than the start index is only true if the `PlanResult` event manages to land before we do the second registration. Although it should now with the first fix above, it's not a correct assertion for what we're testing.
-
- 11 Apr, 2022 10 commits
-
-
Luiz Aoqui authored
-
claire labry authored
-
Seth Hoenig authored
feat: remove dependency to consul/lib
-
Karan Sharma authored
-
Yoan Blanc authored
Signed-off-by:
Yoan Blanc <yoan@dosimple.ch>
-
Tim Gross authored
The oversubscription test expects an output that requires the client has polled the task for stats at least once. Wait long enough to ensure that we've polled the stats before failing the test.
-
Tim Gross authored
-
Tim Gross authored
In the reconciler's filtering for tainted nodes, we use whether the server supports disconnected clients as a gate to a bunch of our logic, but this doesn't account for cases where the job doesn't have `max_client_disconnect`. The only real consequence of this appears to be that allocs on disconnected nodes are marked "complete" instead of "lost".
-
Seth Hoenig authored
fix(plugins): should return when ctx.Done
-
James Rasell authored
Some tests may chose to deregister jobs to check Nomad cleanup logic, however, it is still possible for the test to fail and exit before this is hit. This therefore adds a cancellable cleanup func which can be deferred, using context to control whether it gets run or not.
-
- 09 Apr, 2022 1 commit
-
-
Yoan Blanc authored
Signed-off-by:
Yoan Blanc <yoan@dosimple.ch>
-