Commit Graph

23091 Commits

Author SHA1 Message Date
Seth Hoenig
9d03cd4c70 Merge pull request #12951 from jorgemarey/f-srv-tagged-addresses
Allow setting tagged addresses on services
2022-06-01 10:51:49 -05:00
Tim Gross
5ef12a6948 website: set dependabot assignees (#12969)
The website build code has been moved out to another repository, so
what's remaining here is local development tooling. Assign these PRs to
the web platform team, but also cut down on the noise we're sending
their way.
2022-06-01 11:40:32 -04:00
Seth Hoenig
3ca5292d91 consul: avoid reflection in comparing service map types 2022-06-01 10:22:00 -05:00
Tim Gross
a0e8de33ee refactor index threshold calculation for core GC jobs (#13196)
Almost all GC jobs check the index of the objects being GC'd to see if
they're older than a configured threshold. This code was repeated six
times in `CoreScheduler` with only logging changes, so it seems safe
to extract it as its own method.
2022-06-01 11:12:20 -04:00
Seth Hoenig
63fed3b51b Merge pull request #13194 from hashicorp/update-golangci-lint
build: update golangci-lint to v1.46.2
2022-06-01 08:12:44 -05:00
Jason Paul Deland
f42c94dadd demo/terraform: fix nvidia drivers installation 2022-05-31 20:17:55 -04:00
Seth Hoenig
0be43c2485 Merge pull request #13193 from hashicorp/build-exclude-go-work-sum
build: git ignore go.work.sum files
2022-05-31 19:03:40 -05:00
Seth Hoenig
a7b56e81d8 build: git ignore go.work.sum files 2022-05-31 18:37:49 -05:00
Seth Hoenig
2fdb782a0c build: update golangci-lint to v1.46.2
This version of golangci-lint improves support for generics, but also
is more strict in copy vs. loop for slice copying.
2022-05-31 23:32:01 +00:00
Anthony
5b80907a5d docs: added note about vault -period flag (#13185) 2022-05-31 14:26:03 -07:00
Seth Hoenig
69bbaa44f9 docs: add docs and tests for tagged_addresses 2022-05-31 13:02:48 -05:00
pabloyoyoista
8fca5589f0 docs: add podman ulimit option (#13180) 2022-05-31 11:16:46 -04:00
Jorge Marey
e2f954e848 Allow setting tagged addresses on services 2022-05-31 10:06:55 -05:00
James Rasell
e922890dc7 docs: add allocation and job services API endpoint docs. (#13174) 2022-05-30 16:15:09 +02:00
Waquid Valiya Peedikakkal
dc29023b98 docs: add nomad-pipeline to community tools page (#13172) 2022-05-30 09:05:38 +02:00
Luiz Aoqui
6876b735b9 docs: add wander to the community tools page (#13165) 2022-05-27 11:53:01 -04:00
Toyam Cox
a145ffc6dc docs: make the example for 'load' work (#13102) 2022-05-27 08:48:58 -04:00
James Rasell
0e2f693ddd cli: fix minor formatting issue with alloc restart help. (#13135) 2022-05-27 13:18:47 +02:00
Seth Hoenig
865b43c049 Merge pull request #13125 from hashicorp/b-connect-upstream-namespace
connect: enable setting connect upstream destination namespace
2022-05-26 10:29:11 -05:00
Seth Hoenig
616988c6fb connect: enable setting connect upstream destination namespace 2022-05-26 09:39:36 -05:00
Amier Chery
07043893c1 Merge pull request #13083 from josegonzalez/patch-1
Update service.check.task definition to match code
2022-05-26 10:38:49 -04:00
Seth Hoenig
49ae238604 Merge pull request #13036 from hashicorp/f-update-golang-1.18.2
build: update golang version to 1.18.2
2022-05-25 13:32:20 -05:00
Seth Hoenig
f42ded01a8 git: add go.work to gitignore 2022-05-25 11:15:00 -05:00
Seth Hoenig
04ceba2bfb build: update golang version to 1.18.2
This PR update to Go 1.18.2. Also update the versions of hclfmt
and go-hclogfmt which includes newer dependencies necessary for dealing
with go1.18.

The hcl v2 branch is now 'nomad-v2.9.1+tweaks2', to include a fix for
newer macOS versions: 8927e75e82
2022-05-25 10:04:04 -05:00
Luiz Aoqui
3f92745217 Merge pull request #13109 from hashicorp/merge-release-1.3.1-branch
Merge release 1.3.1 branch
2022-05-25 10:45:09 -04:00
Seth Hoenig
0b0bc20612 Merge pull request #13107 from hashicorp/b-docker-test-fixes
tests: minor fixes for some docker tests
2022-05-25 09:26:34 -05:00
Seth Hoenig
467cffa9cf docker: remove dead comment 2022-05-25 09:26:20 -05:00
Seth Hoenig
72db527770 tests: minor fixes for some docker tests 2022-05-25 08:48:24 -05:00
Seth Hoenig
f83fabcc8f Merge pull request #13059 from hashicorp/ci-gha-22.04
ci: switch to 22.04 for GHA Core CI tests
2022-05-25 08:44:36 -05:00
Seth Hoenig
6d92e9b738 ci: switch to 22.04 LTS for GHA Core CI tests 2022-05-25 08:19:40 -05:00
Seth Hoenig
b844f30f15 Merge pull request #13104 from hashicorp/b-blocked-eval-math
core: fix blocked eval math
2022-05-24 16:23:06 -05:00
Luiz Aoqui
d3e1697e6d Post 1.3.1 release changes 2022-05-24 16:33:30 -04:00
hc-github-team-nomad-core
351102bdac Prepare for next release 2022-05-24 16:29:47 -04:00
hc-github-team-nomad-core
abb5b572b0 Generate files for 1.3.1 release 2022-05-24 16:29:46 -04:00
Luiz Aoqui
935cc27834 prepare release 1.3.1 2022-05-24 16:29:46 -04:00
Michael Schurter
3968509886 artifact: fix numerous go-getter security issues
Fix numerous go-getter security issues:

- Add timeouts to http, git, and hg operations to prevent DoS
- Add size limit to http to prevent resource exhaustion
- Disable following symlinks in both artifacts and `job run`
- Stop performing initial HEAD request to avoid file corruption on
  retries and DoS opportunities.

**Approach**

Since Nomad has no ability to differentiate a DoS-via-large-artifact vs
a legitimate workload, all of the new limits are configurable at the
client agent level.

The max size of HTTP downloads is also exposed as a node attribute so
that if some workloads have large artifacts they can specify a high
limit in their jobspecs.

In the future all of this plumbing could be extended to enable/disable
specific getters or artifact downloading entirely on a per-node basis.
2022-05-24 16:29:39 -04:00
Luiz Aoqui
d79612785c core: test duplicated blocked eval stats
In the original test, the eval generator would use a random value for
the job ID, resulting in an unxercised code path for duplicate blocked
evals.
2022-05-24 15:44:06 -04:00
Seth Hoenig
94abe338e9 Merge pull request #13058 from hashicorp/b-cgroupsv1-docker-cgparent
drivers/docker: do not set cgroup parent in v1 mode
2022-05-24 14:07:40 -05:00
Seth Hoenig
410834b705 drivers/docker: do not set cgroup parent in v1 mode
This PR fixes a bug where the CgroupParent on the docker
HostConfig struct was accidently being set when running in
cgroups v1 mode.
2022-05-24 11:22:50 -05:00
Seth Hoenig
e8eaf838f7 docs: add changelog 2022-05-24 09:13:15 -05:00
Seth Hoenig
c3c739cab2 core: add tests for blocked evals math 2022-05-24 09:05:18 -05:00
Seth Hoenig
8506bd6b14 core: remove correct set of resources on blocked eval 2022-05-23 15:18:55 -05:00
PinkLolicorn
b181919ce6 docs: mount_flags takes a slice of strings (#13087)
The description of `mount_flags` provides incorrect example
of the accepted value format.

This fixes the issue by changing the example from a string
`ro,noatime` to a slice of strings `["ro", "noatime"]`.
2022-05-20 09:16:17 -04:00
Tim Gross
e0c290794d e2e: upgrade playwright package and container image (#13080)
The nightly playwright tests are currently failing because of a
mismatch between the expected version of Chromium and what's in the
container image. Unfortunately the previous specific tag we were using
for the container image is no longer tagged on the registry. With some
testing, I was able to find an image tag that results in a good run.
2022-05-20 08:41:07 -04:00
Jose Diaz-Gonzalez
626d1a79e1 docs: correct where task cannot be defined 2022-05-19 21:24:58 -04:00
Jose Diaz-Gonzalez
edf7b89408 Update service.check.task definition to match code
Nomad errors out when attempting to specify a task for a service that uses consul connect but does not have script or gRPC checks. See 304d0cf595/nomad/structs/structs.go (L6643) for details.
2022-05-19 20:54:49 -04:00
Will Jordan
304d0cf595 Don't buffer json logs on agent startup (#13076)
There's no reason to buffer json logs on agent startup
since logs in this format already aren't reordered.
2022-05-19 15:40:30 -04:00
Seth Hoenig
a143da92cd Merge pull request #13070 from hashicorp/b-vault-validator-env
cli: correctly validate job with vault token set
2022-05-19 14:31:10 -05:00
claire labry
8683d1fc21 Merge pull request #13068 from twunderlich-grapl/twunderlich/run-postinstall-script
[CI-only] Use the postinstall script for linux packages
2022-05-19 14:16:08 -04:00
Seth Hoenig
0a5992bd20 cli: correctly use and validate job with vault token set
This PR fixes `job validate` to respect '-vault-token', '$VAULT_TOKEN',
'-vault-namespace' if set.
2022-05-19 12:13:34 -05:00