Commit Graph

1130 Commits

Author SHA1 Message Date
Alex Dadgar
aaff02ca49 Merge pull request #978 from hashicorp/f-enforce-user
Operator specifiable blacklist for task's using certain users
2016-03-25 12:44:05 -07:00
Alex Dadgar
a1ff98a69a swap raw_exec and qemu in the blacklist 2016-03-25 12:43:50 -07:00
Alex Dadgar
b253416342 Merge pull request #985 from hashicorp/b-interpret-job-tg-meta
client: Add job and task group meta interpretation
2016-03-25 10:48:20 -07:00
Alex Dadgar
77f5c6eab0 Merge pull request #975 from hashicorp/f-rename-complete-alloc
Successful allocations are marked as complete instead of dead
2016-03-25 10:35:11 -07:00
Alex Dadgar
be6da2a446 Fix test 2016-03-25 10:26:32 -07:00
Alex Dadgar
9643d63c6e add test for precedence 2016-03-25 10:16:04 -07:00
Alex Dadgar
bb81d2ebd0 add job and task group meta 2016-03-24 17:39:09 -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
cd89a97529 Operator specifiable blacklist for task's using certain users 2016-03-24 10:55:14 -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
Miquel Sabaté Solà
b41608df51 client/driver: added more tests
Signed-off-by: Miquel Sabaté Solà <msabate@suse.com>
2016-03-24 08:47:23 +01: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
4a2bc83c14 Changed a log line 2016-03-23 19:20:08 -07:00
Diptanu Choudhury
c8622d8547 Added some comments to the keep services method 2016-03-23 19:14:03 -07:00
Diptanu Choudhury
bca2793d1c Using a helper method to copy taskStates 2016-03-23 19:11:54 -07:00
Diptanu Choudhury
408fea015d Reworded the log line 2016-03-23 19:04:59 -07:00
Diptanu Choudhury
a6e382f5fb Locking the task states 2016-03-23 19:02:29 -07:00
Diptanu Choudhury
66430737eb Fixed the tests 2016-03-23 18:39:17 -07:00
Diptanu Choudhury
ef52a7a2c2 Renamed vars and methods 2016-03-23 18:21:27 -07:00
Diptanu Choudhury
5b652bcfd8 Renaming the SyncWithConsul method 2016-03-23 18:13:13 -07:00
Diptanu Choudhury
5918e99089 Fixing log and statements 2016-03-23 18:08:32 -07:00
Alex Dadgar
e0699c2abb Successful allocations are marked as complete instead of dead 2016-03-23 18:08:19 -07:00
Diptanu Choudhury
1a9d71a1b5 Closing the shutdown ch on shutdown 2016-03-23 18:03:02 -07:00
Diptanu Choudhury
167f2f0937 Locking on alloc runners before syncing with consul 2016-03-23 17:54:32 -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
8efe41e52a removing ids of services and checks on the server side 2016-03-23 17:12:53 -07:00
Diptanu Choudhury
6905740234 Added a test to check whether services get updated 2016-03-23 16:25:53 -07:00
Diptanu Choudhury
0e4a236e6a Added comments 2016-03-23 15:39:25 -07:00
Diptanu Choudhury
38fc2ac93f Fixing the test 2016-03-23 15:36:46 -07:00
Diptanu Choudhury
56ccea8f18 Client sync with consul and removed unwanted services 2016-03-23 15:28:55 -07:00
Diptanu Choudhury
5b6714cf53 Re-syncing task when it's updated 2016-03-23 14:34:43 -07:00
Diptanu Choudhury
715c59f806 Syncing consul periodically 2016-03-23 14:27:49 -07:00
Diptanu Choudhury
a69649688d Handling errors during service and check registration 2016-03-23 14:23:32 -07:00
Alex Dadgar
5352bab6dc Comment and don't override 2016-03-23 14:07:12 -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
5568258d0a Making the docker driver register services and checks 2016-03-23 12:59:22 -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
Diptanu Choudhury
92e0cd6b3f Added a test for the sync 2016-03-23 11:49:40 -07:00
Diptanu Choudhury
617e0c3ddf Added the sync logic 2016-03-23 10:43:35 -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
Diptanu Choudhury
388ab3cade Added consul sync 2016-03-23 00:50:41 -07:00
Alex Dadgar
b818379576 add nomad fingerprinter 2016-03-22 17:12:30 -07:00
Alex Dadgar
a9e8857d04 Show error when artifact validation fails in task runner 2016-03-22 16:09:41 -07:00
Diptanu Choudhury
c86d38360a Making the calls to exit idempotent 2016-03-22 11:49:56 -07:00
Diptanu Choudhury
e7dfb896ff Merge branch 'master' of github.com:hashicorp/nomad 2016-03-21 17:45:13 -07:00
Diptanu Choudhury
4e1c1dd168 Fixed the qemu driver tests 2016-03-21 17:44:37 -07:00
Alex Dadgar
63e172747a Reduce verbosity of alloc-status 2016-03-20 16:52:24 -07:00
Alex Dadgar
55509e9f1b Validate the artifact client side as well 2016-03-19 13:28:37 -07:00