Sean Chittenden
16b0ad4263
Break out the windows vs UNIX Fingerprinter
...
cgroup's are applicable to Windows and will require a more specific abstraction. Stub out the difference. The *NIX exec drivers will likely be broken out over time (e.g. *BSD and Solaris).
2016-05-07 12:37:15 -07:00
Sean Chittenden
bfa8284531
Prefer golang.org/x/sys/unix where appropriate
...
Favor the `unix` package on *NIX platforms vs the now frozen `syscall` package.
2016-05-07 11:01:45 -07:00
Alex Dadgar
7616be8094
Put the executor into the cgroup to avoid a fork race
2016-04-18 17:59:08 -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
ced78c9457
Using the paths of cgroups to reconstruct the manager
2016-04-02 12:37:19 -07: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
Alex Dadgar
e0224b8a35
Refactor task runner to include driver starting into restart policy and add recoverable errors
2016-02-28 16:56:05 -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
Diptanu Choudhury
37e8248495
Merge pull request #842 from hashicorp/f-validate-command
...
drivers: validate that command contains one field
2016-02-23 13:45:10 -08:00
Alex Dadgar
704ad6ecb4
validate that command contains one field
2016-02-23 10:19:40 -08:00
Diptanu Choudhury
8f21b753ba
Merge pull request #819 from hashicorp/r-syslog-collector
...
Refactored syslog server and log rotator
2016-02-23 10:15:14 -08:00
Diptanu Choudhury
387fcc36c8
Making the log rotator a writer
2016-02-19 14:01:07 -08:00
Alex Dadgar
f1c80afcf3
Killing a driver handle is retried with an exponential backoff
2016-02-16 21:00:49 -08:00
Diptanu Choudhury
dc25fd42d6
Updating log configs
2016-02-10 15:04:41 -08:00
Diptanu Choudhury
a92a96336c
Renamed the ExecutorPluginConfig
2016-02-09 12:59:05 -08:00
Diptanu Choudhury
dcecb95130
Merge branch 'master' into f-logrotator
2016-02-09 12:25:44 -08:00
Diptanu Choudhury
e6fcd0ec20
Removing taskDir from the exechandle
2016-02-09 10:21:47 -08:00
Diptanu Choudhury
a97181157c
Killing the userpid if the plugin is killed while the client is running
2016-02-09 10:17:33 -08:00
Alex Dadgar
e696c7eef7
Fix timeouts between signal and kill
2016-02-08 19:31:57 -08:00
Alex Dadgar
1a31340075
Unmount special directories when task finishes
2016-02-08 18:51:11 -08:00
Diptanu Choudhury
8b2f94ff6f
Added a test for merge
2016-02-08 16:27:31 -08:00
Diptanu Choudhury
cc6e2b73f0
Moved the destroycgroup method into executor
2016-02-08 16:08:29 -08:00
Diptanu Choudhury
25d456a8ce
Unmounting dev and proc when open can't reconnect with the plugin process
2016-02-08 14:31:03 -08:00
Diptanu Choudhury
41447a0d7c
Extracted the cgroup info into isolation struct
2016-02-08 13:48:26 -08:00