Commit Graph

6057 Commits

Author SHA1 Message Date
Michael Schurter 8e1ae14feb Remove unneeded env building 2016-12-20 16:14:42 -08:00
Michael Schurter 39f587a2af Fix tests broken by TaskEnv change 2016-12-20 14:37:35 -08:00
Michael Schurter 0d90e96925 lxc: Set image local env vars 2016-12-20 14:37:18 -08:00
Michael Schurter 05b49008eb Remove unneeded waitClient field 2016-12-20 14:29:57 -08:00
Michael Schurter ea92cd102a Append host env vars on every task env 2016-12-20 12:24:24 -08:00
Michael Schurter 458c2ed5f1 Fix formatting of downloading image message 2016-12-20 11:57:26 -08:00
Michael Schurter e34d1e5d23 Use startContainer wrapper 2016-12-20 11:55:40 -08:00
Michael Schurter 2aa235f8f2 Rename InitializationMessage to DriverMessage 2016-12-20 11:51:09 -08:00
Michael Schurter 85b0cecff2 Emit "Downloading image" event 2016-12-20 11:40:34 -08:00
Michael Schurter 770ed703d0 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
Michael Schurter 1c4195b985 Fix string formatting 2016-12-01 11:22:51 -08:00
Alex Dadgar 80b10252c6 changelog 2016-12-01 11:16:55 -08:00
Alex Dadgar 43ac1c5037 Merge pull request #2051 from hashicorp/b-vault-alloc
Disallow stale queries when deriving Vault tokens
2016-12-01 11:14:50 -08:00
Alex Dadgar 86ed1fb2e5 Disallow stale queries when deriving Vault tokens
This PR disallows stale queries when deriving a Vault token. Allowing
stale queries could result in the allocation not existing on the server
that is servicing the request.
2016-12-01 11:13:36 -08:00
Diptanu Choudhury 5a7ebb79a3 Merge pull request #2046 from hashicorp/f-start-recoverable
Make errors starting a container recoverable
2016-11-30 16:36:22 -08:00
Alex Dadgar 70396c464b Make errors starting a container recoverable
This PR makes errors starting a container recoverable and tries to
optimistically handle 500 errors.
2016-11-30 15:59:47 -08:00
Diptanu Choudhury 6c179d1695 Merge pull request #2045 from hashicorp/b-docker-create-container
Returning a container if it exists instead of creating a new one
2016-11-29 17:55:33 -08:00
Diptanu Choudhury 50452520bf Returning a container if it exists instead of creating a new one 2016-11-29 17:52:19 -08:00
Michael Schurter e1d63f6c0f Bump timeout on test 2016-11-29 16:19:40 -08:00
Alex Dadgar 38635e043a Merge branch 'master' of github.com:hashicorp/nomad 2016-11-29 15:57:50 -08:00
Alex Dadgar ec4d6936ff add debug panic 2016-11-29 15:57:40 -08:00
Alex Dadgar e3b9ef46d0 Merge pull request #2044 from julienlevasseur/patch-1
Correct a grammar typo
2016-11-29 15:07:41 -08:00
Alex Dadgar 712e18707b add debugging 2016-11-29 14:29:37 -08:00
julienlevasseur 7a79dbfb7a Correct a grammar typo
a "the a" was still on text, certainly after an hesitation from author.
Keep the "a" form, as it's more general.
2016-11-29 16:44:37 -05:00
Diptanu Choudhury eaed59c028 Merge pull request #2040 from hashicorp/b-block-allocs
Ensuring allocs are not added multiple times to blocking queue
2016-11-29 11:28:36 -08:00
Diptanu Choudhury f67217297c Ensuring allocs are not added multiple times to blocking queue 2016-11-29 11:19:37 -08:00
Diptanu Choudhury 086e49697f Merge pull request #2037 from hashicorp/b-docker-list-containers
Fixes an issue with purging containers with the same name Nomad is tr…
2016-11-28 17:38:34 -08:00
Diptanu Choudhury bff172939b Fixes an issue with purging containers with the same name Nomad is trying to start 2016-11-28 17:37:22 -08:00
Michael Schurter efa8abce0b Mention client level user configs 2016-11-28 13:14:32 -08:00
Michael Schurter b0477c9d48 Fix `user` docs 2016-11-28 13:14:32 -08:00
Michael Schurter 1f7e660832 Add changelog entry for #2028 2016-11-28 13:13:40 -08:00
Michael Schurter 1f0bfa00aa rkt: Support host and none dns options
Fixes #2025
2016-11-28 13:13:40 -08:00
Michael Schurter 4adf58b714 Add changelog entry for #2027 2016-11-28 13:13:40 -08:00
Michael Schurter 44e4414490 Fix rkt volumes
I forgot to validate the volumes field!
2016-11-28 13:13:40 -08:00
Alex Dadgar 0770b2916e changelog 2016-11-28 12:58:47 -08:00
Alex Dadgar e42d9ba26b Merge pull request #2007 from hashicorp/b-stream-framer-panic
Fixes race on StreamFramer Destroy
2016-11-28 12:57:28 -08:00
Alex Dadgar fefa54caef changelog 2016-11-28 12:51:09 -08:00
Alex Dadgar 5df85c3252 Merge pull request #2030 from gliptak/missingname1
Improve parsing of job struct
2016-11-28 12:49:09 -08:00
Alex Dadgar 4f2a6eae8b Merge pull request #2029 from gliptak/dockerauth1
Log when lookup in docker.auth.config fails
2016-11-28 12:45:19 -08:00
Alex Dadgar 58a3eb30ab changelog 2016-11-28 12:40:11 -08:00
Alex Dadgar d8048ad75d Merge pull request #2033 from hashicorp/b-docker-container-exists
Make container exist errors non-retriable
2016-11-28 12:38:52 -08:00
Michael Schurter 3fae4e7826 Merge pull request #2036 from hashicorp/b-fix-host-port-joining
Use net.JoinHostPort instead of fmt.Sprintf
2016-11-28 10:58:47 -08:00
Michael Schurter 23e5865b02 Add changelog entry for #2036 2016-11-28 10:57:51 -08:00
Michael Schurter b3ede6a5b7 Use net.JoinHostPort instead of fmt.Sprintf
Using fmt.Sprintf breaks IPv6 addresses.
2016-11-28 10:38:54 -08:00
Alex Dadgar 8a641a8672 Make container exist errors non-retriable
This change makes it so that the task runner does not retry container
exists errors and also a sleep is added on the local retry.
2016-11-25 19:22:58 -08:00
Gábor Lipták 93148456ed Improve parsing of job struct 2016-11-23 20:18:50 -05:00
Gábor Lipták 6268112e86 Log when lookup in docker.auth.config fails 2016-11-23 18:43:58 -05:00
Diptanu Choudhury 1198a6fc88 Merge pull request #2020 from ranjib/template_args_lxc
(bug)Fix error message. Pass on template args
2016-11-22 05:45:17 +01:00
Ranjib Dey 0b29ad8787 Fix error message. Pass on template args 2016-11-21 20:12:59 -08:00
Alex Dadgar 79841bd3f8 version bump 2016-11-21 09:42:02 -08:00