Nick Ethier
bb9a8afe9b
executor: fix bug and add tests for incorrect stats timestamp reporting
2019-01-28 21:57:45 -05:00
Nick Ethier
bcbed3c532
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
991bcc3ef1
Don't fall through
2019-01-28 09:53:19 -08:00
Alex Dadgar
403faa0d7c
comment
2019-01-28 09:47:53 -08:00
Nick Ethier
1f4c26e19e
raw_exec: ensure executor is killed after task is stopped
2019-01-25 23:06:31 -05:00
Alex Dadgar
68ced492fb
Fix killing non-existant container with a kill timeout
2019-01-25 16:21:51 -08:00
Nick Ethier
448f93f1e9
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
ac693fe6ac
docker: only log missing bridge_ip on initial fingerprint
2019-01-24 22:34:57 -05:00
Nick Ethier
c7cc81924d
drivers/docker: handle shutdown of upgraded tasks correctly
2019-01-24 14:21:59 -05:00
Nick Ethier
a5823a270c
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
be976d9c9a
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
5b9013528e
drivers: add docker upgrade path and e2e test
2019-01-23 14:44:42 -05:00
Alex Dadgar
48dfbbcad9
fix docker runtime attribute
2019-01-23 10:58:46 -08:00
Mahmood Ali
698f0a1575
Merge pull request #5229 from hashicorp/r-grabbag-201901019
...
Grab bag of small changes
2019-01-23 13:06:51 -05:00
Mahmood Ali
8d76bb0e82
tests: avoid assertion in goroutine
2019-01-23 12:34:16 -05:00
Mahmood Ali
464a70fda6
tests: deflake TestRktDriver_StartWaitRecoverWaitStop
2019-01-23 10:54:49 -05:00
Mahmood Ali
a64ad99b94
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
32daa7b47b
goimports until make check is happy
2019-01-23 06:27:14 -08:00
Michael Schurter
be0bab7c3f
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
4bdccab550
goimports
2019-01-22 15:44:31 -08:00
Alex Dadgar
b7a65676fe
gofmt
2019-01-22 15:43:34 -08:00
Alex Dadgar
72a5691897
Driver tests do not use hcl2/hcl, hclspec, or hclutils
2019-01-22 15:43:34 -08:00
Alex Dadgar
b2c7268843
move reattach config
2019-01-22 15:11:58 -08:00
Alex Dadgar
cdcd3c929c
loader and singleton
2019-01-22 15:11:57 -08:00
Michael Schurter
9edff19625
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
b840a2eb7b
drivers: fix func naming
2019-01-18 18:31:02 -05:00
Nick Ethier
e3c6f89b9a
drivers: use consts for task handle version
2019-01-18 18:31:01 -05:00
Nick Ethier
9dd4eb3581
drivers: add upgrade path for rawexec, java, rkt and qemu
2019-01-18 18:31:01 -05:00
Nick Ethier
6804450c69
cleanup code comments and small fixes from refactor
2019-01-18 18:31:01 -05:00
Nick Ethier
05bd369d1f
driver: add pre09 migration logic
2019-01-18 18:31:01 -05:00
Nick Ethier
e5a6fc9271
executor: add pre 0.9 client and wrapper
2019-01-18 18:30:58 -05:00
Mahmood Ali
5df63fda7c
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
b65bf78513
docker: Fix missing import
2019-01-17 18:44:27 +01:00
Danielle Tomlinson
7fca934509
chore: General Cleanup
2019-01-17 18:43:14 +01:00
Danielle Tomlinson
e73962d8d6
docker: Only run Cleanup test on unix os'
2019-01-17 18:43:14 +01:00
Danielle Tomlinson
af202f347f
chore: goimports exec driver
2019-01-17 18:43:14 +01:00
Danielle Tomlinson
30a5e25d94
fixup: Typo in docker test
2019-01-17 18:43:14 +01:00
Danielle Tomlinson
82018cd030
chore: Fix docklog linting
2019-01-17 18:43:14 +01:00
Danielle Tomlinson
3b2ff2005b
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
15b1571882
drivers/exec: SIGINT unavailable on windows
2019-01-17 18:43:14 +01:00
Danielle Tomlinson
d78120f890
rawexec: Fix Exec test on windows
2019-01-17 18:43:14 +01:00
Danielle Tomlinson
65457dd2f2
rawexec: SIGINT is not available on Windows
2019-01-17 18:43:14 +01:00
Danielle Tomlinson
de86435cf8
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
3d2f0bb7da
docker: ExpandPath tests validate slashpath
2019-01-17 18:43:13 +01:00
Danielle Tomlinson
37190a5595
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
Danielle Tomlinson
e6c0738b65
Expand unix build definition
2019-01-17 18:43:13 +01:00
Mahmood Ali
677e11da86
fix imports
2019-01-16 19:53:48 -05:00
Michael Schurter
bea4d297b9
Merge pull request #5197 from hashicorp/b-rkt-cpu
...
rkt: revert to pre-0.9 --cpu flag
2019-01-16 15:05:21 -08:00
Preetha Appan
55319b05d1
clean up read access
2019-01-16 11:04:11 -06:00
Preetha Appan
469a286b1b
Refactor logging in drivers to use a tri-state boolean
...
Changes logging warnings/errors only if the state changes
from healthy to unhealthy
2019-01-16 10:19:31 -06:00