Commit Graph

16116 Commits

Author SHA1 Message Date
Michael Schurter
60dc86ac4f Merge pull request #6254 from hashicorp/test-connect-e2e-demo
e2e: test demo job for connect
2019-09-04 14:33:26 -07:00
Omar Khawaja
b879c41f8a remove reference to consul 1.6-beta and update nomad agent command 2019-09-04 17:30:45 -04:00
Omar Khawaja
9df2085474 formatting paragraphs 2019-09-04 17:25:06 -04:00
Nick Ethier
fbe633b9ff ar: refactor network bridge config to use go-cni lib (#6255)
* ar: refactor network bridge config to use go-cni lib

* ar: use eth as the iface prefix for bridged network namespaces

* vendor: update containerd/go-cni package

* ar: update network hook to use TODO contexts when calling configurator

* unnecessary conversion
2019-09-04 16:33:25 -04:00
Michael Schurter
aa60b03d7b client: reword error message 2019-09-04 12:40:09 -07:00
Michael Schurter
2011b46a19 e2e: test demo job for connect 2019-09-04 12:40:08 -07:00
Mahmood Ali
0d9fca8d28 Merge pull request #6251 from hashicorp/b-port-map-regression
NOMAD_PORT_<label> regression
2019-09-04 11:54:09 -04:00
Danielle Lancashire
881d4d2772 volume docs: cleanup 2019-09-04 17:42:19 +02:00
Danielle
e3ce4c7666 Merge pull request #6239 from hashicorp/b-32bitmem
Fix memory fingerprinting on 32bit
2019-09-04 17:39:07 +02:00
Danielle
b56b9c60a2 fingerprint: Add backwards compatibility comment
Co-Authored-By: Michael Schurter <mschurter@hashicorp.com>
2019-09-04 17:38:35 +02:00
Mahmood Ali
bd6bbc9ca8 fix qemu and update docker with tests 2019-09-04 11:27:51 -04:00
Jasmine Dahilig
6190443d79 fix portmap envvars in docker driver 2019-09-04 11:26:13 -04:00
Danielle Lancashire
e9a8e9ea0a fingerprint: Restore support for legacy memory fingerprint 2019-09-04 17:10:28 +02:00
Buck Doyle
dfb88cc787 UI: add Consul Connect features (#6108) 2019-09-04 09:39:56 -05:00
Mahmood Ali
e66239d353 Merge pull request #6250 from hashicorp/f-raft-protocol-v3
Update default raft protocol to version 3
2019-09-04 09:34:41 -04:00
Mahmood Ali
a5d9c697f9 tests: give up on TestAutopilot_CleanupStaleRaftServer for now 2019-09-04 09:10:53 -04:00
Nick Ethier
2dc0bd5645 structs: canonicalize tg Services and Networks (#6257) 2019-09-04 08:55:47 -04:00
Mahmood Ali
b748d4d714 tests: attempt to fix TestAutopilot_CleanupStaleRaftServer
Also add a utility function for waiting for stable leadership
2019-09-04 08:49:33 -04:00
Mahmood Ali
e2e931ae30 tests: update time sensitive tests
Fix tests whose messages seem timing dependent.
2019-09-04 08:45:25 -04:00
Mahmood Ali
96953f083d tests: disable server auto join by default
Tests typically call join cluster directly rather than rely on consul
discovery.  Worse, consul discovery seems to cause additional leadership
transitions when a server is shutdown in tests than tests expect.
2019-09-04 07:54:54 -04:00
Mahmood Ali
4c8441c47e address review feedback 2019-09-03 21:44:39 -04:00
Mahmood Ali
0dec897cd9 use current nomad version in testing 2019-09-03 21:42:41 -04:00
Mahmood Ali
eb53b9fc16 Merge pull request #6253 from hashicorp/docs-task-driver-security
docs: task driver resource isolation & security
2019-09-03 20:39:21 -04:00
Mahmood Ali
9e4c6aa924 keep security-related together 2019-09-03 20:38:32 -04:00
Jamie Finnigan
826cb27c98 docs: task driver resource isolation & security 2019-09-03 15:19:46 -07:00
Tim Gross
40368d2c63 support script checks for task group services (#6197)
In Nomad prior to Consul Connect, all Consul checks work the same
except for Script checks. Because the Task being checked is running in
its own container namespaces, the check is executed by Nomad in the
Task's context. If the Script check passes, Nomad uses the TTL check
feature of Consul to update the check status. This means in order to
run a Script check, we need to know what Task to execute it in.

To support Consul Connect, we need Group Services, and these need to
be registered in Consul along with their checks. We could push the
Service down into the Task, but this doesn't work if someone wants to
associate a service with a task's ports, but do script checks in
another task in the allocation.

Because Nomad is handling the Script check and not Consul anyways,
this moves the script check handling into the task runner so that the
task runner can own the script check's configuration and
lifecycle. This will allow us to pass the group service check
configuration down into a task without associating the service itself
with the task.

When tasks are checked for script checks, we walk back through their
task group to see if there are script checks associated with the
task. If so, we'll spin off script check tasklets for them. The
group-level service and any restart behaviors it needs are entirely
encapsulated within the group service hook.
2019-09-03 15:09:04 -04:00
Mahmood Ali
8d75e25b53 Fix raft tests
Wait until leadership stabalizes and all non-voters get promoted before
killing leader
2019-09-03 14:53:29 -04:00
Michael Schurter
f02c163532 Merge pull request #6000 from Iqoqo/docker-convert-host-paths-to-host-native
driver/docker: convert host bind path to os native
2019-09-03 09:34:56 -07:00
Pete Woods
da93f826a5 Add node "status" and "scheduling eligibility" tags to client metrics (#6130)
When summing up the capability of your Nomad fleet for scaling purposes, it's important to exclude draining nodes, as they won't accept new jobs.
2019-09-03 12:11:11 -04:00
Michael Schurter
477cf83516 connect: add unix socket to proxy grpc for envoy (#6232)
* connect: add unix socket to proxy grpc for envoy

Fixes #6124

Implement a L4 proxy from a unix socket inside a network namespace to
Consul's gRPC endpoint on the host. This allows Envoy to connect to
Consul's xDS configuration API.

* connect: pointer receiver on structs with mutexes

* connect: warn on all proxy errors
2019-09-03 08:43:38 -07:00
Mahmood Ali
515935dedb ignore nested pkgs in GOTEST_PKGS_EXCLUDE
This fixes a bug where some packages tests run twice in CI, because they
are subpackages of ones with dedicated jobs.  For example, notice
`client/allocrunner` tests ran in `test-client`[1] and `test-other`[2] despite
them being in the same workflow[3].

[1] https://circleci.com/gh/hashicorp/nomad/5262
[2] https://circleci.com/gh/hashicorp/nomad/5261
[3] https://circleci.com/workflow-run/ee7a9167-8fc7-49a5-897c-6c967e966014
2019-09-03 11:04:27 -04:00
Mahmood Ali
482862e6ab lint: ignore generated windows syscall wrappers 2019-09-03 10:59:58 -04:00
Mahmood Ali
80dc58c544 lint: ignore protobuf generated code 2019-09-03 10:59:11 -04:00
Danielle
f744cb9819 Merge pull request #6246 from hashicorp/dani/fix-docker-driver
docker: Fix driver spec
2019-09-03 14:19:12 +02:00
Danielle Lancashire
86838dbc02 docker: Fix driver spec
hclspec.NewLiteral does not quote its values, which caused `3m` to be
parsed as a nonsensical literal which broke the plugin loader during
initialization. By quoting the value here, it starts correctly.
2019-09-03 08:53:37 +02:00
Jasmine Dahilig
c346a47b5b add default update stanza and max_parallel=0 disables deployments (#6191) 2019-09-02 10:30:09 -07:00
Danielle
9a44545dbe Merge pull request #6078 from zhiguangwang/fix-docker-image-delay-default-value
Add default value "3m" to image_delay, making it consistent with docs.
2019-09-02 15:39:51 +02:00
Danielle
798b605b47 Merge pull request #6240 from EvanErcolano/remove-unused-param-consul-client
Remove unused canary param from MakeTaskServiceID
2019-09-02 12:38:08 +02:00
Zhiguang Wang
e7eede5f74 Add default value "3m" to image_delay, making it consistent with docs. 2019-09-02 16:40:00 +08:00
Danielle
6ac3a4a1fd Merge pull request #6210 from hashicorp/f-update-node-response
docs: Update /v1/node/{node-id} example response
2019-09-01 19:17:30 +02:00
Danielle
dade48b783 Merge pull request #6119 from rlewkowicz/master
bumped hadoop version
2019-09-01 08:41:51 +02:00
Danielle
fb3abb288b Merge pull request #6208 from pcgeek86/patch-1
Update AWS logo to current version
2019-09-01 08:41:23 +02:00
Evan Ercolano
859861817d Remove unused canary param from MakeTaskServiceID 2019-08-31 16:53:23 -04:00
Danielle Lancashire
370d14798d ci: Support non amd64 architectures 2019-08-31 18:34:22 +02:00
Danielle Lancashire
c20e604d2d client: Fix memory fingerprinting on 32bit
Also introduce regression ci for 32 bit fingerprinting
2019-08-31 18:33:59 +02:00
Danielle
b0986240ed Merge pull request #6238 from hashicorp/e2e-ami-filters
e2e: filter default AMI by OS
2019-08-31 13:34:36 +02:00
Danielle
c6467cc138 Merge pull request #6233 from hashicorp/chore/more-circle
ci: Migrate remaining jobs to CircleCI
2019-08-31 13:28:51 +02:00
Preetha
3e1ffe9059 Merge pull request #6237 from hashicorp/f-rkt-deprecated
rkt deprecation notice
2019-08-30 16:45:40 -05:00
Tim Gross
e19520cf13 e2e: filter default AMI by OS
Add an OS tag to Packer builds of our e2e test AMIs and then filters
by this in Terraform.
2019-08-30 16:51:13 -04:00
Preetha Appan
9d094668e8 fix casing 2019-08-30 15:31:28 -05:00