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.
- 07 Jul, 2021 2 commits
-
-
Michael Schurter authored
-
Michael Schurter authored
Fixes double quoting of escaped values. Before fix: ```` logger.Warn(..., "output", strconv.Quote(out)) output=""This is the output for state 1\n"" ```` After fix: ``` logger.Warn(..., "output", hclog.Quote(out)) output="This is the output for state 1\n" ```
-
- 06 Jul, 2021 4 commits
-
-
Michael Schurter authored
Logs unhealthy script check output to the agent's log. Prior to this commit script check output was only available by querying the Consul API and therefore often unavailable when diagnosing issues after they are fixed. This change logs failures along with their (quoted) output: ``` >>> Repro: consul agent -dev nomad agent -dev nomad run https://gist.githubusercontent.com/schmichael/126dcb98df2bb3eb010f74ab254c1b7b/raw/071e5f95fc38d52b1c2f5a99b27bbb9ee6fcfeb2/script.hcl >>> Agent log output: ... 2021-07-06T10:06:01.590-0700 [WARN] client.alloc_runner.task_runner.task_hook.script_checks: unhealthy script check: alloc_id=38f31314-6782-55af-053a-50b52d5e11c6 check_id=_nomad-check-8f188b2b53b772955b0c6f1fe912cb249808b7f9 task=redis health=critical output=""This is the output for state 2\n"" 2021-07-06T10:06:01.637-0700 [WARN] client.alloc_runner.task_runner.task_hook.script_checks: unhealthy script check: alloc_id=38f31314-6782-55af-053a-50b52d5e11c6 check_id=_nomad-check-51947a330e9b43483fd5eb6839042df08d6580a5 task=redis health=warning output=""This is the output for state 1\n"" ... ```
-
Mahmood Ali authored
Adopts [`go-changelog`](https://github.com/hashicorp/go-changelog) for managing Nomad's changelog. `go-changelog` is becoming the HashiCorp defacto standard tool for managing changelog, e.g. [Consul](https://github.com/hashicorp/consul/pull/8387), [Vault](https://github.com/hashicorp/vault/pull/10363), [Waypoint](https://github.com/hashicorp/waypoint/pull/1179). [Consul](https://github.com/hashicorp/consul/pull/8387) seems to be the first product to adopt it, and its PR has the most context - though I've updated `.changelog/README.md` with the relevant info here. ## Changes to developers workflow When opening PRs, developers should add a changelog entry in `.changelog/<PR#>.txt`. Check [`.changelog/README.md`](https://github.com/hashicorp/nomad/blob/docs-adopt-gochangelog/.changelog/README.md#developer-guide). For the WIP release, entries can be amended even after the PR merged, and new files may be added post-hoc (e.g. during transition period, missed accidentally, community PRs, etc). ### Transitioning Pending PRs can start including the changelog entry files immediately. For 1.1.3/1.0.9 cycle, the release coordinator should create the entries for any PR that gets merged without a changelog entry file. They should also move any 1.1.3 entry in CHANGELOG.md to a changelog entry file, as this PR done for GH-10818. ## Changes to release process Before cutting a release, release coordinator should update the changelog by inserting the output of `make changelog` to CHANGELOG.md with appropriate headers. See [`.changelog/README.md`](https://github.com/hashicorp/nomad/blob/docs-adopt-gochangelog/.changelog/README.md#how-to-generate-changelog-entries-for-release) for more details. ## Details go-changelog is a basic templating engine for maintaining changelog in HashiCorp environment. It expects the changelog entries as files indexed by their PR number. The CLI generates the changelog section for a release by comparing two git references (e.g. `HEAD` and the latest release, e.g. `v1.1.2`), and still requires manual process for updating CHANGELOG.md and final formatting. The approach has many nice advantages: * Avoids changelog related merge conflicts: Each PR touches different file! * Copes with amendments and post-PR updates: Just add or update a changelog entry file using the original PR numbers. * Addresses the release backporting scenario: Cherry-picking PRs will cherry-pick the relevant changelog entry automatically! * Only relies on data available through `git` - no reliance on GitHub metadata or require GitHub credentials The approach has few downsides though: * CHANGELOG.md going stale during development and must be updated manually before cutting the release * Repository watchers can no longer glance at the CHANGELOG.md to see upcoming changes * We can periodically update the file, but `go-changelog` tool does not aid with that * `go-changelog` tool does not offer good error reporting. If an entry is has an invalid tag (e.g. uses `release-note:bugfix` instead of `release-note:bug`), the entry will be dropped silently * We should update go-changelog to warn against unexpected entry tags * TODO: Meanwhile, PR reviewers and release coordinators should watch out ## Potential follow ups We should follow up with CI checks to ensure PR changes include a warning. I've opted not to include that now. We still make many non-changelog-worth PRs for website/docs, for large features that get merged in multiple small PRs. I did not want to include a check that fails often. Also, we should follow up to have `go-changelog` emit better warnings on unexpected tag.
-
James Rasell authored
constraint on the Docker driver missing 'attr'
-
Shantanu Gadgil authored
Between this page and https://www.nomadproject.io/docs/runtime/interpolation I realized that the syntax on the Docker page was missing the word `attr`.
-
- 02 Jul, 2021 1 commit
-
-
Grant Griffiths authored
Signed-off-by:
Grant Griffiths <ggriffiths@purestorage.com>
-
- 30 Jun, 2021 4 commits
-
-
Tim Gross authored
In Nomad 1.1.1 we generate a hosts file based on the Nomad-owned network namespace, rather than using the default hosts file from the pause container. This hosts file should be shared between tasks in the same allocation so that tasks can update the file and have the results propagated between tasks.
-
James Rasell authored
changelog: add entry for #10822
-
James Rasell authored
[docs] Fix missing opening quote
-
Juan Carlos Alonso authored
-
- 29 Jun, 2021 3 commits
-
-
Seth Hoenig authored
consul/connect: automatically set consul tls sni name for connect native tasks
-
James Rasell authored
cli: fixed system commands so they correctly use passed flags.
-
James Rasell authored
-
- 28 Jun, 2021 6 commits
-
-
Tim Gross authored
-
Tim Gross authored
The `docker` driver's `port_map` field was deprecated in 0.12 and this is documented in the task driver's docs, but we never explicitly flagged it for backwards compatibility.
-
Kendall Strautman authored
-
Seth Hoenig authored
This PR makes it so that Nomad will automatically set the CONSUL_TLS_SERVER_NAME environment variable for Connect native tasks running in bridge networking mode where Consul has TLS enabled. Because of the use of a unix domain socket for communicating with Consul when in bridge networking mode, the server name is a file name instead of something compatible with the mTLS certificate Consul will authenticate against. "localhost" is by default a compatible name, so Nomad will set the environment variable to that. Fixes #10804
-
Boris Shomodjvarac authored
Current efs driver does not support telling it if its a `node` or a `controller`, and it will not print any error it will just ignore all other parameters then:( So this will result in endpoint being `/tmp/csi.sock` and not `/csi/csi.sock` which will in turn break nomad/csi integration. Also I changed the latest image tag to v1.3.2 to make sure anybody copy pasting this example is sure that it will work. Tested on nomad 1.1.2
-
James Rasell authored
-
- 25 Jun, 2021 1 commit
-
-
Tim Gross authored
When the `-verbose` flag is passed to the `nomad volume status` command, we hit a code path where the rows of text to be formatted were not initialized correctly, resulting in a panic in the CLI.
-
- 22 Jun, 2021 9 commits
-
-
Zachary Shilton authored
* website: upgrade code-block * website: bump to latest pre-releases * website: bump to stable releases
-
Mahmood Ali authored
Prepare for 1.1.3 development
-
Mahmood Ali authored
-
Mahmood Ali authored
-
Tim Gross authored
* add some more context to the recommendations * add recommendations around per-AZ `plugin_id`
-
Nomad Release Bot authored
-
Nomad Release Bot authored
-
Nomad Release bot authored
-
Mahmood Ali authored
-
- 21 Jun, 2021 5 commits
-
-
Dave May authored
* Add remaining pprof profiles to debug dump * Refactor pprof profile capture * Add WaitForFilesUntil and WaitForResultUntil utility functions * Add CHANGELOG entry
-
Seth Hoenig authored
docs: update cl with missing entries
-
Seth Hoenig authored
-
Huan Wang authored
-
Seth Hoenig authored
consul/connect: Validate uniqueness of Connect upstreams within task group
-
- 18 Jun, 2021 5 commits
-
-
Seth Hoenig authored
This PR adds validation during job submission that Connect proxy upstreams within a task group are using different listener addresses. Otherwise, a duplicate envoy listener will be created and not be able to bind. Closes #7833
-
Russell Rollins authored
-
Seth Hoenig authored
e2e: fix a couple recent e2e bugs
-
Seth Hoenig authored
This PR changes the e2e helper thingy to set -detach option when registering a job with the CLI instead of the API. This is necessary for jobs which never become healthy, as the deployment never finishes for failing jobs and the command never returns, causing the test to timeout after 10 minutes.
-
Seth Hoenig authored
This PR fixes a bug introduced in a refactoring https://github.com/hashicorp/nomad/pull/10764/files#diff-56b3c82fcbc857f8fb93a903f1610f6e6859b3610a4eddf92bad9ea27fdc85ec where task level service checks would inherent the task name field, when they shouldn't. Fixes #10781
-