Commit Graph

16221 Commits

Author SHA1 Message Date
Charlie Voiselle
0c359d1a21 Fixup for command section of website
* changed list indicator from * -> -
* moved in-text links to reference links
* made commands `plaintext`
* made command examples `console`
* rewrapped text
2019-10-22 17:42:08 -04:00
Michael Lange
ac8fa9fe1d Changelog entry: couple of UI bugs 2019-10-21 15:10:00 -07:00
Michael Schurter
d6a534fd26 Merge pull request #6515 from hashicorp/b-expose-group-ports
client: expose group network ports in env vars
2019-10-21 13:27:46 -07:00
Michael Schurter
5a6818510e client: expose group network ports in env vars
Fixes #6375

Intentionally omitted IPs prior to 0.10.0 release to minimize changes
and risk.
2019-10-21 12:31:13 -07:00
Danielle
066c4027d6 Merge pull request #6518 from mre/patch-1
Update link to new blog
2019-10-21 15:37:53 +02:00
Matthias Endler
c88dac0c5f Update link to new blog 2019-10-21 15:35:24 +02:00
Mahmood Ali
75acbccf8e Merge pull request #6325 from hashicorp/b-docker-reconcile-periodically
docker: periodically reconcile containers
2019-10-18 15:53:30 -04:00
Mahmood Ali
c64647c218 add timeouts for docker reconciler docker calls 2019-10-18 15:31:13 -04:00
Mahmood Ali
04a2e05994 only set a single label for now
Other labels aren't strictly necessary here, and we may follow up with a
better way to customize.
2019-10-18 15:31:13 -04:00
Mahmood Ali
487b0d8349 Only start reconciler once in main driver
driver.SetConfig is not appropriate for starting up reconciler
goroutine.  Some ephemeral driver instances are created for validating
config and we ought not to side-effecting goroutines for those.

We currently lack a lifecycle hook to inject these, so I picked the
`Fingerprinter` function for now, and reconciler should only run after
fingerprinter started.

Use `sync.Once` to ensure that we only start reconciler loop once.
2019-10-18 14:43:23 -04:00
Michael Schurter
1b64461d52 Merge pull request #6509 from hashicorp/f-add-envoy-sha
connect: upgrade to envoy 1.11.2 and add sha
2019-10-18 10:14:57 -07:00
Mahmood Ali
586a7accee Merge pull request #6510 from hashicorp/r-golang-1.12.12
Use golang 1.12.12
2019-10-18 10:52:28 -04:00
Michael Schurter
ca57cd2775 connect: upgrade to envoy 1.11.2 and add sha
Append the Docker image sha to the Envoy image to ensure users default
to using the version that Nomad was tested against.
2019-10-18 07:46:53 -07:00
Mahmood Ali
3c57488aae e2e tests assume non-root user 2019-10-18 09:21:30 -04:00
Mahmood Ali
2fd26e814b adjust circleci scripts to use official golang image 2019-10-18 08:52:49 -04:00
Mahmood Ali
61509742bc Use golang 1.12.12
Use use base official golang image in CircleCI, as it gets refreshed
more quickly compared to circleci/golang, and we don't benefit from
circleci image customizations much.
2019-10-18 08:44:47 -04:00
Seth Hoenig
3e38891b88 Merge pull request #6455 from hashicorp/f-set-connect-sidcar-tags-web
docs: document service tags for connect sidecar
2019-10-17 15:14:46 -05:00
Seth Hoenig
8c7a7b6def Merge pull request #6448 from hashicorp/f-set-connect-sidecar-tags
connect: enable setting tags on consul connect sidecar service in job…
2019-10-17 15:14:09 -05:00
Seth Hoenig
a3dd7d4931 docs: document service tags for connect sidecar 2019-10-17 19:27:04 +00:00
Seth Hoenig
b7e83591b4 connect: enable setting tags on consul connect sidecar service in jobspec (#6415) 2019-10-17 19:25:20 +00:00
Mahmood Ali
8c3136a666 docker label refactoring and additional tests 2019-10-17 10:45:13 -04:00
Mahmood Ali
ef4465dfa4 add docker labels 2019-10-17 10:45:12 -04:00
Mahmood Ali
24f6c2bf07 refactor reconciler code and address comments 2019-10-17 09:42:23 -04:00
Mahmood Ali
c8ba2d1b86 address code review comments 2019-10-17 08:36:02 -04:00
Mahmood Ali
3bf0ae995a docker: explicit grace period for initial container reconcilation
Ensure we wait for some grace period before killing docker containers
that may have launched in earlier nomad restore.
2019-10-17 08:36:02 -04:00
Mahmood Ali
911d17e3ee docker: periodically reconcile containers
When running at scale, it's possible that Docker Engine starts
containers successfully but gets wedged in a way where API call fails.
The Docker Engine may remain unavailable for arbitrary long time.

Here, we introduce a periodic reconcilation process that ensures that any
container started by nomad is tracked, and killed if is running
unexpectedly.

Basically, the periodic job inspects any container that isn't tracked in
its handlers.  A creation grace period is used to prevent killing newly
created containers that aren't registered yet.

Also, we aim to avoid killing unrelated containters started by host or
through raw_exec drivers.  The logic is to pattern against containers
environment variables and mounts to infer if they are an alloc docker
container.

Lastly, the periodic job can be disabled to avoid any interference if
need be.
2019-10-17 08:36:01 -04:00
Alvin Huang
0078b79199 remove check for relative url validation (#6504) 2019-10-16 17:50:40 -04:00
Omar Khawaja
bd5bf9c31a Getting started learn redirect (#6460)
* redirect getting started section to learn

* formatting

* move redirects.txt to source directory
2019-10-16 16:17:29 -04:00
Charlie Voiselle
d42dad0f0b Merge pull request #6434 from hashicorp/docs-add-grpc-info
docs: Added grpc info; small style fixes to connect guide
2019-10-16 14:18:20 -04:00
Preetha
839504e85b Merge pull request #6453 from ogadaki/patch-1
fix typo in HCL code
2019-10-16 11:16:53 -05:00
Preetha
87369dd221 Merge pull request #6491 from hashicorp/support-external-redirects
Support external redirects for website
2019-10-16 11:14:22 -05:00
Mahmood Ali
5fee177ba7 Merge pull request #6426 from hashicorp/b-dep-go-plugin-8091134
upgrade go-plugin to latest, 8091134
2019-10-16 07:48:29 -04:00
Mahmood Ali
c04b59ae09 Merge pull request #6422 from hashicorp/c-api-websocket-mod
api: declare websocket as a dependency
2019-10-16 07:48:11 -04:00
Mahmood Ali
31da091b57 Merge pull request #6427 from hashicorp/b-fs-endpoint-errors
agent: report fs log errors as http errors
2019-10-15 20:12:59 -04:00
Mahmood Ali
5282353e22 tests: avoid using unnecessary pipe 2019-10-15 17:22:03 -04:00
Mahmood Ali
bf91e83fb9 Merge pull request #6423 from hashicorp/b-direct-node-failure
cli: recover from client ACL lookup failures
2019-10-15 17:09:59 -04:00
Michael Schurter
da832a54f5 Merge pull request #6498 from hashicorp/docs-security
docs: link to security page on website
2019-10-15 14:00:47 -07:00
Spencer Owen
0abdbbf7b7 Fix grammar (#6486) 2019-10-15 15:04:57 -05:00
Michael Schurter
c785e4c4cc docs: link to security page on website
Add link to https://www.nomadproject.io/security.html
2019-10-15 12:56:48 -07:00
Buck Doyle
882a0210fe UI: Update Ember to 3.12 LTS (#6419)
This is mostly deprecation fixes and blueprint changes. There
are some dependency updates too; the changes to Ember
Basic Dropdown necessitated changing it to angle bracket
component invocation. The conversion of the rest of the
templates will happen separately.
2019-10-15 13:32:58 -05:00
Michael Lange
53400c5484 Merge pull request #6466 from hashicorp/b-ui-firefox-log-window-off-screen
Use max-width to ensure the width rule is observed in Firefox
2019-10-15 11:09:20 -07:00
Mahmood Ali
1064b9f71f Merge pull request #6425 from hashicorp/f-cli-show-full-ids
cli: show full id for single node or alloc status
2019-10-15 10:54:25 -04:00
Mahmood Ali
9942dec211 Merge pull request #6290 from hashicorp/r-generated-code-refactor
dev: avoid codecgen code in downstream projects
2019-10-15 08:22:31 -04:00
Alvin Huang
f33bf65e22 upload external and relative redirects to two dictionaries 2019-10-14 16:55:14 -04:00
Tim Gross
8d97fc8b4a e2e: upgrade terraform to 0.12.x (#6489) 2019-10-14 11:27:08 -04:00
Tim Gross
0371664d03 e2e: move remote-exec inline to script (#6488)
A failing script in a `remote-exec` provisioner's `inline` stanza
won't fail the provisioning step. This lets us continue on to execute
tests against potentially broken deployments, rather than letting us
know the provisioning itself failed.
2019-10-14 10:23:41 -04:00
Danielle
71ea45c205 Merge pull request #6331 from hashicorp/dani/f-volume-mount-propagation
volumes: Add support for mount propagation
2019-10-14 14:29:40 +02:00
Danielle Lancashire
afb59bedf5 volumes: Add support for mount propagation
This commit introduces support for configuring mount propagation when
mounting volumes with the `volume_mount` stanza on Linux targets.

Similar to Kubernetes, we expose 3 options for configuring mount
propagation:

- private, which is equivalent to `rprivate` on Linux, which does not allow the
           container to see any new nested mounts after the chroot was created.

- host-to-task, which is equivalent to `rslave` on Linux, which allows new mounts
                that have been created _outside of the container_ to be visible
                inside the container after the chroot is created.

- bidirectional, which is equivalent to `rshared` on Linux, which allows both
                 the container to see new mounts created on the host, but
                 importantly _allows the container to create mounts that are
                 visible in other containers an don the host_

private and host-to-task are safe, but bidirectional mounts can be
dangerous, as if the code inside a container creates a mount, and does
not clean it up before tearing down the container, it can cause bad
things to happen inside the kernel.

To add a layer of safety here, we require that the user has ReadWrite
permissions on the volume before allowing bidirectional mounts, as a
defense in depth / validation case, although creating mounts should also require
a priviliged execution environment inside the container.
2019-10-14 14:09:58 +02:00
Alvin Huang
615994ca17 repoint deploy script to new redirects file location 2019-10-12 23:17:19 -04:00
Alvin Huang
2f2e8b833c generate a _redirects for netlify previews 2019-10-12 23:17:03 -04:00