Commit graph

6466 commits

Author SHA1 Message Date
Alex Dadgar a7ce915042 start of the cli command 2016-12-04 21:22:13 -08:00
Michael Schurter 9798e7c7c1 Add SyncNow test 2016-12-02 16:44:18 -08:00
Alex Dadgar 92228da6a8 Dispatch tests 2016-12-02 15:37:26 -08:00
Michael Schurter 407657519f Don't require serf advertise address for clients 2016-12-02 11:07:00 -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
Alex Dadgar 244c95b1ce agent tests 2016-12-01 16:27:22 -08:00
Alex Dadgar f0b6d5953c Remove paused 2016-12-01 13:17:34 -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
Alex Dadgar b232dc4c94 Decompress 2016-11-28 16:05:56 -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 ac3ed04961 Snappy + Dispatch name change
Change the generated name to timestamp + 8 characters of UUID
Add Snappy compression to the input
2016-11-25 20:02:18 -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
Alex Dadgar cfd9593e7a dispatch beginning 2016-11-25 18:04:55 -08:00
Diptanu Choudhury 5191b4d33a Making the status command return the allocs of currently registered job 2016-11-24 16:31:30 +01:00
Gábor Lipták 93148456ed Improve parsing of job struct 2016-11-23 20:18:50 -05:00
Alex Dadgar 8fb83fbb6c Parse 2016-11-23 15:48:36 -08:00
Gábor Lipták 6268112e86 Log when lookup in docker.auth.config fails 2016-11-23 18:43:58 -05:00
Alex Dadgar 54bcde8e36 Dispatch structs 2016-11-23 15:03:13 -08:00