Alex Dadgar
4ba4987625
Drivers log during fingerprinting
...
This PR fixes a regression in which some drivers did not log during
fingerprinting.
2017-02-20 19:35:51 -08:00
Michael Schurter
269b3c7e14
Merge pull request #2186 from hashicorp/f-driver-cleanup
...
Add Cleanup method to Driver interface
2017-01-20 13:02:14 -08:00
Michael Schurter
db096b23b5
Switch to use recoverable errors from Cleanup
...
TaskRunner handles retrying but Cleanup handles all of CreatedResources.
2017-01-13 16:46:08 -08:00
Michael Schurter
1ec5c930a6
Return errors from cleanup and let TaskRunner retry
2017-01-12 17:21:54 -08:00
Diptanu Choudhury
a066d90313
Added executorconfig
2017-01-12 15:47:58 -08:00
Diptanu Choudhury
84137b02c5
Filter executor log messages
2017-01-12 11:54:19 -08:00
Michael Schurter
33c015bcc7
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
12915c30bf
Remove debug logging
2017-01-05 16:31:56 -08:00
Michael Schurter
86db19407e
Remove task name prefix from executor logs
2017-01-05 16:31:56 -08:00
Michael Schurter
de7351b959
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
904543ef1b
Remove unneeded env building
2016-12-20 16:14:42 -08:00
Michael Schurter
ee17940dfe
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
12c033ab81
Move the wait result to bottom of methods
2016-11-04 14:58:55 -07:00
Diptanu Choudhury
722433b4f9
Making the cli use TLS if the client has enabled TLS
2016-10-26 11:13:53 -07:00
Alex Dadgar
008d91aa56
Advertise signalling abilities
2016-10-19 15:06:23 -07:00
Alex Dadgar
917c7e5085
Merge pull request #1801 from hashicorp/f-signals
...
Consul-template signal change mode
2016-10-18 11:23:47 -07:00
Alex Dadgar
358c43333d
Send Executor Ctx separately
2016-10-12 11:35:29 -07:00
Alex Dadgar
0b65a5f95d
Executor + Java/Raw Exec/Exec
2016-10-10 11:47:04 -07:00
Alex Dadgar
1a3585b572
Docker + Qemu
2016-10-10 11:47:04 -07:00
Alex Dadgar
1a7df4e7d2
Allocation resources returned in a struct
2016-06-11 21:04:10 -07:00
Diptanu Choudhury
1cae57aee9
Add the Stats api to driverhandle
2016-05-28 19:42:34 -07:00
Ivo Verberk
c680e03e1c
Add missing comments on exported Validate function
2016-04-10 01:15:09 +02:00
Ivo Verberk
51755c513f
Implement configuration validation for all task drivers
2016-04-10 00:42:57 +02:00
Ivo Verberk
92bf6f1ad0
Add helper to validate raw configuration data
2016-04-10 00:42:43 +02:00
Diptanu Choudhury
21a2914363
Merge pull request #1020 from hashicorp/f-capture-signals
...
Capturing signals from wait
2016-04-02 11:13:04 -07:00
Diptanu Choudhury
1a0c35a196
Capturing signals from wait
2016-04-01 14:31:19 -07:00
Diptanu Choudhury
d203d62684
Logging in fingerprinters only when state changes
2016-04-01 02:22:17 -07:00
Diptanu Choudhury
621ae065d9
Making driver fingerprinters run periodically and unblocking evals when node registration happens
2016-03-31 18:11:27 -07:00
Diptanu Choudhury
1471f747f3
Added version to executor
2016-03-29 22:24:22 -07:00
Diptanu Choudhury
323975d500
Added the Version method to executor
2016-03-29 22:23:03 -07:00
Diptanu Choudhury
588666d0df
Introducing ConsulContext
2016-03-24 15:57:16 -07:00
Diptanu Choudhury
e8995be723
Fixed merge conflicts
2016-03-24 15:09:50 -07:00
Diptanu Choudhury
42dc8bea16
Added a check type for consul service to delegate certain checks
2016-03-24 14:54:26 -07:00
Diptanu Choudhury
3c7d3cdca5
Changing the log line
2016-03-24 14:53:53 -07:00
Diptanu Choudhury
6c5f546e86
Fixing check registration in perform sync
2016-03-24 14:12:09 -07:00
Alex Dadgar
324a11003f
Merge pull request #950 from mssola/raw-exec-user
...
client: added the "user" option to tasks
2016-03-24 08:57:13 -07:00
Diptanu Choudhury
ba12ba2127
Merge pull request #972 from hashicorp/scripts
...
Moving consul service to executor
2016-03-24 00:12:45 -07:00
Diptanu Choudhury
1f6137aba5
Using the name of the task and the alloc id in the service name
2016-03-23 17:35:29 -07:00
Diptanu Choudhury
701a1bd9bc
Hooking up the executor in all drivers
2016-03-23 13:19:45 -07:00
Alex Dadgar
4f923f14b9
Pass environment variables from host to exec based tasks
2016-03-23 13:01:45 -07:00
Diptanu Choudhury
9a71225b9e
Removing references to old consul services and adding consul config to executor context
2016-03-23 12:19:19 -07:00
Miquel Sabaté Solà
939a00aca8
client/driver: added the user config value
...
This way Nomad allows to set which user has to run the task.
Signed-off-by: Miquel Sabaté Solà <msabate@suse.com >
2016-03-23 12:57:31 +01:00
Alex Dadgar
a55b4fcdaa
Merge branch 'master' into f-artifact-location
2016-03-19 12:50:44 -07:00
Alex Dadgar
74ad85e33d
binary lookup path
2016-03-19 12:18:10 -07:00
Diptanu Choudhury
d61ae3ad04
Removing all the destroy logic from wait and calling exit after wait on all drivers
2016-03-18 12:04:11 -07:00
Diptanu Choudhury
0f355e8f87
Introduced a method in executor to launch syslog server
2016-03-18 11:49:10 -07:00
Alex Dadgar
bdc7fdebe1
Download artifacts and remove old code for drivers
2016-03-15 13:28:57 -07:00
Alex Dadgar
6ef841bc34
Updating kill timeout adheres to operator specified maximum
2016-03-03 09:21:21 -08:00
Diptanu Choudhury
7f8f6712c5
Adding version information to snapshots
2016-02-24 19:06:30 -08:00
Alex Dadgar
207d544a55
client: standardize error logging format
2016-02-24 15:57:58 -08:00