Alex Dadgar
1a017c6afd
add plugin kill
2016-10-12 13:24:22 -07:00
Alex Dadgar
358c43333d
Send Executor Ctx separately
2016-10-12 11:35:29 -07:00
Alex Dadgar
8ac55269a3
Merge pull request #1803 from hashicorp/b-vault-parse
...
Fix Vault Config parsing of booleans
2016-10-11 13:47:46 -07:00
Michael Schurter
5773e1bb17
Merge pull request #1804 from hashicorp/f-job-env-var
...
Add NOMAD_JOB_NAME to task environment
2016-10-11 13:34:54 -07:00
Alex Dadgar
7daa4706a6
Tests
2016-10-11 13:28:18 -07:00
Ben Barnard
ce94317d00
Replace "the the" with "the" in documentation and comments
2016-10-11 15:31:40 -04:00
Michael Schurter
2ae0c85290
Add NOMAD_JOB_NAME to environment
2016-10-11 11:20:42 -07:00
Alex Dadgar
9ff2bf0bff
Fix Vault parsing of booleans
2016-10-10 18:04:39 -07:00
Alex Dadgar
ff920d016b
Merge pull request #1796 from hashicorp/f-task-runner
...
Task runner integrates with TaskTemplateManager
2016-10-07 15:13:14 -07:00
Michael Schurter
0f46069211
Merge pull request #1767 from hashicorp/f-docker-volumes-logging
...
Support Docker Volumes and Logging
2016-10-07 12:10:59 -07:00
Michael Schurter
7d115a3fae
Add comment and fix log line code style
2016-10-07 11:58:21 -07:00
Michael Schurter
e876c6c1a0
Remove VolumesFrom feature
...
Since containers are named with alloc ids it's difficult to use safely.
Not to mention task scheduling ordering issues could break it as well.
2016-10-07 11:58:13 -07:00
Alex Dadgar
d7eecc6640
Comments
2016-10-06 15:21:59 -07:00
Alex Dadgar
4cefd048f2
Tests
2016-10-06 15:17:34 -07:00
Alex Dadgar
d200a835c9
Fix handling of restart in TaskEvents
2016-10-06 15:06:54 -07:00
Alex Dadgar
b976633e4d
Start of integration
2016-10-06 15:05:49 -07:00
Alex Dadgar
c683aca47a
Merge pull request #1783 from hashicorp/f-consul-template
...
Consul template manager
2016-10-06 15:05:01 -07:00
Alex Dadgar
5be7275262
Make tests channel based
2016-10-06 14:51:54 -07:00
Alex Dadgar
1c24f59d29
more vendoring
2016-10-06 12:36:44 -07:00
Michael Schurter
297d637a59
Add comments to config key constants
2016-10-03 16:04:33 -07:00
Michael Schurter
cc5b40e54e
Only launch syslog server if container uses syslog
2016-10-03 15:22:10 -07:00
Michael Schurter
fe1e3c792f
Put docker volume support behind conf flag
...
Also add tests and fix bug with logging driver configuration.
2016-10-03 15:02:50 -07:00
Jan-Hendrik Lendholt
32a8e5b116
Fixed a bug when giving in another logging driver than syslog.
...
Before this commit, if the Logging config did not contain a logging option "syslog-address", it would definitely insert this option.
If then, you decide to take another logdriver than syslog, docker would fail because it received a wrong log option for the selected driver.
Now, nomad will only insert the syslog address in a hard way if there are no logging options at all - this way it keeps the default nomad settings.
2016-10-03 15:02:50 -07:00
Jan-Hendrik Lendholt
7c077d2dae
Added support to mount host folders into container. For example if you don't want to bake certificates into the container, you can mount them into the directory directly.
...
Furthermore, I added support for volumes-from.
Currently, there is no support to move the data from one container to another, hence: If a container spawns on another host, it is very likely, that the data will not be found.
2016-10-03 15:02:49 -07:00
Jan-Hendrik Lendholt
38b034d568
Added logging options support for docker driver
2016-10-03 15:02:49 -07:00
Alex Dadgar
bcb1a2e216
Do not allow path to escape the alloc dir for the FS commands
2016-10-03 14:58:44 -07:00
Michael Schurter
96038e85cc
Restore lost chan inits
2016-10-03 14:56:50 -07:00
Alex Dadgar
e1bc05eadf
Consul Template Manager
2016-10-03 12:59:31 -07:00
Diptanu Choudhury
c29861b418
Getting snapshot of allocation from remote node ( #1741 )
...
* Added the alloc dir move
* Moving allocdirs when starting allocations
* Added the migrate flag to ephemeral disk
* Stopping migration if the allocation doesn't need migration any more
* Added the GetAllocDir method
* refactored code
* Added a test for alloc runner
* Incorporated review comments
2016-10-03 09:59:57 -07:00
Michael Schurter
39219c2ad5
Only log consul errors once since last succesful run
2016-09-28 17:18:45 -07:00
Alex Dadgar
2143ee15a0
Merge pull request #1762 from hashicorp/b-scan-pids
...
Constant size space tracking of pids
2016-09-27 17:28:35 -07:00
Alex Dadgar
42c4346dcf
Constant time space tracking of pids
2016-09-27 16:57:26 -07:00
Michael Schurter
95af8374f0
Merge pull request #1735 from hashicorp/b-bootstrap-flapping
...
Retry all servers on RPC call failure
2016-09-27 16:33:15 -07:00
Michael Schurter
ac29e9cffe
Remove unused const
2016-09-27 16:04:01 -07:00
Diptanu Choudhury
50e3217211
Avoiding copying files if they are already present in chrootw ( #1753 )
2016-09-27 11:43:27 -07:00
Michael Schurter
ec81fc9baf
Fix lies found in comments by fact checkers
2016-09-26 16:51:53 -07:00
Michael Schurter
ac90d1de76
No need to put reaper ticker on the struct
2016-09-26 16:15:19 -07:00
Michael Schurter
d6b149678e
Drop clumsy timeout on discovery notifications
...
It's better to just let goroutines fallback to their longer retry
intervals then try to be clever here.
2016-09-26 16:05:21 -07:00
Michael Schurter
93fbc12401
Flip disco chan; clarify method names/comments
2016-09-26 15:52:40 -07:00
Michael Schurter
a4a61e81d5
Return csv of servers from Stats, not just count
2016-09-26 15:40:26 -07:00
Alex Dadgar
b097191ec6
Test fix
2016-09-26 15:35:59 -07:00
Michael Schurter
a35fb33f8f
doDisco -> triggerDiscoveryCh; discovered -> serversDiscoveredCh
...
Also fix log line formatting
2016-09-26 15:21:28 -07:00
Michael Schurter
3bac14324f
noServers -> noServersErr
2016-09-26 15:12:35 -07:00
Michael Schurter
01ff307c3e
consul -> Consul
2016-09-26 15:06:57 -07:00
Diptanu Choudhury
bc82dd67b5
Closing files when files are removed
2016-09-23 22:17:53 -07:00
Michael Schurter
6d9670e9ab
Replace periodic handlers with event driven disco
...
Remove use of periodic consul handlers in the client and just use
goroutines. Consul Discovery is now triggered with a chan instead of
using a timer and deadline to trigger.
Once discovery is complete a chan is ticked so all goroutines waiting
for servers will run.
Should speed up bootstraping and recovery while decreasing spinning on
timers.
2016-09-23 17:02:48 -07:00
Michael Schurter
64ac9b9359
Retry all servers on RPC call failure
...
rpcproxy is refactored into serverlist which prioritizes good servers
over servers in a remote DC or who have had a failure.
Registration, heartbeating, and alloc status updating will retry faster
when new servers are discovered.
Consul discovery will be retried more quickly when no servers are
available (eg on startup or an outage).
2016-09-23 11:44:48 -07:00
Diptanu Choudhury
dd3af85114
Adding a snapshot endpoint on the client ( #1730 )
2016-09-21 21:28:12 -07:00
Alex Dadgar
ee67630889
Struct and parse
2016-09-21 11:31:09 -07:00
Alex Dadgar
d49dda45e3
Merge pull request #1713 from hashicorp/f-alloc-runner-vault
...
Vault integration in client
2016-09-20 16:15:55 -07:00