Commit Graph

20663 Commits

Author SHA1 Message Date
Seth Hoenig
134eebbd60 docs: shorten IPC
Co-authored-by: Chris Baker <1675087+cgbaker@users.noreply.github.com>
2021-02-08 10:52:19 -06:00
Seth Hoenig
1364e33fed docs: capitalize posix
Co-authored-by: Chris Baker <1675087+cgbaker@users.noreply.github.com>
2021-02-08 10:52:08 -06:00
Seth Hoenig
779c90db09 docs: capitalize posix
Co-authored-by: Chris Baker <1675087+cgbaker@users.noreply.github.com>
2021-02-08 10:51:55 -06:00
Seth Hoenig
b682371a22 drivers/exec+java: Add configuration to restore previous PID/IPC namespace behavior.
This PR adds default_pid_mode and default_ipc_mode options to the exec and java
task drivers. By default these will default to "private" mode, enabling PID and
IPC isolation for tasks. Setting them to "host" mode disables isolation. Doing
so is not recommended, but may be necessary to support legacy job configurations.

Closes #9969
2021-02-05 15:52:11 -06:00
Mike Wickett
0078854ed3 website: update community page to be consistent with other projects (#9863) 2021-02-05 13:54:59 -05:00
Alex Chan
744c4470b9 Correct the spelling of heirarchical/hierarchical (#9980) 2021-02-05 09:23:30 -06:00
Alex Iribarren
79e3c3a509 Replace &lsquo; and &apos; with ' 2021-02-05 08:36:38 -05:00
Tim Gross
fee2802775 volumes: implement plan diff for volume requests
The details of host volume and CSI volume requests do not show up in `nomad
plan` outputs, although the updates are detected by the scheduler and result
in an update as expected.
2021-02-04 16:55:17 -05:00
Buck Doyle
84b8a1930a Change exec URLs to use job’s namespace/region (#9968)
This closes #9966. It was looking at the query parameters
for the namespace and region, but allocation (and task!)
routes don’t have a namespace query parameter. Since the URL
generator requires the job for all calls, it makes sense to
extract the namespace and region from the job instead.
2021-02-04 13:14:15 -06:00
Chris Baker
415203d91c Merge pull request #9964 from hashicorp/f-9787-alloc-prefix-cli
add prefix-search and auto-completion for `scaling policy info` command
2021-02-04 10:00:57 -06:00
Chris Baker
2a302c65d9 changelog for 9964 2021-02-04 15:11:00 +00:00
Chris Baker
b0ccf3ca5c scaling policy -verbose flag, plus testing and other recommendations from review 2021-02-04 15:08:13 +00:00
Xopherus
e45a1246cc Fix aws secret key name in autoscaler aws target
- aws secret key is named incorrectly in the target docs.
  It needs to match what is in the nomad-autoscaler repo
  (see link below), otherwise the autoscaler will default to AWS sdk
  behavior, which could end up using an IAM instance profile
  or other environment variables instead of what is passed into the
  autoscaler config file.

Ref: e60fb5268d/plugins/builtin/target/aws-asg/plugin/plugin.go (L27)
2021-02-03 16:56:12 -05:00
Chris Baker
bfec8a7e4d updated "scaling policy info" with prefix search and auto-complete 2021-02-03 21:29:44 +00:00
Chris Baker
fbdbd7736c bad boolean logic for List-on-Info commands 2021-02-03 21:29:05 +00:00
Chris Baker
32c7b7d9c3 api: added scaling_policy context to global search 2021-02-03 21:28:32 +00:00
Nick Ethier
434f4b4054 Merge pull request #9951 from hashicorp/b-8284
drivers/docker: support mapping multiple host ports to the same container port
2021-02-03 15:04:05 -05:00
Chris Baker
a4d6fc3293 support for scaling_policy in global prefix search 2021-02-03 19:26:57 +00:00
Nick Ethier
9e34855d67 add changelog item 2021-02-02 23:00:03 -05:00
Nick Ethier
0dd2feb1db drivers/docker: support mapping multiple host ports to the same container port 2021-02-02 22:54:23 -05:00
Buck Doyle
4e0e33e7c0 Remove support for IE11 (#9578)
This changes the Babel compilation targets to exclude IE 11,
which results in significant payload size savings.
2021-02-02 13:14:51 -06:00
Michael Lange
7fd0a7c317 Merge pull request #9913 from hashicorp/b-ui/cross-region-server-monitor
UI: Cross region server monitor
2021-02-02 11:11:59 -08:00
Chris Baker
80e203ccc2 Merge pull request #9943 from hashicorp/e2e-fix-failing-java-test
e2e packer build: upgrade jdk to java 14
2021-02-02 13:11:32 -06: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
Chris Baker
81fef152a0 e2e packer build: upgrade jdk to java 14 2021-02-02 17:33:48 +00: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
Michael Lange
2c13731d95 Don't include the region param in authorizedRequest if it's already in the URL 2021-02-01 09:54:46 -08:00
Michael Lange
fcf31ffeaf Always include the region param in server monitor requests
The region will naturally be appended to URLs via
token.authorizedRequest but agent members includes all servers across
all regions so relying on the application-level region isn't good
enough.
2021-02-01 09:54:46 -08: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