Michael Schurter
c12bdcdf0b
Merge pull request #5297 from hashicorp/b-docker-logging
...
Docker: Fix logging config parsing
2019-02-11 06:57:52 -08:00
Gertjan Roggemans
f6ce196bcc
docker: Fix volume driver_config options spec ( #5309 )
...
Fixes #5308
2019-02-11 09:18:44 -05:00
Michael Schurter
5a8d955236
docker: fix logging config parsing
...
Fixes
https://groups.google.com/d/topic/nomad-tool/B3Uo6Kns2BI/discussion
2019-02-04 11:07:57 -08:00
Nick Ethier
aa713a4d9f
client: fix bug during 0.8 state up grade that causes external drivers to fail
2019-01-30 14:22:29 -05:00
Alex Dadgar
ecec3d38de
Nomad 0.9.0-beta1 generated code
2019-01-30 10:49:44 -08:00
Nick Ethier
8aa451806b
executor: fix bug and add tests for incorrect stats timestamp reporting
2019-01-28 21:57:45 -05:00
Nick Ethier
14c5a1c1f1
Merge pull request #5248 from hashicorp/b-rawexec-leak
...
Fix leaked executor in raw_exec
2019-01-28 21:18:31 -05:00
Alex Dadgar
4acaf27ef5
Don't fall through
2019-01-28 09:53:19 -08:00
Alex Dadgar
ec5712345f
comment
2019-01-28 09:47:53 -08:00
Nick Ethier
73d5f45dd3
raw_exec: ensure executor is killed after task is stopped
2019-01-25 23:06:31 -05:00
Alex Dadgar
65aa214687
Fix killing non-existant container with a kill timeout
2019-01-25 16:21:51 -08:00
Nick Ethier
c023617436
Merge pull request #5237 from hashicorp/b-docker-09upgrade-shutdown
...
drivers/docker: handle shutdown of upgraded tasks correctly
2019-01-25 12:13:03 -05:00
Nick Ethier
ff767d64a6
docker: only log missing bridge_ip on initial fingerprint
2019-01-24 22:34:57 -05:00
Nick Ethier
5304c6125a
drivers/docker: handle shutdown of upgraded tasks correctly
2019-01-24 14:21:59 -05:00
Nick Ethier
4d29d5dd66
Merge pull request #5209 from hashicorp/f-driver-upgradepath-test
...
e2e tests for upgrade path to driver plugins
2019-01-23 21:03:29 -05:00
Nick Ethier
bed9efae44
Merge branch 'master' into f-driver-upgradepath-test
...
* master: (23 commits)
tests: avoid assertion in goroutine
spell check
ci: run checkscripts
tests: deflake TestRktDriver_StartWaitRecoverWaitStop
drivers/rkt: Remove unused github.com/rkt/rkt
drivers/rkt: allow development on non-linux
cli: Hide `nomad docker_logger` from help output
api: test api and structs are in sync
goimports until make check is happy
nil check node resources to prevent panic
tr: use context in as select statement
move pluginutils -> helper/pluginutils
vet
goimports
gofmt
Split hclspec
move hclutils
Driver tests do not use hcl2/hcl, hclspec, or hclutils
move reattach config
loader and singleton
...
2019-01-23 21:01:24 -05:00
Nick Ethier
a9060f44eb
drivers: add docker upgrade path and e2e test
2019-01-23 14:44:42 -05:00
Alex Dadgar
f3a2d26d40
fix docker runtime attribute
2019-01-23 10:58:46 -08:00
Mahmood Ali
4781f1dd7b
Merge pull request #5229 from hashicorp/r-grabbag-201901019
...
Grab bag of small changes
2019-01-23 13:06:51 -05:00
Mahmood Ali
4817a89bd3
tests: avoid assertion in goroutine
2019-01-23 12:34:16 -05:00
Mahmood Ali
9c94953c08
tests: deflake TestRktDriver_StartWaitRecoverWaitStop
2019-01-23 10:54:49 -05:00
Mahmood Ali
597fb32dde
drivers/rkt: allow development on non-linux
...
Avoid depending on OS-specific library for some simple structs.
2019-01-23 10:53:49 -05:00
Michael Schurter
158c74887e
goimports until make check is happy
2019-01-23 06:27:14 -08:00
Michael Schurter
0d61ff0fb9
move pluginutils -> helper/pluginutils
...
I wanted a different color bikeshed, so I get to paint it
2019-01-22 15:50:08 -08:00
Alex Dadgar
95297c608c
goimports
2019-01-22 15:44:31 -08:00
Alex Dadgar
fe2fa21a7d
gofmt
2019-01-22 15:43:34 -08:00
Alex Dadgar
e46d67a889
Driver tests do not use hcl2/hcl, hclspec, or hclutils
2019-01-22 15:43:34 -08:00
Alex Dadgar
2d23f4a038
move reattach config
2019-01-22 15:11:58 -08:00
Alex Dadgar
c19cd2e5cf
loader and singleton
2019-01-22 15:11:57 -08:00
Michael Schurter
418d360d19
test: port SignalFailure test from 0.8
...
Also fix signal error handling in mock_driver.
2019-01-22 08:08:08 -08:00
Nick Ethier
82d16f8f6c
drivers: fix func naming
2019-01-18 18:31:02 -05:00
Nick Ethier
994c66f7d7
drivers: use consts for task handle version
2019-01-18 18:31:01 -05:00
Nick Ethier
1d50ced70a
drivers: add upgrade path for rawexec, java, rkt and qemu
2019-01-18 18:31:01 -05:00
Nick Ethier
2f91ac88f7
cleanup code comments and small fixes from refactor
2019-01-18 18:31:01 -05:00
Nick Ethier
07cdedec2f
driver: add pre09 migration logic
2019-01-18 18:31:01 -05:00
Nick Ethier
2118d94b2d
executor: add pre 0.9 client and wrapper
2019-01-18 18:30:58 -05:00
Mahmood Ali
9f7619344e
Merge pull request #5190 from hashicorp/f-memory-usage
...
Track Basic Memory Usage as reported by cgroups
2019-01-18 16:46:02 -05:00
Danielle Tomlinson
5637d81642
docker: Fix missing import
2019-01-17 18:44:27 +01:00
Danielle Tomlinson
3287c3f019
chore: General Cleanup
2019-01-17 18:43:14 +01:00
Danielle Tomlinson
8966c20155
docker: Only run Cleanup test on unix os'
2019-01-17 18:43:14 +01:00
Danielle Tomlinson
2b3f5f2cb7
chore: goimports exec driver
2019-01-17 18:43:14 +01:00
Danielle Tomlinson
070558e18d
fixup: Typo in docker test
2019-01-17 18:43:14 +01:00
Danielle Tomlinson
0bc1dbef56
chore: Fix docklog linting
2019-01-17 18:43:14 +01:00
Danielle Tomlinson
3f3eb68a27
chore: Fix docker test linting
...
Due to https://github.com/tsenart/deadcode/issues/3 we can't specify
these consts on their own. This moves them into the _platform_test.go
files to avoid creating a package that only exposes a couple of values.
2019-01-17 18:43:14 +01:00
Danielle Tomlinson
8731fe3730
drivers/exec: SIGINT unavailable on windows
2019-01-17 18:43:14 +01:00
Danielle Tomlinson
0ecef70715
rawexec: Fix Exec test on windows
2019-01-17 18:43:14 +01:00
Danielle Tomlinson
ffcd76f03f
rawexec: SIGINT is not available on Windows
2019-01-17 18:43:14 +01:00
Danielle Tomlinson
1e0825388e
docker: Test cleanup for windows
...
* Docker for Windows does not support ulimits
* Use filepath.ToSlash to test workdir
* Convert expected mount paths to system style
* Skip security-opt test on windows
- Windows does not support seccomp, and it's unclear which options are
available.
* Skip StartN due to lack of sigint
* docker: Use api to get image info on windows
* No bridge on windows
* Stop hardcoding /bin/
2019-01-17 18:43:14 +01:00
Danielle Tomlinson
76ee0240ab
docker: ExpandPath tests validate slashpath
2019-01-17 18:43:13 +01:00
Danielle Tomlinson
a587be44a7
dockerlogger: Fix tests on windows
...
Uses the home directory and windows path expansion, as c:\tmp doesn't
necessarily exist, and mktemp would involve unnecessarily complicating
the commands.
2019-01-17 18:43:13 +01:00