Commit Graph

15608 Commits

Author SHA1 Message Date
Nick Ethier b8a1ebb3b7
executor: support network namespacing on universal executor 2019-07-31 01:03:58 -04:00
Nick Ethier 0e40063092
docker: add nil check on network isolation spec 2019-07-31 01:03:21 -04:00
Nick Ethier f50fa7ef08
docker: fix driver test from changed func args 2019-07-31 01:03:20 -04:00
Nick Ethier d752734719
docker: add additional commens 2019-07-31 01:03:20 -04:00
Nick Ethier 1fc5f86a7c
docker: support shared network namespaces 2019-07-31 01:03:20 -04:00
Nick Ethier 971c8c9c2b
Driver networking support
Adds support for passing network isolation config into drivers and
implements support in the rawexec driver as a proof of concept
2019-07-31 01:03:20 -04:00
Nick Ethier 63c5504d56
ar: fix lint errors 2019-07-31 01:03:19 -04:00
Nick Ethier e312201d18
ar: rearrange network hook to support building on windows 2019-07-31 01:03:19 -04:00
Nick Ethier 370533c9c7
ar: fix test that failed due to error renaming 2019-07-31 01:03:19 -04:00
Nick Ethier 2d60ef64d9
plugins/driver: make DriverNetworkManager interface optional 2019-07-31 01:03:19 -04:00
Nick Ethier f87e7e9c9a
ar: plumb error handling into alloc runner hook initialization 2019-07-31 01:03:18 -04:00
Nick Ethier ef1795b344
ar: add tests for network hook 2019-07-31 01:03:18 -04:00
Nick Ethier 15989bba8e
ar: cleanup lint errors 2019-07-31 01:03:18 -04:00
Nick Ethier 220cba3e7e
ar: move linux specific code to it's own file and add tests 2019-07-31 01:03:18 -04:00
Nick Ethier ab84630132
plugin/driver: fix tests and add new dep to vendor 2019-07-31 01:03:17 -04:00
Nick Ethier 548f78ef15
ar: initial driver based network management 2019-07-31 01:03:17 -04:00
Nick Ethier 66c514a388
Add network lifecycle management
Adds a new Prerun and Postrun hooks to manage set up of network namespaces
on linux. Work still needs to be done to make the code platform agnostic and
support Docker style network initalization.
2019-07-31 01:03:17 -04:00
Nick Ethier 6537279686
agent: simplify if block 2019-07-31 01:03:17 -04:00
Nick Ethier a03f6a95a2
structs: refactor network validation to seperate fn 2019-07-31 01:03:16 -04:00
Danielle 1e7571eb85
fix structs comment
Co-Authored-By: nickethier <ncethier@gmail.com>
2019-07-31 01:03:16 -04:00
Nick Ethier aa7c08679e
structs: Add validations for task group networks 2019-07-31 01:03:16 -04:00
Nick Ethier 6c160df689
fix tests from introducing new struct fields 2019-07-31 01:03:16 -04:00
Nick Ethier 8650429e38
Add network stanza to group
Adds a network stanza and additional options to the task group level
in prep for allowing shared networking between tasks of an alloc.
2019-07-31 01:03:12 -04:00
Michael Schurter 5ccbd57583 changelog: add #5978 2019-07-30 15:56:50 -07:00
Michael Schurter d31488e262
Merge pull request #5978 from pete-woods/configurable-job-gc-interval
command/agent: allow the job GC interval to be configured
2019-07-30 15:54:29 -07:00
Buck Doyle 34603b8bdf
UI: Add IPv6 bracket-wrapping to network serializer (#6007)
This addresses the issue raised by @pznamensky in #5966.
2019-07-30 16:58:01 -05:00
Preetha Appan d858a04deb
Update to latest downloadable release 2019-07-30 16:47:40 -05:00
Preetha Appan d048029b5a
remove generated code and change version to 0.10.0 2019-07-30 15:56:05 -05:00
Preetha Appan 9f3e500391
Release v0.9.4 2019-07-30 15:51:17 -05:00
Preetha Appan c07ff8123a
Release date in changelog 2019-07-30 15:50:40 -05:00
Nomad Release bot e39fb11531 Generate files for 0.9.4 release 2019-07-30 19:05:18 +00:00
Preetha Appan fa93345c5d
Fix broken link 2019-07-30 13:37:44 -05:00
Preetha Appan 0ee67b632c
Add log level reloading to changelog 2019-07-30 11:55:57 -05:00
Michael Schurter 9a11edbfb5
Merge pull request #6026 from hashicorp/docs-job-name
docs: job names are unique by region/namespace
2019-07-30 08:13:04 -07:00
James Rasell d70d8c4256
Update example setup to use non-deprecated join 2019-07-30 14:54:52 +02:00
Gustav 78f4b11207
Fix typo in Spreads key in JSON Job Specification 2019-07-30 11:25:29 +02:00
Michael Schurter a9690053bc
Merge pull request #6028 from hashicorp/revert-6001-allow-unix-container-path-in-lcow
Revert "driver/docker: support unix destination mount path in windows"
2019-07-29 14:45:53 -07:00
Omar Khawaja f1a0086b53
fix typo for link to acl bootstrap reset process (#6032) 2019-07-29 17:11:14 -04:00
Michael Schurter efcfa09031
Merge pull request #6027 from hashicorp/docs-ref-arch
docs: mention acls & sentinel are multi-region
2019-07-29 13:47:06 -07:00
Omar Khawaja 0d52fd8893
Service and Batch Job Preemption Guide (#5853)
* fix navigation issue for spread guide

* skeleton for preemption guide

* background info, challenge, and pre-reqs

* steps

* rewording of intro

* re-wording

* adding more detail to intro

* clarify use of preemption in intro
2019-07-29 16:38:18 -04:00
Michael Schurter ea7fac7bcf
Revert "driver/docker: support unix destination mount path in windows" 2019-07-29 09:09:54 -07:00
Michael Schurter 5bd655e87d
Merge pull request #6001 from Iqoqo/allow-unix-container-path-in-lcow
driver/docker: support unix destination mount path in windows
2019-07-29 09:09:41 -07:00
Michael Schurter 163821c82e docs: mention acls & sentinel are multi-region
The reference architecture neglected to mention ACLs and Sentinel
policies are the exception to "no data is shared between regions."
2019-07-29 08:14:20 -07:00
Michael Schurter 9bce153a50 docs: job names are unique by region/namespace
"globally" is incorrect here unless you're running 1 region or at least
only 1 per planet.

Sorted link list at the bottom as well.
2019-07-29 08:00:28 -07:00
Buck Doyle 196bbcff3b Change UI changelog entries to be length-sorted
Thanks to @notnoop for letting me know about this:
https://github.com/hashicorp/nomad/pull/6007#discussion_r308052454
2019-07-29 09:58:03 -05:00
Michael Schurter 9ec48d27f8
Merge pull request #6010 from spuder/patch-1
Clarify encryption keys are shared across datacenters
2019-07-26 11:24:36 -07:00
Pete Woods 9096aa3d23
Add job status metrics
This avoids having to write services to repeatedly hit the jobs API
2019-07-26 10:12:49 +01:00
Pete Woods b47c5ca467
Allow the job GC interval to be configured from default of 5 minutes 2019-07-26 10:11:25 +01:00
Mahmood Ali cb49b0a066
Merge pull request #5993 from hashicorp/b-appveyor-go1.11
use go1.11 in windows CI
2019-07-26 13:45:00 +08:00
Mahmood Ali 9bad183d32 use go1.11 in windows CI 2019-07-26 13:19:28 +08:00