Commit Graph

19516 Commits

Author SHA1 Message Date
Tim Gross
d60071c20d filter volumes by type in 'nomad node status' output (#8902)
Volume requests can be either CSI or host volumes, so when displaying the CSI
volume info for `nomad node status -verbose` we need to filter out the host
volumes.
2020-09-16 15:00:12 -04:00
Mahmood Ali
c320e91407 Update website with network mbit deprecation 2020-09-16 11:06:35 -04:00
Mahmood Ali
658b19b09a Update job examples with MBit deprecation 2020-09-16 11:06:19 -04:00
Mahmood Ali
679fee900c api: target servers for allocation requests (#8897)
Allocation requests should target servers, which then can forward the
request to the appropriate clients.

Contacting clients directly is fragile and prune to failures: e.g.
clients maybe firewalled and not accessible from the API client, or have
some internal certificates not trusted by the API client.

FWIW, in contexts where we anticipate lots of traffic (e.g. logs, or
exec), the api package attempts contacting the client directly but then
fallsback to using the server. This approach seems excessive in these
simple GET/PUT requests.

Fixes #8894
2020-09-16 09:34:17 -04:00
James Rasell
1b031b9ba7 Merge pull request #8890 from arthur-leclerc/docs-fix-nomad-autoscaling-telemetry-dd-example
docs: Fix Nomad autoscaler Datadog telemetry example
2020-09-16 10:55:45 +02:00
Buck Doyle
9b5c428a62 Add handling for allocation-less exec URL (#8856)
This closes #8769. This new-window-opening code is not possible
to properly exercise within Ember’s testing facilities 😞
2020-09-15 14:48:29 -05:00
Mahmood Ali
fd03e0ca17 changelog: Tag the ui with the right release (#8883) 2020-09-15 15:21:50 -04:00
Mahmood Ali
49a46188a5 Merge pull request #8867 from hashicorp/b-canary-substitution
scheduler: Revert requireCanary logic
2020-09-15 12:58:55 -05:00
Charlie Voiselle
0e647ff68a Merge pull request #8869 from hashicorp/docs-move-ea-guides
Sunset older instances of EA Guides
2020-09-15 12:49:35 -04:00
Mahmood Ali
45ffcc5b8a Merge pull request #8886 from hashicorp/b-running-next-allocation
Stop already rescheduled but somehow running allocs
2020-09-15 10:00:37 -05:00
Arthur Leclerc
dc3494c01f docs: Fix autoscaler datadog telemetry example 2020-09-15 14:02:58 +00:00
Mahmood Ali
fbd1c5c8dc Merge pull request #8884 from hashicorp/b-fix-help-nomad-monitor
Change tabs to spaces in `nomad monitor` help text
2020-09-14 21:20:30 -05:00
Mahmood Ali
a80ccb82cb Only ignore rescheduled allocations if they got stopped 2020-09-14 21:11:52 -04:00
Mahmood Ali
c6848d3d45 add a test when .NextAllocation is set but alloc is still running 2020-09-14 17:12:53 -04:00
Charlie Voiselle
b35ee8070e Change tabs to spaces in nomad monitor help text 2020-09-14 15:08:30 -04:00
Seth Hoenig
6d26742db1 Merge pull request #8882 from hashicorp/b-expose-panic
consul/connect: validate group network on expose port injection
2020-09-14 11:26:09 -05:00
Seth Hoenig
5c3f63153b consul/connect: validate group network on expose port injection
In #7800, Nomad would automatically generate a port label for service
checks making use of the expose feature, if the port was not already
set. This change assumed the group network would be correctly defined
(as is checked in a validation hook later). If the group network was
not definied, a panic would occur on job submisssion. This change
re-uses the group network validation helper to make sure the network
is correctly definied before adding ports to it.

Fixes #8875
2020-09-14 10:25:03 -05:00
José Maia
57e07772bd Fix sample JSON payload when updating a Volume (#8880)
Fixes #8879
2020-09-14 09:24:26 -04:00
Yoan Blanc
a3139cd845 feat: upgrade consul 1.7, and go-discover
Signed-off-by: Yoan Blanc <yoan@dosimple.ch>
2020-09-13 11:40:47 +02:00
Tim Gross
d8d2b7ec97 docs: add chroot contents to Java driver docs (#8873) 2020-09-11 10:38:30 -04:00
Tim Gross
04ee35b13f e2e: constrain rescheduling test workloads to Linux (#8872)
The rescheduling test workloads were created before we had Windows targets in
the E2E nightly run. When these were recently ported to the e2e framework they
were missing the constraint to Linux machines.

Also added a little extra time to polling to avoid some flakiness on the first
run, and a minor readability adjustment to the job names.
2020-09-11 09:21:28 -04:00
Chris Baker
c25ce6bc20 Merge pull request #8868 from hashicorp/b-missing-ErrMultipleNamespaces
moved shared variable into shared-build file
2020-09-10 21:04:23 -05:00
Charlie Voiselle
d6f1e41736 Update copy on Production overview page 2020-09-10 21:12:43 -04:00
Charlie Voiselle
8730f4b12c Sunset local copy of Deployment Guide and Reference Architecture 2020-09-10 21:12:32 -04:00
Chris Baker
bdb4f81bd9 Update nomad/job_endpoint.go 2020-09-10 17:18:23 -05:00
Chris Baker
c8e48105f1 move variable out of oss-only build into shared file, fixes ent compile error introduced by #8834 2020-09-10 22:08:25 +00:00
Mahmood Ali
64175dccee Revert the requireCanary check introduced in https://github.com/hashicorp/nomad/pull/8691/files#diff-1801138ac4d10f2064ba6f2e434ac9b4L430-R431 .
The change was intended to fix a case where a canary alloc may fail to
be rescheduled if all the other allocs fail as well (e.g. if all allocs
happen to be placed on a node that died).  However, it introduced some
unintended side-effects.

Reverting the change for now and will investigate further.
2020-09-10 14:59:02 -04:00
Mahmood Ali
2bb78ac2c1 test for rescheduling non-canaries 2020-09-10 14:59:02 -04:00
Tim Gross
ec2f1ecaa1 Merge pull request #8860 E2E: rescheduling tests 2020-09-10 13:43:55 -04:00
Tim Gross
78bdd9f4db remove direct dependency on ginkgo 2020-09-10 13:00:42 -04:00
Tim Gross
2b49ae30aa e2e: rescheduling tests
Ports the rescheduling tests (which aren't running in CI) into the current
test framework so that they're run on nightly, and exercises the new CLI
helpers.
2020-09-10 13:00:37 -04:00
Tim Gross
13f667431e e2e: helper for sending CLI commands and parsing output
The E2E suite exercises the API, but not the CLI. This changeset adds a helper
function to send commands via a locally-built Nomad binary (which we'll need
to add to the E2E setup), and some helpers to parse the resulting structured
outputs in a way that tests can consume.
2020-09-10 13:00:32 -04:00
Michael Schurter
97d516701c Merge pull request #8862 from hashicorp/release-0.12.4
Prepare for 0.13 development cycle
2020-09-10 09:14:44 -07:00
Michael Schurter
cec487ad74 release: remove generated files after release 2020-09-10 08:57:30 -07:00
Michael Schurter
e08a8386e3 prepare version for next release 2020-09-09 15:38:13 -07:00
Michael Schurter
48e6706e68 Merge pull request #8861 from hashicorp/docs-nomad-0.12.4
Update website to Nomad 0.12.4
2020-09-09 15:27:06 -07:00
Michael Schurter
cf89177c6b docs: update scripts to 0.12.4 2020-09-09 15:22:37 -07:00
Michael Schurter
b7724bcc3f docs: update website to 0.12.4 2020-09-09 15:22:22 -07:00
Benjamin Buzbee
648140a727 Add API support for cancelation contexts passed via QueryOptions and WriteOptions (#8836)
Copy Consul API's format: QueryOptions.WithContext(context) will now return
a new QueryOption whose HTTP requests will be canceled with the context
provided (and similar for WriteOptions)
2020-09-09 16:22:07 -04:00
Mahmood Ali
d7f14d12c1 Upgrade to golang 1.15 (#8858)
Upgrade to golang 1.15

Starting with golang 1.5, setting Ctty value result in `Setctty set but Ctty not valid in child` error, as part of https://github.com/golang/go/issues/29458 .
This commit lifts the fix in https://github.com/creack/pty/pull/97 .
2020-09-09 15:59:29 -04:00
Nomad Release Bot
119a970095 Release v0.12.4 2020-09-09 17:34:53 +00:00
Nomad Release bot
8efaee4ba5 Generate files for 0.12.4 release 2020-09-09 16:59:58 +00:00
Michael Lange
2bf0cb3866 Merge pull request #8850 from hashicorp/d/changelog
Changelog entry for 8833
2020-09-09 08:36:04 -07:00
Michael Schurter
998120036e docs: bump 0.12.4 GA date to today 2020-09-09 08:32:50 -07:00
James Rasell
978c3f17fc Merge pull request #8855 from hashicorp/b-docs-fix-autopilot-configblock-format
docs: format Autopilot config stanza example.
2020-09-09 16:15:41 +02:00
Yoan Blanc
8976261f4a fix: panic in test introduced by #8453 (#8834)
Signed-off-by: Yoan Blanc <yoan@dosimple.ch>
2020-09-09 09:38:15 -04:00
James Rasell
98e51e023c docs: format Autopilot config stanza example. 2020-09-09 15:37:39 +02:00
James Rasell
b54ab4ee8d Merge pull request #8851 from hashicorp/b-fix-e2e-8842
e2e: fix failure in running metrics test suite jobs.
2020-09-09 15:14:47 +02:00
Chris Baker
c46b7d4d40 Merge pull request #8848 from hashicorp/b-deployment-500-error
GetDeployment should not return 500 error
2020-09-09 07:20:13 -05:00
James Rasell
225c3209bc e2e: fix failure in running metrics test suite jobs.
When running the Fabio and Prometheus jobs for the metrics suite
it seems the outer directory is required in the call when
registering the job.

error: "e2e/input/fabio.nomad: no such file or directory"
2020-09-09 08:40:35 +02:00