Commit Graph

20638 Commits

Author SHA1 Message Date
Nick Ethier
35530a4837 ar: isolate network actions performed by client 2021-02-02 23:24:57 -05:00
Nick Ethier
a957a5cd20 Merge pull request #9937 from hashicorp/b-9728
scheduler: add tests and fix for detected host_network and to port field changes
2021-02-02 13:54:41 -05:00
Buck Doyle
2103e55daf Update ember-a11y-testing (#9912)
This includes seemingly-unrelated changes because of dependency updates.
2021-02-02 12:45:40 -06:00
Tim Gross
14344f4faa changelog: add issue link for quota enforcement change 2021-02-02 10:31:55 -05:00
Tim Gross
1b05c97989 docs: add changelog entry for removing mbits from quotas 2021-02-02 10:10:44 -05:00
Tim Gross
fa05789a94 docs: remove mbits examples from documentation 2021-02-02 10:10:44 -05:00
Nick Ethier
ee7a5369b1 scheduler: add tests and fix for detected host_network and to port field changes 2021-02-01 15:56:43 -05:00
Mahmood Ali
d5deeb4be7 Merge pull request #9936 from hashicorp/b-hcl2-task-env
Allow expressing `meta` and `env` blocks as map attributes as well.

`env` and `meta` should support arbitrary key and values, yet hcl2
restricts the keys to valid identifiers. For example, block attribute
identifiers may not contain dots, `.`, which frequently used in meta
fields, and sometimes in environment variable fields.

By adding attribute syntax support, we maintain backward compatibility and relax the block attribute key restrictions. This change attempts to parse `env`/`meta` both as an attribute and as a
block.

Additionally, the change allows better expressivity for env/meta blocks, using
functions and for expressions. For example, one can reuse a set of environment variables for
multiple tasks, using a local `common_envs` value:

```hcl
env = merge(local.common_envs, {"more_env_key", "..."})
```

Note that the map/attribute compatibility workaround is currently a pattern we recommend for driver config blocks: https://www.nomadproject.io/docs/job-specification/hcl2#blocks . :( Sadly, the document isn't accurate, as only `meta` appearing inside driver config was handled in 1.0.1.

Closes https://github.com/hashicorp/nomad/issues/9606
2021-02-01 13:55:12 -05:00
Buck Doyle
e28cb14494 Change down to highest-priority composite status (#9927)
As pointed out by Nick Ethier, if a node was ineligible before
it went down, downness should be displayed, not ineligibility.
2021-02-01 12:00:34 -06:00
Mahmood Ali
2ae4761356 tests: add tests for invalid syntax cases 2021-02-01 12:51:51 -05:00
Mahmood Ali
4b25371842 tests: update test with a real invalid hcl2 2021-02-01 11:12:22 -05:00
Mahmood Ali
c5ba52d9bc Merge pull request #9933 from hashicorp/e2e-buf-0.36.0
lint: Upgrade buf to 0.36.0, latest so far
2021-02-01 10:53:06 -05:00
Mahmood Ali
1e8a3606b7 hcl2: special case meta and env blocks
Allow expressing `meta` and `env` blocks as map attributes as well.
`env` and `meta` should support arbitrary key and values, yet hcl2
restricts the keys to valid identifiers. For example, block attribute
identifiers may not contain dots, `.`, which frequently used in meta
fields, and sometimes in environment variable fields.

This change attempts to parse `env`/`meta` both as an attribute and as a
block.

This additionally allows better expressivity for env/meta blocks, using
functions. For example, one can reuse a set of environment variables for
multiple tasks, using a local common_envs value:

```hcl
env = merge(local.common_envs, {"more_env_key", "..."})
```
2021-02-01 10:45:03 -05:00
Seth Hoenig
b7b4d9263a Merge pull request #9926 from hashicorp/f-up-consul-api
consul: upgrade consul/api to 1.8.1
2021-02-01 08:27:52 -06:00
Mahmood Ali
c9b78e4cfe update buf compare tag to latest release 2021-01-31 20:23:22 -05:00
Mahmood Ali
8a53fdf06d lint: Upgrade buf to 0.36.0, latest so far 2021-01-31 20:09:15 -05:00
Chris Baker
82011c24ce Merge pull request #9929 from hashicorp/changli0617-patch-1
Update alert-banner.js
2021-01-29 13:58:15 -06:00
Chris Baker
943cbb211a Merge pull request #9931 from hashicorp/website-update-version
update latest release version on website
2021-01-29 13:57:40 -06:00
Chris Baker
a197578eeb update latest version on website 2021-01-29 19:55:13 +00:00
Chris Baker
c6bbb92478 Update website/data/alert-banner.js 2021-01-29 13:53:17 -06:00
Chris Baker
ab70412580 Merge pull request #9930 from hashicorp/post-release-1.0.3
post-release merge for 1.0.3
2021-01-29 13:50:19 -06:00
changli0617
5320ebe852 Update alert-banner.js 2021-01-29 11:47:24 -08:00
Chris Baker
d0462cf9b3 remove generated code 2021-01-29 19:46:46 +00:00
Chris Baker
352df9c222 vesion-specific upgrade guide for 1.0.3 and 0.12.10 2021-01-29 19:41:48 +00:00
Chris Baker
460c9a6461 version to 1.0.4-dev 2021-01-29 19:31:13 +00:00
Chris Baker
7f06adf1af Merge tag 'v1.0.3' into post-release-1.0.3
Version 1.0.3
2021-01-29 19:30:08 +00:00
Seth Hoenig
277a425ef3 consul: upgrade consul/api to 1.8.1 2021-01-29 10:04:45 -06:00
Tim Gross
f51d035256 interpolate maps in dynamic blocks (#9921)
Update hcl2 for patch to fix map interpolation in dynamic blocks
2021-01-29 10:16:07 -05:00
Michael Lange
4b7ee22692 Merge pull request #9909 from hashicorp/b-ui/incorrect-error-message
UI: Use server-sent error messages when applicable
2021-01-28 14:02:32 -08:00
Michael Lange
3aa4cf3f2d Add an acceptance test exercising errors from an HTTP response to a notification 2021-01-28 13:47:22 -08:00
Michael Lange
5dfa556983 Test coverage for the messageFromAdapterError util 2021-01-28 12:18:53 -08:00
Michael Lange
dbf826d7ef Don't use generic ACL error messages
When the error is actually a 403, an ACL error is appropriate, but when
it isn't, fallback on what the API returns.
2021-01-28 12:18:53 -08:00
Michael Lange
6c98f1b1a2 Improve the message-from-adapter-error util
Automatically detect ACL errors
Provide a generic error message as a fallback
2021-01-28 12:18:52 -08:00
Michael Lange
d0f96f31a4 Merge pull request #9886 from hashicorp/b-ui/topo-viz-accounting
UI: Topology info panel incorrect accounting bugs
2021-01-28 09:23:01 -08:00
Nomad Release Bot
d79b74c937 Release v1.0.3 2021-01-28 16:17:14 +00:00
Buck Doyle
73be2c3439 Merge branch 'master' into b-ui/topo-viz-accounting 2021-01-28 09:56:46 -06:00
Chris Baker
08741d9f20 bump version to 1.0.3 2021-01-28 14:51:01 +00:00
Chris Baker
2b8d52a66f updated changelog for release 2021-01-28 14:46:57 +00:00
vagrant
c1910544be attempting to fix flaky tests caused by pid isolation 2021-01-28 12:03:20 +00:00
Chris Baker
bcb78f15bf lint some nomad HCL job specs 2021-01-28 12:03:19 +00:00
Kris Hicks
f4fe79ad89 Backfill unit test for NEWIPC 2021-01-28 12:03:19 +00:00
Chris Baker
c9905747e6 e2e: java driver isolation tests 2021-01-28 12:03:19 +00:00
Chris Baker
3eb9cdf740 additional e2e utils for multi-task allocs 2021-01-28 12:03:19 +00:00
Chris Baker
6a067a33ff modify exec driver test TestExecDriver_StartWaitStop in light of the fact that signaling sleep with SIGINT doesn't work if it's PID1 2021-01-28 12:03:19 +00:00
Chris Baker
611abc33a5 modify exec driver test TestExecDriver_DestroyKills all in light of the fact that PID namespacing means that the kernel does this now 2021-01-28 12:03:19 +00:00
Chris Baker
109fb53e50 put exec process in a new IPC namespace 2021-01-28 12:03:19 +00:00
Kris Hicks
87f80b1042 Add a little comment 2021-01-28 12:03:19 +00:00
Kris Hicks
c0f6df7cfd Add test for alloc exec 2021-01-28 12:03:19 +00:00
Kris Hicks
ea7bab0714 Add e2e test for raw exec 2021-01-28 12:03:19 +00:00
Kris Hicks
41681fa1d2 Add unit test for container namespacing 2021-01-28 12:03:19 +00:00