Commit Graph

3145 Commits

Author SHA1 Message Date
Alex Dadgar
383251f53b Fix kill timeout exceeding 5m on Docker driver
Fixes an issue where the Docker API client would timeout before the kill
timeout was hit.
2018-08-17 16:01:09 -07:00
Alex Dadgar
33298ab14e Merge pull request #4535 from hashicorp/f-keep-docker-container-0.8.4
Option to prevent removal of container on exit
2018-07-26 11:11:22 -07:00
Charlie Voiselle
61bec1e212 Option to prevent removal of container on exit 2018-07-26 11:10:48 -07:00
Michael Schurter
b2d429400a Merge pull request #4462 from omame/omame/cpu_cfs_period
Add support for specifying cpu_cfs_period in the Docker driver
2018-07-25 09:34:38 -07:00
Daniele Valeriani
a4771a49ab Add test for cpu_cfs_period 2018-07-16 22:43:34 +02:00
Michael Schurter
6014a5089c rkt: revert to redis 3.2 to favor stability 2018-07-09 16:15:32 -07:00
Michael Schurter
734602e16a rkt: speed up tests
Disable networking when it's not needed and improve failure message for
UserGroup test by including the full ps output on failure.
2018-07-09 14:02:27 -07:00
Michael Schurter
0258c141bb rkt: skip retrieving network information when net=none
Even when net=none we would attempt to retrieve network information from
rkt which would spew useless log lines such as:

```
testlog.go:30: 20:37:31.409209 [DEBUG] driver.rkt: failed getting network info for pod UUID 8303cfe6-0c10-4288-84f5-cb79ad6dbf1c attempt 2: no networks found. Sleeping for 970ms
```

It would also delay tests for ~60s during the network information retry
period.

So skip this when net=none. It's unlikely anyone actually uses net=none
outside of tests, so I doubt anyone will notice this change.

Official docs:
https://coreos.com/rkt/docs/latest/networking/overview.html#no-loopback-only-networking
2018-07-09 13:44:43 -07:00
Michael Schurter
b0269d5183 tests: make alloc id consistent in helper
It worked, but the old code used a different alloc id for the path than
the actual alloc! Use the same alloc id everywhere to prevent confusing
test output.
2018-07-09 13:37:35 -07:00
Michael Schurter
2795883e23 rkt: fix failing TestRktDriver_UserGroup test
Started failing due to the docker redis image switching from Debian
jessie to stretch:
53f8680550 (diff-acff46b161a3b7d6ed01ba79a032acc9)

Switched from Debian based image to Alpine to get a working `ps` command
again (albeit busybox's stripped down implementation)
2018-07-09 12:19:02 -07:00
Daniele Valeriani
f47ac0d430 Validate the value of cpu_cfs_period 2018-07-02 22:30:22 +02:00
Daniele Valeriani
f94e1c3d2e Remove an unnecessary conversion 2018-07-02 17:47:23 +02:00
Daniele Valeriani
dd7699abdb Add support for specifying cpu_cfs_period in the Docker driver 2018-07-02 16:37:04 +02:00
Preetha
7325cf6410 Merge pull request #4392 from burdandrei/telemetry-parametrized-jobs
Parametrized/periodic jobs per child tagged metric emmision
2018-06-21 17:13:36 -05:00
Preetha
e2e60795c6 Merge pull request #3882 from burdandrei/telemetry-add-node-class-tag
Added node class to tagged metrics
2018-06-21 17:04:35 -05:00
Andrei Burd
4e352f3814 Parametrized/periodic jobs per child tagged metric emmision 2018-06-21 10:40:56 +03:00
James Rasell
46037d70ee Merge branch 'master' into f_gh_4381 2018-06-19 17:51:57 +02:00
Alex Dadgar
6091307b77 Merge pull request #4409 from hashicorp/r-client-packages
Refactor client packages
2018-06-13 17:32:25 -07:00
Alex Dadgar
ab661d2af5 lint 2018-06-13 16:06:39 -07:00
Alex Dadgar
c94464c133 Fix test using a lot of memory 2018-06-13 15:52:25 -07:00
Alex Dadgar
98c7abe541 Tests only use testlog package logger 2018-06-13 15:40:56 -07:00
Chelsea Komlo
1dce78888f Merge pull request #4399 from hashicorp/r-reload-refactor
Refactor logic for dynamic reloading
2018-06-13 13:35:12 -04:00
Alex Dadgar
3d3490fdf1 test fixes 2018-06-12 17:45:39 -07:00
Alex Dadgar
d94bf14e13 Fix gc tests + parallel destroy + small test fixes 2018-06-12 10:23:45 -07:00
Alex Dadgar
a62e412b88 Refactor - wip 2018-06-12 10:23:45 -07:00
Alex Dadgar
fff1625434 Fix vault template test 2018-06-12 09:57:28 -07:00
Alex Dadgar
bc48fc33b5 remove structs + bump version 2018-06-11 13:52:19 -07:00
Alex Dadgar
dbee1d7d05 bump version + generated files 2018-06-11 13:39:42 -07:00
Nick Ethier
d3e6c10727 Merge pull request #4403 from hashicorp/b-fix-dispatched-optional-meta
Fix dispatched optional meta correctly
2018-06-11 16:17:14 -04:00
Nick Ethier
f00875aecf nomad: use require pkg for tests 2018-06-11 13:50:50 -04:00
Nick Ethier
81abf0a7d2 client/driver/env: fix optional meta test 2018-06-11 12:29:13 -04:00
Nick Ethier
e325e85a19 client/driver/env: use 'job.Dispatch' to trigger optional meta logic 2018-06-11 12:15:19 -04:00
Nick Ethier
e8f9b40321 Revert "Revert "client/driver/env: interpolate empty optional meta params as empty strings""
This reverts commit c17e0fc9dc.
2018-06-11 11:59:23 -04:00
Michael Schurter
d0bec72dc2 executor: fix log line formatting 2018-06-08 14:55:39 -07:00
Michael Schurter
5b09d23813 executor: fix Windows blocking on pipe close
Sending the Ctrl-Break signal to PowerShell <6 causes it to drop into
debug mode. Closing its output pipe at that point will block
indefinitely and prevent the process from being killed by Nomad.

See the upstream powershell issue for details:
https://github.com/PowerShell/PowerShell/issues/4254
2018-06-08 14:48:05 -07:00
Chelsea Holland Komlo
45ff58e40e add client logic to determine whether TLS RPC connections should reload 2018-06-08 14:38:58 -04:00
James Rasell
40a66756cd Add 'nomad.advertise.address' to client meta via NomadFingerPrint
This change removes the addition of the advertise address to the
exported task env vars and instead moves this work into the
NomadFingerprint.Fingerprint which adds this value to the client
attrs. This can then be used within a Nomad job like
${attr.nomad.advertise.address}.
2018-06-08 09:44:10 +02:00
Alex Dadgar
c17e0fc9dc Revert "client/driver/env: interpolate empty optional meta params as empty strings"
This reverts commit 84926f759a.
2018-06-07 16:27:47 -07:00
Nick Ethier
0cefbd3869 client/driver: drop docker pull progress estimate if its < 0 2018-06-07 15:23:31 -04:00
James Rasell
e4d8e3d3ad Add the local clients advertise address to interpolation env vars
This commit adds the Nomad local client advertise address in the
form host:port to the environment variables passed to each task.
2018-06-07 09:45:15 +02:00
Alex Dadgar
b7a7cafec0 Merge pull request #4185 from jesusvazquez/add-counter-metric-for-oom-killer-events
Add driver.docker counter metric for OOM Killer events
2018-06-04 15:12:51 -07:00
Alex Dadgar
ab5ee4be9e remove generated structs 2018-06-01 16:11:28 -07:00
Alex Dadgar
034262d889 fix test message 2018-06-01 15:51:54 -07:00
Alex Dadgar
81e0142768 Disable Exec on non-linux platforms
This PR disables exec on non-linux platforms
2018-06-01 15:48:14 -07:00
Alex Dadgar
97ad9dfc92 bump version/lint/generated files 2018-06-01 15:23:10 -07:00
Preetha Appan
a7668cd4ec Fix tests and move isClient to constructor 2018-06-01 15:59:53 -05:00
Alex Dadgar
462ad9d27c Merge pull request #4350 from hashicorp/b-raw-exec-cgroups
Raw exec can use cgroups to manage PIDs
2018-06-01 17:37:49 +00:00
Alex Dadgar
657dd1e241 wait for result 2018-06-01 10:14:53 -07:00
Alex Dadgar
d83443932f Merge pull request #4277 from hashicorp/f-retry-join-clients
Add go-discover support to Nomad clients
2018-06-01 16:57:40 +00:00
Alex Dadgar
a4e11c8134 Comments 2018-05-31 18:05:03 -07:00