Michael Schurter
aaa70ab7b8
Append host env vars on every task env
2016-12-20 12:24:24 -08:00
Michael Schurter
750d59773c
Rename InitializationMessage to DriverMessage
2016-12-20 11:51:09 -08:00
Michael Schurter
ee17940dfe
Add Driver.Prestart method
...
The Driver.Prestart method currently does very little but lays the
foundation for where lifecycle plugins can interleave execution _after_
task environment setup but _before_ the task starts.
Currently Prestart does two things:
* Any driver specific task environment building
* Download Docker images
This change also attaches a TaskEvent emitter to Drivers, so they can
emit events during task initialization.
2016-12-02 11:03:48 -08:00
Alex Dadgar
e64875f4cd
Merge pull request #1941 from hashicorp/b-complete-transistion
...
Task state "dead" is terminal
2016-11-04 17:16:10 -07:00
Alex Dadgar
392e7b609c
More precise marking of dead
2016-11-04 17:11:07 -07:00
Alex Dadgar
ad8b5bc141
Task state "dead" is terminal
2016-11-04 16:57:24 -07:00
Alex Dadgar
0ce8a21fe2
Fix tests
2016-11-04 15:10:18 -07:00
Alex Dadgar
16d1fede7d
Unique task
2016-11-04 14:53:37 -07:00
Alex Dadgar
55e7d6f7c6
Create container much more robust
2016-11-04 14:39:56 -07:00
Alex Dadgar
f2fd8f0413
Download artifacts before templates
2016-10-31 11:29:26 -07:00
Alex Dadgar
d70fd7e426
Fix passing of recoverable error from docker pull
2016-10-28 17:49:46 -07:00
Alex Dadgar
e398a0d804
Consul-template fixes + PreviousAlloc in api
2016-10-28 15:50:35 -07:00
Alex Dadgar
9c932aaf2a
Interpolate and then validate services
2016-10-25 14:27:49 -07:00
Alex Dadgar
96594c49a7
Fix merge
2016-10-24 17:04:10 -07:00
Alex Dadgar
7c3a2d08a3
Merge pull request #1848 from hashicorp/f-vault-error
...
Thread through whether DeriveToken error is recoverable or not
2016-10-24 15:01:18 -07:00
Alex Dadgar
4d99c19428
Small fixes
2016-10-22 18:20:50 -07:00
Alex Dadgar
42f7bc8e81
Thread through whether DeriveToken error is recoverable or not
2016-10-22 18:08:30 -07:00
Alex Dadgar
f130c8a894
Change how we mark tasks as failed and allow consul-template to fail tasks
2016-10-20 17:27:16 -07:00
Alex Dadgar
70d0e6e1a3
Feedback
2016-10-18 15:01:04 -07:00
Alex Dadgar
4048d1db5c
Comments
2016-10-18 11:36:04 -07:00
Alex Dadgar
ae288a3ee6
Tests
2016-10-18 11:24:20 -07:00
Alex Dadgar
e34902ae8a
Large refactor of task runner and Vault token rehandling
2016-10-18 11:24:20 -07:00
Alex Dadgar
917c7e5085
Merge pull request #1801 from hashicorp/f-signals
...
Consul-template signal change mode
2016-10-18 11:23:47 -07:00
Ben Barnard
ce94317d00
Replace "the the" with "the" in documentation and comments
2016-10-11 15:31:40 -04:00
Alex Dadgar
af517b3d37
Task runner sends signals
2016-10-10 15:09:00 -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
d49dda45e3
Merge pull request #1713 from hashicorp/f-alloc-runner-vault
...
Vault integration in client
2016-09-20 16:15:55 -07:00
Diptanu Choudhury
0150970620
Ensuring that we are not emitting stats when handle is nil ( #1723 )
...
* Ensuring that we are not emitting stats when handle is nil
* Updated the changelog
2016-09-20 11:29:34 -07:00
Alex Dadgar
c89fd0eb08
Clean up vault client
2016-09-14 18:10:56 -07:00
Alex Dadgar
bec6adb2ee
Vault token threaded
2016-09-14 13:30:01 -07:00
Michael Schurter
8d9468d4c3
Lock around saving state
...
Prevent interleaving state syncs as it could conceivably lead to
empty state files as per #1367
2016-09-02 16:07:06 -07:00
Vishal Nayak
c4744e2632
Merge pull request #1606 from hashicorp/f-vault-client
...
VaultClient for Nomad client's interactions with Vault
2016-08-30 13:13:54 -04:00
Michael Schurter
40e1ffd6ba
Merge pull request #1653 from hashicorp/b-fix-artifact-retry
...
Don't fail other tasks when retrying artifact get
2016-08-26 09:53:39 -07:00
Michael Schurter
d1da2ce020
Don't fail other tasks when retrying artifact get
...
The artifact fetching may be retried and succeed, so don't set the task
as dead.
Fixes #1558
2016-08-25 13:16:41 -07:00
Ivo Verberk
a97432107b
Don't duplicate TaskKilled event and check for TaskSiblingFailed.
2016-08-25 20:11:10 +02:00
vishalnayak
04fab3bc81
Employ DeriveVaultToken API and flesh-up DeriveToken
2016-08-24 12:29:59 -04:00
Alex Dadgar
1c45799c49
Merge pull request #1580 from hashicorp/f-disk-usage-monitoring
...
Monitor and enforce shared allocation directory disk usage
2016-08-23 09:49:53 -07:00
Diptanu Choudhury
025f3b424a
blocking chained allocations until previous allocation hasn't terminated
2016-08-22 11:34:24 -05:00
Ivo Verberk
13071e9846
Disk resource monitoring and enforcement
2016-08-18 07:59:03 +02:00
Diptanu Choudhury
724a2a2111
Fixed some error messages
2016-08-10 15:17:32 -07:00
Kenjiro Nakayama
59c05eb64b
tiny: Return fmt.Errorf instead of duplicated error messages
2016-08-09 08:57:26 +09:00
Diptanu Choudhury
09a199bdbb
Merge pull request #1534 from nak3/fix-intask_runner
...
tiny: print task name and error message for SaveState error
2016-08-08 13:37:25 -04:00
Kenjiro Nakayama
32ce8939c7
tiny: print task name and error message for the SaveState error in task_runner
2016-08-07 13:33:58 +09:00
Kenjiro Nakayama
dd269abeb5
Update GetArtifact by removing unused logger
2016-08-06 23:37:32 +09:00
Diptanu Choudhury
3593649e18
Allow operators to opt into publishing node and alloc metrics
2016-08-01 19:52:20 -07:00
Alex Dadgar
7bb0a2336a
Add killing event and mark task as not running when killed
2016-07-21 15:49:54 -07:00
Alex Dadgar
ab7a3b29bb
Set running when restoring
2016-06-28 13:47:59 -07:00