Mahmood Ali
8104e2c141
driver/docker: Skip failing Windows tests
...
Skip currently Docker tests that fail on Windows for further
investigation.
2019-02-20 07:48:02 -05:00
Danielle Tomlinson
0df5cb6b40
Merge pull request #5326 from hashicorp/dani/json-submission
...
api: Fix compatibility with pre 0.9 API jobs
2019-02-14 18:56:13 +01:00
Mahmood Ali
7f56423c66
Update drivers/docker/config_test.go
...
Co-Authored-By: dantoml <dani@tomlinson.io >
2019-02-14 18:55:10 +01:00
Danielle Tomlinson
79d5a246f8
Add regression test for parsing null mounts
2019-02-14 18:03:35 +01:00
Danielle Tomlinson
e2244cd0d4
drivers/docker: SIGTERM to stop containers
...
Windows Docker daemon does not support SIGINT, SIGTERM is the semantic
equivalent that allows for graceful shutdown before being followed up by
a SIGKILL.
2019-02-14 15:38:54 +00:00
Mahmood Ali
941f89e0fe
tests: add hcl task driver config parsing tests ( #5314 )
...
* drivers: add config parsing tests
Add basic tests for parsing and encoding task config.
* drivers/docker: fix some config declarations
* refactor and document config parse helpers
2019-02-12 14:46:37 -05:00
Mahmood Ali
0fd2b45740
drivers/java: restore 0.8.7 java version detection ( #5317 )
...
Restore 0.8.x behavior where java driver is marked as detected when
`java -version` exits with 0 but returns unexpected output.
Furthermore, we restore behavior when `java -version` where we parse the
first three lines of `java -version` but ignore rest.
If `java -version` returns less than 3 lines, Nomad 0.8.7 would panic.
In this implementation, we'd still mark java as detected but returns
empty version.
The 0.8.7 logic for detecting java version is found in
https://github.com/hashicorp/nomad/blob/v0.8.7/client/driver/java.go#L132-L172
.
I punt on revamping how we can be more resilient to java -version
syntax, and aimed for preserving existing behavior instead.
2019-02-12 13:41:26 -05:00
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