Commit Graph

80 Commits

Author SHA1 Message Date
Alex Dadgar
923618c1ac executor: add /run/resolvconf to chroot 2016-03-10 15:05:49 -08:00
Alex Dadgar
4a243e78d3 Add /sbin and /usr/sbin/ to chroot 2016-03-02 16:32:31 -08:00
Diptanu Choudhury
71fb58cea0 Added a comment 2016-03-02 12:56:56 -08:00
Diptanu Choudhury
c4b048df5e Added a test for making sure executor destroy works 2016-03-02 11:05:08 -08:00
Diptanu Choudhury
a96b25bc5b Not killing the plugin while destroying the cgroup 2016-03-01 17:51:54 -08:00
Diptanu Choudhury
f1301c9378 Fixed the logic of cgroup creation 2016-03-01 17:01:45 -08:00
Diptanu Choudhury
54d7057912 Writing logs to alloc dir 2016-02-24 20:06:43 -08:00
Alex Dadgar
207d544a55 client: standardize error logging format 2016-02-24 15:57:58 -08:00
Diptanu Choudhury
3da5e5020a Closing the rotators when the process finishes 2016-02-23 13:32:17 -08:00
Diptanu Choudhury
387fcc36c8 Making the log rotator a writer 2016-02-19 14:01:07 -08:00
Abhishek Chanda
7f1ed162c0 Separate arguments with a space while writing 2016-02-16 17:13:19 -08:00
Diptanu Choudhury
961abeef50 Fixed more client executor tests 2016-02-11 11:13:45 -08:00
Diptanu Choudhury
95284307c5 Fixed the executor test 2016-02-11 10:58:18 -08:00
Diptanu Choudhury
93d283c3a2 Updated comments 2016-02-10 08:13:08 -08:00
Diptanu Choudhury
dcecb95130 Merge branch 'master' into f-logrotator 2016-02-09 12:25:44 -08:00
Alex Dadgar
279f095a7d Don't error killing exited process 2016-02-09 10:00:42 -08:00
Alex Dadgar
1a31340075 Unmount special directories when task finishes 2016-02-08 18:51:11 -08:00
Diptanu Choudhury
cc6e2b73f0 Moved the destroycgroup method into executor 2016-02-08 16:08:29 -08:00
Diptanu Choudhury
fbc3279da9 Appending names of sub-system before log lines 2016-02-08 14:47:10 -08:00
Diptanu Choudhury
de4417d8d8 Removing pathExists from executor 2016-02-08 14:40:54 -08:00
Diptanu Choudhury
747d3202ca Moving code to mount and unmount chroot into allocdir 2016-02-08 14:11:53 -08:00
Diptanu Choudhury
41447a0d7c Extracted the cgroup info into isolation struct 2016-02-08 13:48:26 -08:00
Diptanu Choudhury
9b2e117f68 Making the plugin server return the same instance of executor rpc server 2016-02-08 11:56:48 -08:00
Diptanu Choudhury
9a6da514e1 Fixed merge conflicts 2016-02-08 10:24:27 -08:00
Diptanu Choudhury
4a01bd8bcd Implemented the UpdateLogConfig method 2016-02-08 10:10:01 -08:00
Diptanu Choudhury
d7a772c52b Destroying the cgroup if we can't to executor in exec and java drivers 2016-02-08 10:05:39 -08:00
Diptanu Choudhury
abad46c423 Updated comment 2016-02-05 17:40:06 -08:00
Diptanu Choudhury
82c7f26bc3 Renamed the plugin log file 2016-02-05 17:07:02 -08:00
Diptanu Choudhury
57a1c13cc7 Entering the plugin pid into the cgroup after creating it 2016-02-05 13:16:29 -08:00
Diptanu Choudhury
b3d18a7a07 Added a test which isolates and constraints a process using the executor 2016-02-05 11:07:16 -08:00
Diptanu Choudhury
2533156b9e Corrected comments and making the plugins write to unique log files 2016-02-05 10:49:54 -08:00
Diptanu Choudhury
ab493c2fb3 Putting the plugin in the same cgroup as the user process 2016-02-05 00:11:09 -08:00
Diptanu Choudhury
7bf254c9af Implemented log rotator for exec based drivers 2016-02-04 23:54:15 -08:00
Diptanu Choudhury
d8ed2949cd Not syncing stdout and stderr of pluging with client 2016-02-04 17:36:31 -08:00
Diptanu Choudhury
ded50766c5 Added some docs 2016-02-04 17:00:41 -08:00
Diptanu Choudhury
2b8cdc47d3 Moved packages around 2016-02-04 17:00:41 -08:00
Diptanu Choudhury
f1e2644623 Removed executor and spawn daemon 2016-02-04 17:00:39 -08:00
Alex Dadgar
e0c23ec2cd Use TestMultiplier on all waits 2016-01-21 15:24:24 -08:00
Alex Dadgar
6620eccba9 Handle case that pid is dead in ForceStop 2016-01-21 14:09:04 -08:00
Alex Dadgar
e91abac0f6 Fix a bunch of tests
Up timeouts

trusty travis beta

Increase timeouts
2016-01-20 16:03:53 -08:00
Alex Dadgar
dccbc0320b Fix tests 2016-01-11 09:58:31 -08:00
Alex Dadgar
b8a42786f3 merge 2016-01-11 09:58:26 -08:00
Kenneth Feng
b03d94da1e linux/exec: add /usr/share to ChrootEnv 2015-12-28 13:39:34 -05:00
Clint Shryock
dd6cc455fe Executors/Linux: Update Executor config struct 2015-12-17 10:25:42 -06:00
Diptanu Choudhury
06443a6629 Using cgo dependencies to look up users 2015-12-15 11:12:13 -08:00
Diptanu Choudhury
d53591052e Sending the user process sigint during shutdown on linux 2015-12-08 08:14:13 -08:00
Chris Bednarski
8267ffe8a6 Merge branch 'user-lookup-nocgo' of https://github.com/carlosdp/nomad into b-user-lookup 2015-12-01 13:44:56 -08:00
Carlos Diaz-Padron
eeaa84d52e Refactor out userLookup to helper package
Also replaces user.Lookup in exec driver
2015-12-01 11:59:55 -08:00
Diptanu Choudhury
0c499f78b3 Moving the args to helper 2015-11-26 14:13:19 -08:00
Chris Hines
ffda9d71d4 Speed up tests by allowing parallel execution. 2015-11-25 15:56:55 -05:00