Commit Graph

20064 Commits

Author SHA1 Message Date
Chris Baker
98b89876df document api.Allocation.Job field, to address issue from #9386 2020-11-18 15:00:52 +00:00
Kris Hicks
8f18856ab9 doc: Simplify "Contributing" section of README (#9378)
This is mostly switching paragraphs to bullets to make following
instructions easier. In doing so, this also adds instructions to install
things that were previously assumed to be installed, like Vagrant,
Virtualbox, and Consul.

It also removes the expectation that Nomad is cloned to $GOPATH, as that
is not necessary.
2020-11-17 11:20:38 -08:00
Nick Ethier
abc19a409e Merge pull request #9363 from 42wim/fixcni
cni: use correct interface for netStatus
2020-11-17 12:03:39 -05:00
Kris Hicks
e5be40b4b0 proto: Switch to using buf (#9308)
This replaces all usage of `protoc` with `buf`. See `tools/buf/README.md` for more.
2020-11-17 07:01:48 -08:00
Chris Baker
7a6db5f483 Merge pull request #9368 from hashicorp/b-9367-duped-ports
fix duplication of ports in `AllocatedResources`
2020-11-16 11:41:34 -06:00
Chris Baker
67fd520067 changelog for #9368 2020-11-16 16:52:40 +00:00
Tim Gross
6c05798fab vendor: sync api/tasks for poststop hook 2020-11-16 11:28:02 -05:00
Seth Hoenig
40bb2725a6 Merge pull request #9356 from hashicorp/b-bridgefp-upgrade-path
scheduler: enable upgrade path for bridge network finger print
2020-11-16 09:29:03 -06:00
James Rasell
90268959b0 Merge pull request #9372 from hashicorp/f-docs-move-ruby-sdk-unsupported
docs: move Ruby SDK to unsupported listing.
2020-11-16 15:58:35 +01:00
Tim Gross
78afe18966 csi: alloc status -verbose should query volume request 'source' (#9354)
The `nomad alloc status -verbose` command returns a 404 from CSI volumes
because the volume mount block in the task points back to the
`job.group.volume` block. So using the `Name` field to query is the "name" as
seen in the jobspec, and not the name of the volume that we need for querying.

Show both the job-specific name and the volume ID in the resulting output,
which clarifies the difference between the two fields and is more consistent
with the web UI.
2020-11-16 08:28:52 -05:00
James Rasell
dfd4f9cbc1 docs: Add new Autoscaling Azure VMSS target plugin detail. (#9186)
Co-authored-by: Luiz Aoqui <luiz@hashicorp.com>
2020-11-16 11:40:22 +01:00
James Rasell
57f58dece4 docs: move Ruby SDK to unsupported listing. 2020-11-16 11:38:27 +01:00
Chris Baker
2a409de5d8 updated alloc_endpoint to mutate a copy of the returned allocation, instead of the instance in the state store 2020-11-15 17:52:50 +00:00
Chris Baker
af5478ccc2 documenting test for #9367 2020-11-15 17:47:50 +00:00
Chris Baker
974039ba8b Merge pull request #9365 from hashicorp/website-to-beta3
website: update downloads page to beta3
2020-11-15 09:22:18 -06:00
Chris Baker
d4910af814 website: update downloads page to beta3 2020-11-15 13:53:05 +00:00
Wim
19934d35dc Use correct interface for netStatus
CNI plugins can return multiple interfaces, eg the bridge plugin.
We need the interface with the sandbox.
2020-11-14 22:29:30 +01:00
Tim Gross
b5a4871e8d ui/csi: fix links to volume IDs (#9355) 2020-11-13 15:44:34 -05:00
Seth Hoenig
3826e23047 scheduler: enable upgrade path for bridge network finger print
This PR enables users of Nomad < 0.12 to upgrade to Nomad 0.12
and beyond. Nomad 0.12 introduced a network fingerprinter for
bridge networks, which is a contstraint checked for if bridge
network is being used. If users upgrade servers first as is
recommended, suddenly no clients running older versions of Nomad
will satisfy the bridge network resource constraint. Instead,
this change only enforces the constraint if the Nomad client
version is also >= 0.12.

Closes #8423
2020-11-13 14:17:01 -06:00
Seth Hoenig
459112b41d Merge pull request #9352 from hashicorp/f-artifact-headers
jobspec: add support for headers in artifact stanza
2020-11-13 14:04:27 -06:00
Tim Gross
feadd2bc58 hclfmt digitalocean demo to pass linting (#9353) 2020-11-13 14:16:15 -05:00
Seth Hoenig
6c7578636c jobspec: add support for headers in artifact stanza
This PR adds the ability to set HTTP headers when downloading
an artifact from an `http` or `https` resource.

The implementation in `go-getter` is such that a new `HTTPGetter`
must be created for each artifact that sets headers (as opposed
to conveniently setting headers per-request). This PR maintains
the memoization of the default Getter objects, creating new ones
only for artifacts where headers are set.

Closes #9306
2020-11-13 12:03:54 -06:00
Tim Gross
ae314d9487 demo: CSI example for DigitalOcean block storage (#9351) 2020-11-13 12:26:04 -05:00
Mahmood Ali
ba262892f8 release: infer node version (#9336)
Avoids setting the node version in the release Dockerfile, by using
an alias.  This allows us to update the node version in one file only.

Co-authored-by: Michael Schurter <mschurter@hashicorp.com>
2020-11-13 11:33:07 -05:00
Tim Gross
c54c188ba1 e2e: CSI test should detect un-deregisterable volumes (#9343)
Assert that deregistering a volume works without errors following a volume
reap. Use CLI helpers where feasible to exercise CSI command line. Dump plugin
allocation logs on deregistration failures for debugging purposes.
2020-11-13 09:31:21 -05:00
Lars Lehtonen
9e7659dcc2 nomad/structs: fix noop breaks (#9348) 2020-11-13 08:28:11 -05:00
Michael Schurter
2fce235f76 Merge pull request #9345 from hashicorp/go-1.15.5
build: upgrade from Go 1.15.4 to 1.15.5
2020-11-12 14:41:10 -08:00
Michael Schurter
1de7c0c54b docs: mention upgrade to Go 1.15.5 2020-11-12 14:23:32 -08:00
Michael Schurter
d09f09047f build: upgrade from Go 1.15.4 to 1.15.5
Despite being a security release for Go, we do not believe Nomad is
impacted.
2020-11-12 14:19:26 -08:00
Michael Lange
b487f40661 Merge pull request #8807 from hashicorp/f-ui/lifecycle-poststop
UI: Task lifecycle poststop phase.
2020-11-12 09:50:24 -08:00
Michael Lange
99244af196 Fix flaky lifecycle chart tests 2020-11-12 09:16:53 -08:00
Michael Lange
edd296ff51 Revert "Temporarily remove poststop from the UI"
This reverts commit f8a505ea2f.
2020-11-12 09:16:52 -08:00
Jasmine Dahilig
e5ea386b3b Merge pull request #9340 from hashicorp/changelog-poststop
changelog: added poststop to task lifecycle
2020-11-12 09:04:35 -08:00
Mahmood Ali
b67d9ecdc4 Merge pull request #9339 from hashicorp/b-hcl2-job-tweaks
Restrict HCL special casing of map[string]interface{} fields
2020-11-12 11:59:45 -05:00
Jasmine Dahilig
7d83a85359 changelog: added poststop to task lifecycle 2020-11-12 08:56:46 -08:00
Mahmood Ali
f1f473f9a6 appease deadcode linter 2020-11-12 11:44:49 -05:00
Mahmood Ali
a673b8a2bd Restrict HCL special casing of map[string]interface{} fields
The HCL2 parser needs to apply special parsing tweaks so it can parse
the task config the same way as HCL1. Particularly, it needs to
reinterprets `map[string]interface{}` fields and blocks that appear when
attributes are expected.

This commit restricts the special casing to the Job fields, and ignore
`variables` and `locals` block.
2020-11-12 11:35:39 -05:00
Dave May
205b0e7cae nomad operator debug - add client node filtering arguments (#9331)
* operator debug - add client node filtering arguments

* add WaitForClient helper function

* use RPC in WaitForClient to avoid unnecessary imports

* guard against nil values

* move initialization up and shorten test duration

* cleanup nodeLookupFailCount logic

* only display max node notice if we actually tried to capture nodes
2020-11-12 11:25:28 -05:00
Jasmine Dahilig
b85cce42fe lifecycle: add poststop hook (#8194) 2020-11-12 08:01:42 -08:00
Seth Hoenig
34121b3825 Merge pull request #9338 from hashicorp/d-update-client-subnet
docs: update brige network subnet docs
2020-11-12 09:59:24 -06:00
Seth Hoenig
d57cb596fc docs: update brige network subnet docs
Update the default value for `client.bridge_network_subnet` in docs
to match the new value from 99742f2665. Was `172.26.66.0/23`, is
now `172.26.64.0/20`.

Fixes #9316
2020-11-12 09:11:24 -06:00
Mahmood Ali
809b6b9898 Merge pull request #9334 from hashicorp/b-pin-node-version
ui: Pin ui node version
2020-11-12 09:18:37 -05:00
Mahmood Ali
b53638ab89 Merge pull request #9335 from hashicorp/docs-assorted-changes-20201112
Assorted changelog and docs changes
2020-11-12 08:50:17 -05:00
Mahmood Ali
0a4c8b63ee changelog: Update 0.12.8 and backported releases 2020-11-12 08:41:03 -05:00
Mahmood Ali
6a3266e556 tweak 1.0 changelog 2020-11-12 08:40:49 -05:00
Mahmood Ali
32f2076715 driver/docker: mark cpusets as beta
The cpuset_cpus flag may be subject to change when we revise cpu
management. Also, it's only available in 1.0.0 Beta.
2020-11-12 08:28:50 -05:00
Mahmood Ali
e65b27e13a ui: Pin ui node version 2020-11-12 08:25:50 -05:00
Michael Lange
e499993e7e Merge pull request #9332 from hashicorp/b-ui/flaky-das-filter-tests
UI: Add missing feature fixture that was introduced while DAS filtering was being implemented
2020-11-11 17:04:47 -08:00
Michael Lange
e7bd23a481 Add missing feature fixture that was introduced while this feature was being developed 2020-11-11 16:43:47 -08:00
Seth Hoenig
0a90cee7b7 Merge pull request #9330 from hashicorp/b-connect-registration-bad-tags
consul: prevent re-registration churn by correctly comparing connect sidecar tags
2020-11-11 18:22:51 -06:00