Commit Graph

20725 Commits

Author SHA1 Message Date
Drew Bailey
2f99d6495d E2e/fix periodic (#10047)
* fix periodic

* update periodic to not use template

nomad job inspect no longer returns an apiliststub so the required fields to query job summary are no longer there, parse cli output instead

* rm tmp makefile entry

* fix typo

* revert makefile change
2021-02-18 12:21:53 -05:00
Tim Gross
fdd15fcd89 changelog: missing changelog items for 1.0.4 2021-02-18 11:35:42 -05:00
Tim Gross
1a34c029eb hcl2: avoid panic on unset variable
Variables that are unset return the correct diagnostic but throw a panic when
we later parse the job body. Return early if there are any variable parsing
errors instead of continuing in a potentially invalid state.
2021-02-18 10:48:56 -05:00
James Rasell
095ed2c311 Merge pull request #10044 from hashicorp/b-fix-drainer-error-msg
drainer: fix error message when handling drain deadlined nodes.
2021-02-18 15:09:12 +01:00
James Rasell
7b3906e36f drainer: fix error message when handling drain deadlined nodes. 2021-02-18 11:45:44 +01:00
Buck Doyle
e47ce42548 Update Ember/Ember CLI to 3.20 (#9641)
This doesn’t include Ember Data, as we are still back on 3.12.

Most changes are deprecation updates, linting fixes, and dependencies. It can
be read commit-by-commit, though many of them are mechanical and skimmable.
For the new linting exclusions, I’ve added them to the Tech Debt list.

The decrease in test count is because linting is no longer included in ember test.

There’s a new deprecation warning in the logs that can be fixed by updating Ember
Power Select but when I tried that it caused it to render incorrectly, so I decided to
ignore it for now and address it separately.
2021-02-17 15:01:44 -06:00
Tim Gross
a68abe340d docs: clarify type constraints for collections in locals
HCL2 locals don't have type constraints, and the map syntax is interpreted as
an object. So users may need to explictly convert to map for some functions.

The `convert` function documentation was missing the required type constructor
parameter for collections.
2021-02-17 14:45:05 -05:00
Tim Gross
1a1e280bd4 docs: clarify that block labels can't be interpolated in HCL2
Block labels are not expressions so they can't be interpolated without hacks
like `dynamic` blocks. Clarify this so that we don't confuse users who
shouldn't need to dig into the subtle nuances between expressions and blocks.
2021-02-17 11:53:06 -05:00
Tim Gross
db8ce30074 docs: remove artifact destination interpolation warning 2021-02-17 09:52:27 -05:00
Drew Bailey
3a83a6d0fc update changelog (#10034)
* update changelog

* fix changelog order
2021-02-16 12:50:08 -05:00
Karan Sharma
f159903e39 feat: Add -task to alloc logs command (#10026) 2021-02-16 11:21:06 -05:00
Seth Hoenig
49e5699eee Merge pull request #9975 from AndrewChubatiuk/connect-host-networks-fix
Updated Default Consul Sidecar Healthcheck
2021-02-16 09:50:23 -06:00
Buck Doyle
cb4443d0dc Fix recommendation test to ensure CPU exists (#10004)
This fixes a flaky test, as seen in this failure:
https://app.circleci.com/pipelines/github/hashicorp/nomad/14726/workflows/f4ae0bf2-0699-4d18-b55e-5221aafe393c/jobs/137128

One part of the test involves toggling off all memory recommendations
and then accepting, but it’s not possible to accept when there are
no CPU recommendations to begin with, which can happen because
there’s a 10% chance of not creating a corresponding recommendation
in the task factory. Since two tasks are created for this module, it’s
only a 1% chance of no CPU task, but that means 1% flakiness!
2021-02-16 08:43:18 -06:00
AndrewChubatiuk
77ec3d1fab pr comments 2021-02-13 02:42:14 +02:00
AndrewChubatiuk
66e3e95aaf fixed typo 2021-02-13 02:42:14 +02:00
AndrewChubatiuk
501d27c9b5 fixed typo 2021-02-13 02:42:14 +02:00
AndrewChubatiuk
8e09d7c394 fixed typo 2021-02-13 02:42:14 +02:00
AndrewChubatiuk
02aa923a57 fixed tests 2021-02-13 02:42:14 +02:00
AndrewChubatiuk
f6e875dcb8 fixed connect port label 2021-02-13 02:42:14 +02:00
AndrewChubatiuk
625bd98915 fixed connect port label 2021-02-13 02:42:14 +02:00
AndrewChubatiuk
4ed7323c8d fixed connect port label 2021-02-13 02:42:14 +02:00
AndrewChubatiuk
b7d1aee621 tests fix 2021-02-13 02:42:14 +02:00
AndrewChubatiuk
b860cc44a0 allocate sidecar task port on host_network interface 2021-02-13 02:42:13 +02:00
AndrewChubatiuk
2d13826e22 fixed tests 2021-02-13 02:42:13 +02:00
AndrewChubatiuk
93cd0d2e88 fixed tests 2021-02-13 02:42:13 +02:00
AndrewChubatiuk
1d5981015a fixed tests 2021-02-13 02:42:13 +02:00
AndrewChubatiuk
b3323a562b removed proxy suffix 2021-02-13 02:42:13 +02:00
AndrewChubatiuk
f43e153a61 fixed variable initialization 2021-02-13 02:42:13 +02:00
AndrewChubatiuk
4e8142dabb customized default sidecar checks 2021-02-13 02:42:13 +02:00
AndrewChubatiuk
be3ac8faa4 enabled hairpin mode 2021-02-13 02:42:13 +02:00
Charlie Voiselle
def4d61617 Merge pull request #10020 from hashicorp/docs-update-install-brew
Updated Homebrew install instructions
2021-02-12 11:52:59 -05:00
Seth Hoenig
d75ac47c13 Merge pull request #10022 from hashicorp/docs-update-ig-example
docs: update ingress gateway runnable demo
2021-02-12 10:26:31 -06:00
Seth Hoenig
a2daa3c08a docs: update ingress gateway runnable demo
Using the environment variable stopped working here a while back,
should be using the port label. Also upgrade to uuid-api:v5 which
supports linux/arm64.
2021-02-12 10:10:16 -06:00
Charlie Voiselle
3232d5b0fe Updated Homebrew install instructions 2021-02-11 18:42:18 -05:00
Nick Ethier
2d4d468c6e Merge pull request #9946 from hashicorp/b-9477
structs: namespace port validation by host_network
2021-02-11 12:53:28 -05:00
James Rasell
58a948089c Merge pull request #10011 from hashicorp/b-e2e-gh-9985
e2e: account for race condition in periodic dispatch test.
2021-02-11 15:12:50 +01:00
Shantanu Gadgil
2a50f73ed2 The encryption key uses 32 bytes now
The encryption key uses 32 bytes now, not 16 bytes
2021-02-11 08:34:39 -05:00
James Rasell
7cb48abb5a e2e: account for race condition in periodic dispatch test. 2021-02-11 11:08:48 +01:00
Mark Lewis
d8a7c6f3f2 Fix typo (#10008) 2021-02-10 14:43:11 -06:00
Buck Doyle
1d0c57dbbe Fix deployment failure error handling (#10003)
This is a supplement to #9831 to incorporate the extracted
missing-permissions error handling from #9909.

It fixes this failure on the main branch! 😳
https://app.circleci.com/pipelines/github/hashicorp/nomad/14728/workflows/4c147dca-fd1e-4de7-86aa-90ded7aabad2/jobs/137137
2021-02-10 10:23:19 -06:00
Buck Doyle
d98265d954 Add button to fail running deployments (#9831)
This closes #8744 and #9826.

It necessitated some customisation options for TwoStepButton. One is inlineText, which puts the confirmation text in the same line as the buttons. Also, there was a single-use configuration option named isInfoAction that I removed in favour of passing a set of class configuration options like this:

                @classes={{hash
                  idleButton="is-warning"
                  confirmationMessage="inherit-color"
                  cancelButton="is-danger is-important"
                  confirmButton="is-warning"}}
2021-02-10 08:38:37 -06:00
Karan Sharma
06744e0f9d fix: docs/job-specification change mounts to mount
Since [mounts](https://www.nomadproject.io/docs/drivers/docker#mounts) is deprecated,
switch to newer `mount` in `task.config` for `docker` driver.
2021-02-10 08:24:58 -05:00
Seth Hoenig
c7b5ae65fd Merge pull request #9990 from hashicorp/f-nsiso-task
drivers/exec+java: Add task configuration to restore previous PID/IPC isolation behavior
2021-02-09 13:29:14 -06:00
Seth Hoenig
dbfde6a036 Merge pull request #9995 from hashicorp/f-expose-custom
consul/connect: enable custom sidecars to use expose checks
2021-02-09 12:33:30 -06:00
Seth Hoenig
bc710d8f73 docs: fix egregious changelog ordering 2021-02-09 12:33:03 -06:00
Seth Hoenig
af48777ddd consul/connect: enable custom sidecars to use expose checks
This PR enables jobs configured with a custom sidecar_task to make
use of the `service.expose` feature for creating checks on services
in the service mesh. Before we would check that sidecar_task had not
been set (indicating that something other than envoy may be in use,
which would not support envoy's expose feature). However Consul has
not added support for anything other than envoy and probably never
will, so having the restriction in place seems like an unnecessary
hindrance. If Consul ever does support something other than Envoy,
they will likely find a way to provide the expose feature anyway.

Fixes #9854
2021-02-09 10:49:37 -06:00
Buck Doyle
24b9a899d8 Fix exec escaping for emoji task name (#7813)
This closes #7459.

While emoji don’t actually need escaping, expanding the
expression that enumerates all task name characters that
don’t need escaping to include emoji is prohibitive, since
it’s a discontinuous range. The emoji-regex project has
such an expression and it’s 12kB.

This fixes the regular expression to property escape emoji
as a single character instead of as its component bytes.
Thanks to @DingoEatingFuzz for the suggestion.
2021-02-09 09:33:48 -06:00
Bryce Kalow
7366fa7623 website: update next and nextjs-scripts (#9957) 2021-02-08 16:53:32 -06:00
Seth Hoenig
836ee9e4a2 drivers/exec+java: Add task configuration to restore previous PID/IPC isolation behavior
This PR adds pid_mode and ipc_mode options to the exec and java task
driver config options. By default these will defer to the default_pid_mode
and default_ipc_mode agent plugin options created in #9969. Setting
these values to "host" mode disables isolation for the task. Doing so
is not recommended, but may be necessary to support legacy job configurations.

Closes #9970
2021-02-08 14:26:35 -06:00
Nick Ethier
13675be521 Merge pull request #9976 from hashicorp/hack-iptables-isolation
ar: isolate network actions performed by client
2021-02-08 14:15:45 -05:00