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.
- 29 Apr, 2021 2 commits
-
-
Luiz Aoqui authored
-
Buck Doyle authored
-
- 28 Apr, 2021 3 commits
-
-
Buck Doyle authored
This is the first step in #10268. If a maximum is not specified, the task group sum uses the memory number instead. The maximum is only shown when it’s higher than the memory sum.
-
Tim Gross authored
-
Buck Doyle authored
This updates the UI to use the new fuzzy search API. It’s a drop-in replacement so the / shortcut to jump to search is preserved, and results can be cycled through and chosen via arrow keys and the enter key. It doesn’t use everything returned by the API: * deployments and evaluations: these match by id, doesn’t seem like people would know those or benefit from quick navigation to them * namespaces: doesn’t seem useful as they currently function * scaling policies * tasks: the response doesn’t include an allocation id, which means they can’t be navigated to in the UI without an additional query * CSI volumes: aren’t actually returned by the API Since there’s no API to check the server configuration and know whether the feature has been disabled, this adds another query in route:application#beforeModel that acts as feature detection: if the attempt to query fails (500), the global search field is hidden. Upo...
-
- 27 Apr, 2021 3 commits
-
-
Seth Hoenig authored
This PR fixes a bug where Nomad was more restrictive on Ingress Gateway Configuration Entry definitions than Consul. Before, Nomad would not allow for declaring IGCEs with http listeners with service name "*", which is a special feature allowable by Consul. Note: to make http protocol work, a service-default must be defined setting the protocol to http for each service. Fixes: #9729
-
Seth Hoenig authored
This PR adds job-submission validation that checks for the use of uppercase characters in group and service names for services that make use of Consul Connect. This prevents attempting to launch services that Consul will not validate correctly, which in turn causes tasks to fail to launch in Nomad. Underlying Consul issue: https://github.com/hashicorp/consul/issues/6765 Closes #7581 #10450
-
Seth Hoenig authored
This PR wraps the use of the consul envoy bootstrap command in an expoenential backoff closure, configured to timeout after 60 seconds. This is an increase over the current behavior of making 3 attempts over 6 seconds. Should help with #10451
-
- 23 Apr, 2021 1 commit
-
-
Luiz Aoqui authored
-
- 20 Apr, 2021 2 commits
-
-
Charlie Voiselle authored
-
Buck Doyle authored
This adds a Revert two-step button to the JobVersions component for not-current versions, which redirects to the overview on success. It checks the job version before and after reversion to mitigate the edge case where reverting to an otherwise-identical version has no effect, as discussed in #10337. It uses existing facilities for handling other errors and disabling the button when permissions are lacking.
-
- 16 Apr, 2021 1 commit
-
-
Seth Hoenig authored
This PR introduces the /v1/search/fuzzy API endpoint, used for fuzzy searching objects in Nomad. The fuzzy search endpoint routes requests to the Nomad Server leader, which implements the Search.FuzzySearch RPC method. Requests to the fuzzy search API are based on the api.FuzzySearchRequest object, e.g. { "Text": "ed", "Context": "all" } Responses from the fuzzy search API are based on the api.FuzzySearchResponse object, e.g. { "Index": 27, "KnownLeader": true, "LastContact": 0, "Matches": { "tasks": [ { "ID": "redis", "Scope": [ "default", "example", "cache" ] } ], "evals": [], "deployment": [], "volumes": [], "scaling_policy": [], "images": [ { "ID": "redis:3.2", "Scope": [ "default", "example", "cache", "redis" ] } ] }, "Truncations": { "volumes": false, "scaling_policy": false, "evals": false, "deployment": false } } The API is tunable using the new server.search stanza, e.g. server { search { fuzzy_enabled = true limit_query = 200 limit_results = 1000 min_term_length = 5 } } These values can be increased or decreased, so as to provide more search results or to reduce load on the Nomad Server. The fuzzy search API can be disabled entirely by setting `fuzzy_enabled` to `false`.
-
- 15 Apr, 2021 1 commit
-
-
Tim Gross authored
-
- 13 Apr, 2021 3 commits
-
-
Tim Gross authored
-
Tim Gross authored
-
Nick Spain authored
-
- 12 Apr, 2021 2 commits
-
-
Tim Gross authored
-
James Rasell authored
-
- 08 Apr, 2021 1 commit
-
-
Tim Gross authored
-
- 06 Apr, 2021 2 commits
-
-
Chris Baker authored
-
Chris Baker authored
-
- 05 Apr, 2021 4 commits
-
-
Seth Hoenig authored
-
Seth Hoenig authored
This PR adds the common OSS changes for adding support for Consul Namespaces, which is going to be a Nomad Enterprise feature. There is no new functionality provided by this changeset and hopefully no new bugs.
-
Drew Bailey authored
* changelog entry for on_update configuration settings * Update CHANGELOG.md Co-authored-by:
Tim Gross <tgross@hashicorp.com> Co-authored-by:
Tim Gross <tgross@hashicorp.com>
-
Drew Bailey authored
-
- 30 Mar, 2021 1 commit
-
-
Tim Gross authored
* Fixed order * Added missing changlog entry for GH-10145 * Fixed misclassified entry for GH-10158
-
- 29 Mar, 2021 1 commit
-
-
Dave May authored
-
- 28 Mar, 2021 1 commit
-
-
Florian Apolloner authored
Automatically populate `CONSUL_HTTP_ADDR` for connect native tasks in host networking mode. Fixes #10239
-
- 23 Mar, 2021 2 commits
-
-
Chris Baker authored
changelog for #10202
-
Mahmood Ali authored
-
- 18 Mar, 2021 2 commits
-
-
Tim Gross authored
Add a `PerAlloc` field to volume requests that directs the scheduler to test feasibility for volumes with a source ID that includes the allocation index suffix (ex. `[0]`), rather than the exact source ID. Read the `PerAlloc` field when making the volume claim at the client to determine if the allocation index suffix (ex. `[0]`) should be added to the volume source ID.
-
Tim Gross authored
Callers of `CSIVolumeByID` are generally assuming they should receive a single volume. This potentially results in feasibility checking being performed against the wrong volume if a volume's ID is a prefix substring of other volume (for example: "test" and "testing"). Removing the incorrect prefix matching from `CSIVolumeByID` breaks prefix matching in the command line client. Add the required elements for prefix matching to the commands and API.
-
- 15 Mar, 2021 1 commit
-
-
davemay99 authored
-
- 12 Mar, 2021 1 commit
-
-
Florian Apolloner authored
-
- 10 Mar, 2021 1 commit
-
-
Tim Gross authored
When multiple CSI volumes are requested, the feasibility check could return early for read/write volumes with free claims, even if a later volume in the request was not feasible for any other reason (including not existing at all). This can result in random failure to fail feasibility checking, depending on how the map of volumes was being ordered at runtime. Remove the early return from the feasibility check. Add a test to verify that missing volumes in the map will cause a failure; this test will not catch a regression every test run because of the random map ordering, but any failure will be caught over the course of several CI runs.
-
- 09 Mar, 2021 3 commits
-
-
Tim Gross authored
-
James Rasell authored
-
Dave May authored
-
- 08 Mar, 2021 2 commits
-
-
Michael Schurter authored
-
Tim Gross authored
-