Nick Ethier
5377be43ff
executor: add support for cpuset cgroup
2021-04-15 10:24:31 -04:00
Nick Ethier
1925f6b893
cgutil: set reserved mems on init even if already exist
2021-04-15 10:24:31 -04:00
Nick Ethier
9003717ae3
client: disable cpuset cgroup managment if init fails
2021-04-14 14:44:08 -04:00
Nick Ethier
d5f97c11a5
another testing fix
2021-04-14 10:37:03 -04:00
Nick Ethier
4a25ec9410
testing fixes
2021-04-14 10:17:28 -04:00
Nick Ethier
355212c30c
cgutil: add nil check on AddAlloc
2021-04-13 13:28:36 -04:00
Nick Ethier
f897ac79e8
client/ar: thread through cpuset manager
2021-04-13 13:28:36 -04:00
Nick Ethier
38bc1b1a31
client/fingerprint: move existing cgroup concerns to cgutil
2021-04-13 13:28:36 -04:00
Nick Ethier
85f6a56c6f
lib/cpuset: add String and ContainsAny helpers
2021-04-13 13:28:36 -04:00
Nick Ethier
5e7b411dec
cgutil: implement cpuset management as seperate package
2021-04-13 13:28:36 -04:00
Nick Ethier
84e44d53d0
Apply suggestions from code review
...
Co-authored-by: Drew Bailey <drewbailey5@gmail.com >
2021-04-13 13:28:15 -04:00
Nick Ethier
d34495e6e0
agent: add test for reserved core config mapping
2021-04-13 13:28:15 -04:00
Nick Ethier
698a014a42
client: fix failing test
2021-04-13 13:28:15 -04:00
Nick Ethier
cd8fb2d3e3
cgutil: fix lint errors
2021-04-13 13:28:15 -04:00
Nick Ethier
03d6eb8205
client: only fingerprint reservable cores via cgroups, allowing manual override for other platforms
2021-04-13 13:28:15 -04:00
Nick Ethier
b8397a712d
fingerprint: implement client fingerprinting of reservable cores
...
on Linux systems this is derived from the configure cpuset cgroup parent (defaults to /nomad)
for non Linux systems and Linux systems where cgroups are not enabled, the client defaults to using all cores
2021-04-13 13:28:15 -04:00
Buck Doyle
83164f21d2
Add removal of OTT query parameter with delay ( #10319 )
...
This followup to #10066 adds a step to clear the one-time token
from the URL after the application has loaded. The delay is
required for it to actually clear, but only when the OTT is present
to avoid slowing down the entire test suite.
2021-04-13 11:56:59 -05:00
Mahmood Ali
08f10016a1
Merge pull request #10370 from alrs/command-agent-errs
...
command/agent: fix dropped test errors
2021-04-13 11:40:12 -04:00
Mahmood Ali
fa95eb6e1c
only publish measured metrics ( #10376 )
2021-04-13 11:39:33 -04:00
Tim Gross
a0f603b1fe
changelog entries for networking improvements
2021-04-13 10:07:02 -04:00
Andrii Chubatiuk
6f7171d50f
add support for host network interpolation
2021-04-13 09:53:05 -04:00
Andrii Chubatiuk
bab0d39d51
support multiple host network aliases for the same interface
2021-04-13 09:33:33 -04:00
Tim Gross
4a1a14248a
fixup changelog
2021-04-13 09:15:35 -04:00
Nick Spain
8797e33438
Fix indentation of service check API documentation
2021-04-13 09:15:35 -04:00
Nick Spain
4fa099ff39
Test parsing of body field in jobspec2
2021-04-13 09:15:35 -04:00
Nick Spain
5924bcfbc3
Update TaskGroup services edited diff test to actually check Body
2021-04-13 09:15:35 -04:00
Nick Spain
9a33655912
Hash Body field as part of ServiceCheck
2021-04-13 09:15:35 -04:00
Nick Spain
7fefc3a08c
Update changelog to mention adding the 'body' field
2021-04-13 09:15:35 -04:00
Nick Spain
5cae8f1d84
Document usage of 'body' field
2021-04-13 09:15:35 -04:00
Nick Spain
a1e0784f14
Add a 'body' field to the check stanza
...
Consul allows specifying the HTTP body to send in a health check. Nomad
uses Consul for health checking so this just plumbs the value through to
where the Consul API is called.
There is no validation that `body` is not used with an incompatible
check method like GET.
2021-04-13 09:15:35 -04:00
Tim Gross
2258c1854b
e2e/csi: fix name of column used for snapshot create output parsing
2021-04-13 09:15:19 -04:00
Lars Lehtonen
b7851f49b8
command/agent: fix dropped test errors
2021-04-13 01:51:24 -07:00
Seth Hoenig
ca89437718
Merge pull request #10367 from hashicorp/up-go-plugin
...
deps: upgrade go-plugin dependency
2021-04-12 15:05:10 -06:00
Seth Hoenig
ce35ee312a
deps: upgrade go-plugin dependency
...
This PR brings go-plugin up to date from ~v1.0.1 to v1.4.0 (about 18 months)
with a grab-bag of bux fixes.
2021-04-12 14:37:04 -06:00
Tim Gross
1e3e937f57
cli: add help for 'ui -authenticate' flag
2021-04-12 13:56:55 -04:00
Mahmood Ali
1d60aa667f
Merge pull request #10276 from hashicorp/b-api-operator-query-meta
...
api: set operator query meta
Set the query meta for LicenseGet request. It's expected by api consumers to determine the raft index.
2021-04-12 13:30:24 -04:00
Mahmood Ali
55bb727c48
Update macOS image ( #10365 )
...
Also, remove protobuf installation: it's not used anymore.
2021-04-12 12:50:12 -04:00
Tim Gross
f9c3e1facf
CI: update homebrew before installing protobuf
...
"Bottles" have been migrated to GitHub packages, so we need to update homebrew
to point to that new source before installing the `protobuf` formula.
2021-04-12 11:49:08 -04:00
Tim Gross
7ba93c2b77
changelog entry for 'nomad ui -authenticate'
2021-04-12 11:01:20 -04:00
Tim Gross
f217503a99
docs: CSI hostpath demo doesn't need docker.volumes.enabled
2021-04-12 10:46:02 -04:00
James Rasell
ee8b8fa8a9
changelog: add entry for #10253
2021-04-12 10:35:33 -04:00
Charlie Voiselle
02a8e6c2ad
Fix parameterized <-> non-parameterized job error ( #10357 )
...
The error messages are reversed from tests performed above them. The test uses the `validateJobUpdate()` function, but ignores the text of the error message itself.
2021-04-12 09:27:04 -04:00
Chris Baker
1b453fbaf3
Merge pull request #10352 from hashicorp/schmichael-patch-1
...
docs: clarify alloc signal behavior
2021-04-09 15:31:28 -05:00
Michael Schurter
e35c5b5b80
docs: clarify alloc signal behavior
...
The API docs don't make it immediately clear that the alloc signal API signals *all* tasks in an allocation if the `Task` parameter is omitted. You have to dig all the way down into the alloc runner to discover that behavior: https://github.com/hashicorp/nomad/blob/v1.0.4/client/allocrunner/alloc_runner.go#L1189-L1213
2021-04-09 12:57:19 -07:00
Drew Bailey
57b0ed0444
go get on the remote mac instance installs with read-only, allow for … ( #10351 )
...
* go get on the remote mac instance installs with read-only, allow for rm step
* Update scripts/release/mac-remote-build
Co-authored-by: Mahmood Ali <mahmood@hashicorp.com >
Co-authored-by: Mahmood Ali <mahmood@hashicorp.com >
2021-04-09 15:50:27 -04:00
Luiz Aoqui
6af44f8432
limit bytes passed to http.DetectContentType ( #10348 )
2021-04-09 14:37:27 -04:00
Tim Gross
47951aeb53
CSI: ensure page slices are within bounds
...
Plugins could potentially ignore the `max_entries` field and return a list of
entries that is greater, so we slice the return value in the server RPC to
enforce these value. But page sizes less than the number of entries for the
external CSI ListVolumes and ListSnapshots RPCs could cause a panic, so fix
the boundary checking.
2021-04-09 14:12:38 -04:00
Drew Bailey
050067a749
hclfmt hostpath.hcl
2021-04-09 12:15:49 -04:00
Michael Schurter
a4622e6978
Merge pull request #9895 from hashicorp/b-cni-ipaddr
...
CNI: add fallback logic if no ip address references sandboxed interface
2021-04-09 08:58:35 -07:00
Tim Gross
f167e90ca5
docs: clean up explanation of volume per_alloc
2021-04-09 11:32:00 -04:00