Michael Schurter
15952e5d17
Try to get test passing in Travis
2017-01-17 12:51:19 -08:00
Michael Schurter
4d081490e6
Add Cleanup method to Driver interface
...
Cleanup can be used for cleaning up resources created by drivers to run
a task. Initially the Docker driver is the only user (to remove
downloaded images).
2017-01-11 17:23:33 -08:00
Michael Schurter
3ea09ba16a
Move chroot building into TaskRunner
...
* Refactor AllocDir to have a TaskDir struct per task.
* Drivers expose filesystem isolation preference
* Fix lxc mounting of `secrets/`
2017-01-05 16:31:49 -08:00
Michael Schurter
770ed703d0
Add Driver.Prestart method
...
The Driver.Prestart method currently does very little but lays the
foundation for where lifecycle plugins can interleave execution _after_
task environment setup but _before_ the task starts.
Currently Prestart does two things:
* Any driver specific task environment building
* Download Docker images
This change also attaches a TaskEvent emitter to Drivers, so they can
emit events during task initialization.
2016-12-02 11:03:48 -08:00
Alex Dadgar
00a1234c55
Executor + Java/Raw Exec/Exec
2016-10-10 11:47:04 -07:00
Alex Dadgar
eef786dd9d
Secret dir materialized in alloc/task directory
2016-09-02 12:44:05 -07:00
Diptanu Choudhury
05fe72e89e
fixed the exec fingerprinter test
2016-08-23 16:40:56 -05:00
Diptanu Choudhury
dd7e69006e
Not running tests parallal
2016-08-11 21:53:27 -07:00
Miquel Sabaté Solà
f76f5c960f
client/driver: added more tests
...
Signed-off-by: Miquel Sabaté Solà <msabate@suse.com>
2016-03-24 08:47:23 +01:00
Alex Dadgar
ab44bc78a2
Get tests to pass
2016-03-15 13:28:57 -07:00
Diptanu Choudhury
47da0b02b3
Writing logs to alloc dir
2016-02-24 20:06:43 -08:00
Alex Dadgar
da50c36564
driver.test: remove redundant tests
2016-02-23 14:41:52 -08:00
Diptanu Choudhury
49099f4c70
Fixed more tests
2016-02-10 13:54:54 -08:00
Diptanu Choudhury
477a159c9e
Removing the killing executor pid tests
2016-02-09 11:29:02 -08:00
Diptanu Choudhury
0120aceb49
Merge branch 'r-executor-plugin' of github.com:hashicorp/nomad into r-executor-plugin
2016-02-09 10:17:44 -08:00
Diptanu Choudhury
8fca3625e2
Killing the userpid if the plugin is killed while the client is running
2016-02-09 10:17:33 -08:00
Alex Dadgar
4fa7b35443
more time
2016-02-09 09:43:40 -08:00
Alex Dadgar
c8807e2927
Fix timeouts between signal and kill
2016-02-08 19:31:57 -08:00
Diptanu Choudhury
9a46dcb553
Fixed a test
2016-02-08 19:00:26 -08:00
Diptanu Choudhury
c9d2151f90
Changed a few comments
2016-02-05 18:07:06 -08:00
Diptanu Choudhury
2871dfce26
Using signals to test if proces is alive
2016-02-05 13:05:49 -08:00
Diptanu Choudhury
fa41d8a062
Added a test which shows userpid is killed when plugin can not be re-connected on calling Open
2016-02-05 11:37:13 -08:00
Diptanu Choudhury
ff714703e6
Fixing merge conflicts
2016-02-04 22:55:38 -08:00
Alex Dadgar
a4f7709f08
Fix tests
2016-02-04 17:27:58 -08:00
Diptanu Choudhury
83882eca3f
Fixed the kill test
2016-02-04 17:00:40 -08:00
Diptanu Choudhury
e5595fd8cb
Fixed a test
2016-02-04 17:00:39 -08:00
Alex Dadgar
77b89d15e4
Extract artifacts to the root of the task, not in the local directory
2016-02-04 15:18:22 -08:00
Ivo Verberk
22fef1766b
Add comments and small improvements to cgroup fingerprinter
2016-01-29 14:34:29 +01:00
Ivo Verberk
7f97dd8553
Only enable exec driver when cgroups are available
...
Make the exec driver fingerprinter periodic to disable the driver when
cgroups become unavailable.
2016-01-27 07:32:32 +01:00
Alex Dadgar
a3c22258cd
Use TestMultiplier on all waits
2016-01-21 15:24:24 -08:00
Alex Dadgar
fd21e890db
Time Duration fixes
2016-01-21 12:29:13 -08:00
Alex Dadgar
1ceb6f012a
Fix a bunch of tests
...
Up timeouts
trusty travis beta
Increase timeouts
2016-01-20 16:03:53 -08:00
Alex Dadgar
6d157a0337
Fix tests
2016-01-11 09:58:31 -08:00
Chris Hines
37745f66c9
Speed up tests by allowing parallel execution.
2015-11-25 15:56:55 -05:00
Alex Dadgar
4d817f5cbc
Revert "Revert "Make drivers take arguments as a list and not as a string""
2015-11-18 15:16:42 -08:00
Alex Dadgar
0e51375285
Revert "Make drivers take arguments as a list and not as a string"
2015-11-18 13:46:43 -08:00
Alex Dadgar
5a678548fa
Rebase
2015-11-18 12:30:35 -08:00
Alex Dadgar
54ddf4d3c1
Rebase
2015-11-18 12:29:04 -08:00
Chris Bednarski
9f40143684
Merge branch 'master' into f-port-labels
2015-11-16 16:02:38 -08:00
Alex Dadgar
82f51601db
Track Task State in the client and capture Wait results
2015-11-16 15:14:21 -08:00
Diptanu Choudhury
0673b832fb
Fixed compilation issues with driver tests
2015-11-16 13:10:57 -08:00
Alex Dadgar
787164044d
Enable Open tests for Exec/Java
2015-11-10 16:59:52 -08:00
Clint Shryock
fb8066d8f3
add checksums to tests, formatting after rebase
2015-11-05 09:23:45 -06:00
Alex Dadgar
5562fc7672
Create Spawn pkg that handles IPC with the spawn-daemon and update exec_linux to use that
2015-11-02 20:28:37 -08:00
Alex Dadgar
2781cbbde1
Exec driver only applies on linux as root
2015-10-28 17:22:04 -07:00
Clint Shryock
343daeb1ea
drivers: Add/Use go-getter to fetch remote binaries
...
Updates Qemu, Java drivers to use go-getter to fetch binaries
Adds remote artifact support for Exec, Raw Exec drivers
2015-10-26 09:40:06 -05:00
Alex Dadgar
2f6a279d09
Docker alloc dir tests and test fixes
2015-10-15 16:59:08 -07:00
Alex Dadgar
dbbaf03b98
Privileged exec driver
2015-10-08 12:19:39 -07:00
Alex Dadgar
a4a440da8e
ParseAndReplace args at the executor level
2015-09-27 17:37:24 -07:00
Alex Dadgar
70a1a37f84
Small test cleanup
2015-09-25 17:55:29 -07:00