Commit Graph

1296 Commits

Author SHA1 Message Date
Michael Schurter
96f56cebf8 Merge pull request #3562 from hashicorp/b-3561-rkt-rm
Remove rkt pods when exiting
2017-11-16 17:30:21 -08:00
Michael Schurter
9929ac2382 Improve rktRemove error message 2017-11-16 15:45:14 -08:00
Michael Schurter
ce3fbb62b7 Remove rkt pods when exiting
Fixes #3561
2017-11-16 14:33:44 -08:00
Michael Schurter
b37a03a458 Add a test demonstrating the bug
Fails on Docker 17.09, passes on Docker 17.06 and earlier
2017-11-14 15:25:52 -08:00
Preetha Appan
8e70fd812a Make device mounting unit test verify configuration via docker inspect 2017-11-13 09:56:54 -06:00
Preetha Appan
b2eeab1b8c Unit test (linux only) that tests mounting a device in the docker driver 2017-11-13 09:56:54 -06:00
Preetha Appan
929a781ae4 Add default value for cgroup permissions for device if not set 2017-11-13 09:56:54 -06:00
Preetha Appan
b0c03e45ff Remove unnecessary check since validate method already checks this 2017-11-13 09:56:54 -06:00
Preetha Appan
85c5218b78 Add support for passing device into docker driver 2017-11-13 09:56:54 -06:00
Alex Dadgar
80b434d467 Merge pull request #3411 from cheeseprocedure/f-qemu-graceful-shutdown
Qemu driver: graceful shutdown feature
2017-11-03 16:41:34 -07:00
Matt Mercer
f734d842f5 Qemu driver: clean up logging; fail unsupported features on Windows 2017-11-03 15:40:20 -07:00
Alex Dadgar
a94bab6491 fix spelling mistake 2017-11-03 15:04:59 -07:00
Matt Mercer
66f9840dd0 Qemu driver: tweaks in response to PR feedback
Remove attribute for long qemu monitor path; misc cleanup; update tests
2017-11-03 11:28:56 -07:00
Matt Mercer
185658507f Qemu driver: defer cleanup sooner 2017-11-01 17:37:43 -07:00
Matt Mercer
15d7565931 Qemu driver: clean up test logging; retry integration test for longer 2017-11-01 17:21:56 -07:00
Matt Mercer
60030d89d1 Use strings.Replace() instead of custom function 2017-11-01 15:31:35 -07:00
Matt Mercer
2924bada55 Qemu driver: basic testing of graceful shutdown feature 2017-11-01 15:31:30 -07:00
Matt Mercer
1ff97035f0 Qemu driver: include PIDs in log output 2017-11-01 15:31:24 -07:00
Matt Mercer
200a12cbcc Qemu driver: ensure proper cleanup of resources 2017-11-01 15:31:20 -07:00
Matt Mercer
22f390d75a Qemu driver: minor logging fixes 2017-11-01 15:31:14 -07:00
Matt Mercer
3f6fdfcb9b Standardize driver.qemu logging prefix 2017-11-01 15:30:44 -07:00
Matt Mercer
00e3cc869d Qemu driver: add graceful shutdown feature 2017-11-01 15:30:36 -07:00
Jonathan Ballet
15114e448e docker: changed OOM killed error message 2017-10-27 20:30:52 +02:00
Jonathan Ballet
e5a790753d docker: log that a container has been killed by the OOM killer
Fix: #2203 (at least for Docker tasks)
2017-10-27 18:05:27 +02:00
Alex Dadgar
f5549a6eb9 go style vars 2017-10-25 10:49:34 -07:00
Alex Dadgar
366e91276f fix two flaky tests 2017-10-23 18:15:52 -07:00
Alex Dadgar
8accabcd87 move to consul freeport implementation 2017-10-23 16:51:40 -07:00
Alex Dadgar
e1b1465081 Standardize retrieving a free port into a helper package 2017-10-23 16:48:20 -07:00
Alex Dadgar
3be474b811 don't double parallel 2017-10-23 16:48:06 -07:00
Alex Dadgar
41773c3fdf respond to comments 2017-10-23 15:50:27 -07:00
Alex Dadgar
5b4e31bb5b Skip if no docker 2017-10-19 16:55:10 -07:00
Alex Dadgar
8de487c241 fix flaky java tests 2017-10-19 16:49:57 -07:00
Alex Dadgar
e175c56082 Undo darwin user setting 2017-10-19 16:49:57 -07:00
Alex Dadgar
651159077b Run as user on mac 2017-10-19 16:49:57 -07:00
Alex Dadgar
838e7cbac9 sudo docker works 2017-10-19 16:49:57 -07:00
Alex Dadgar
039c1f84c6 docker tests 2017-10-19 16:49:57 -07:00
Michael Schurter
4a6255b6c6 Add logging around moby/moby#32648 bug 2017-10-18 10:44:03 -07:00
Michael Schurter
87b86230c4 Properly fail rkt fingerprinting on old vesions 2017-10-16 13:58:58 -07:00
Michael Schurter
dbc3a3baaa Squelch repeated rkt version warnings 2017-10-16 12:09:47 -07:00
Alex Dadgar
1f3920ffdf rkt remove allocid 2017-10-13 10:07:50 -07:00
Adam Stankiewicz
79eccb2b1e Remove AllocID from ExecutorContext 2017-10-13 17:07:49 +02:00
Alex Dadgar
2c4c6b6ff6 Nomad UI Command 2017-10-09 23:01:55 -07:00
Michael Schurter
9b456787d0 Merge pull request #3288 from simar7/qemu-improvements
qemu: Add bound checks for memory assignment
2017-10-02 14:47:05 -07:00
Simarpreet Singh
d45670863c qemu: Fix lower memory bound to 128M
Signed-off-by: Simarpreet Singh <simar@linux.com>
2017-10-02 14:29:44 -07:00
Simarpreet Singh
82b8766da8 gofmt: format qemu.go and qemu_test.go
Signed-off-by: Simarpreet Singh <simar@linux.com>
2017-10-02 13:16:48 -07:00
Michael Schurter
04b8f8e7fc Remove structs import from api
Goes a step further and removes structs import from api's tests as well
by moving GenerateUUID to its own package.
2017-09-29 10:36:08 -07:00
Michael Schurter
900e708577 Properly autodetect Docker IP in Windows
Our Docker network plugin autodetection code was erroneously treating
Window's default network `nat` as a plugin and defaulting to it instead
of the host.

Fixes #3218
2017-09-27 16:49:23 -07:00
Michael Schurter
08f8411163 Only build rkt driver on linux
Build stub for non-linux targets
2017-09-27 14:21:45 -07:00
Simarpreet Singh
0fa2f3cbde qemu: Add bound checks for memory assignment
Signed-off-by: Simarpreet Singh <simar@linux.com>
2017-09-26 21:07:48 -07:00
Michael Schurter
eeeb544a2d Merge pull request #3256 from dalegaard/master
Enable rkt driver to use address_mode = 'driver'
2017-09-26 18:04:37 -05:00