Commit Graph

904 Commits

Author SHA1 Message Date
Diptanu Choudhury
ed26cb56cc Merge branch 'r-executor-plugin' of github.com:hashicorp/nomad into r-executor-plugin 2016-02-09 10:17:44 -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
279f095a7d Don't error killing exited process 2016-02-09 10:00:42 -08:00
Alex Dadgar
f2efece810 more time 2016-02-09 09:43:40 -08:00
Alex Dadgar
ccaf000fd6 Fix min duration 2016-02-08 19:46:46 -08:00
Alex Dadgar
e696c7eef7 Fix timeouts between signal and kill 2016-02-08 19:31:57 -08:00
Diptanu Choudhury
0dcdaf50af Fixed a test 2016-02-08 19:00:26 -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
7dd3eec684 removing the prefix of the logger 2016-02-08 15:07:18 -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
25d456a8ce Unmounting dev and proc when open can't reconnect with the plugin process 2016-02-08 14:31:03 -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
70f7b2d70f Setting defaults for client max and min port 2016-02-08 13:29:53 -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
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
2efdd83636 Using net.IsLoopback to determine if ifc is a loopback device 2016-02-08 07:57:31 -08:00
Diptanu Choudhury
b1b57d20b0 Isolating the plugin process from the nomad client 2016-02-07 22:33:48 -05:00
Diptanu Choudhury
f7f7cc9b95 Fixed merged conflict 2016-02-07 17:58:31 -05:00
Diptanu Choudhury
e039d1dd23 Merge pull request #773 from hashicorp/docker-auth
Reading dockercfg files for authenticating with private registries
2016-02-06 18:03:39 -08:00
Alex Dadgar
e8f88d332a Precise registration 2016-02-06 17:08:20 -08:00
Alex Dadgar
b290b8ef79 Update the consul service when the task/alloc changes 2016-02-06 17:08:20 -08:00
Diptanu Choudhury
c4fd236026 Updated the docker auth config 2016-02-06 05:47:56 -08:00
Diptanu Choudhury
1343e481f3 Reading dockercfg files for authenticating with private registries 2016-02-06 05:43:30 -08:00
Diptanu Choudhury
84b31eff98 Changed a few comments 2016-02-05 18:07:06 -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
f51e377f52 Reserving ports on windows 2016-02-05 15:17:15 -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
218b9c1261 Using signals to test if proces is alive 2016-02-05 13:05:49 -08:00
Diptanu Choudhury
1ba696abe5 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
b3d18a7a07 Added a test which isolates and constraints a process using the executor 2016-02-05 11:07:16 -08:00
Diptanu Choudhury
10958c463c Making the java driver apply resource constraints and limits 2016-02-05 10:55:03 -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
49226c4a9c Fixing merge conflicts 2016-02-04 22:55:38 -08:00
Diptanu Choudhury
dcd171a320 Running processes with exec as nobody 2016-02-04 17:49:47 -08:00
Diptanu Choudhury
d8ed2949cd Not syncing stdout and stderr of pluging with client 2016-02-04 17:36:31 -08:00
Alex Dadgar
0c46a0ec1d Fix tests 2016-02-04 17:27:58 -08:00
Alex Dadgar
17a93b5730 Merge pull request #756 from hashicorp/f-download-location
Extract artifacts to the root of the task, not in the local directory
2016-02-04 17:22:11 -08:00
Diptanu Choudhury
9800b7dcfe Updated the value of the magic cookie 2016-02-04 17:00:41 -08:00
Diptanu Choudhury
a3282cd0f7 Removed using ProcessState when we just want an empty interface 2016-02-04 17:00:41 -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
b3f1617298 Added tests for the executor 2016-02-04 17:00:40 -08:00
Diptanu Choudhury
5ea6b85e76 Destroying the plugin if we can't connect to it 2016-02-04 17:00:40 -08:00
Diptanu Choudhury
d24f089273 Removed duplicate code 2016-02-04 17:00:40 -08:00