Commit Graph

6967 Commits

Author SHA1 Message Date
Alex Dadgar fa853c9696 Fix two issues during client restore state
This PR fixes two issues:

1) A close of a nil stopCollection channel when restoring and prestart
fails. The failure will cause the killCh to be triggered which will
close collection before it has been initialized.

2) Fixes a deadlock in which the handleWaitCh is never triggered since
it is not initialized when there is an error in prestart and the killCh
is triggered.

Both fixes are by maintaining the loop invariant that the two channels
are valid after there is a handle.
2017-02-28 10:29:12 -08:00
Alex Dadgar 7b69052f33 Merge pull request #2373 from jmvacdmon/patch-1
change example to logging docker driver
2017-02-28 09:07:14 -08:00
jmvacdmon 1f540462e5 change example to logging docker driver 2017-02-28 13:51:36 +01:00
Alex Dadgar 48ab2a6c6a Delete on increment and add a safety guard 2017-02-27 20:23:21 -08:00
Alex Dadgar 3dc0e38feb Merge branch 'master' of github.com:hashicorp/nomad 2017-02-27 19:09:50 -08:00
Alex Dadgar 254b0e4ca6 Fix delete future 2017-02-27 19:09:13 -08:00
Alex Dadgar 80239475b2 Merge pull request #2372 from hashicorp/f-vet
Fix vet script and fix vet problems
2017-02-27 16:20:03 -08:00
Alex Dadgar 5be806a3df Fix vet script and fix vet problems
This PR fixes our vet script and fixes all the missed vet changes.

It also fixes pointers being printed in `nomad stop <job>` and `nomad
node-status <node>`.
2017-02-27 16:00:19 -08:00
Alex Dadgar 927663d284 Merge pull request #2371 from crokita/patch-1
Fix syntax of docker.cleanup.image example
2017-02-27 13:53:04 -08:00
Alex Dadgar c423626484 Docker open stores image/image ID for next ID 2017-02-27 13:49:54 -08:00
Alex Dadgar 6910678c21 Allow random UUID 2017-02-27 13:42:37 -08:00
Chris b4d9714328 Fix syntax of docker.cleanup.image example
I found this syntax issue because I copy-pasted the snippet into my config file and attempted to run Nomad with it. Whoops
2017-02-27 16:34:43 -05:00
Alex Dadgar a7dad8b86f Changelog 2017-02-27 12:00:39 -08:00
Alex Dadgar 854feb625f Merge pull request #2370 from hashicorp/f-gc
Allow specification of eval/job gc threshold
2017-02-27 12:00:05 -08:00
Alex Dadgar 6afcba9e22 Allow specification of eval/job gc threshold 2017-02-27 11:58:10 -08:00
Seth Vargo eab30493bd Merge pull request #2369 from hashicorp/sethvargo-patch-1
Do not soft purge
2017-02-27 14:42:00 -05:00
Alex Dadgar c71cd02edf Fix typo 2017-02-27 11:40:24 -08:00
Seth Vargo 73d307c361 Do not soft purge
Soft purging is great, but we warm the cache immediately after deploy, and even then, if a user happens to be visiting the site in that few hundred milliseconds, they eat the time of a Fastly-S3 lookup, which is still 100x better than 99% of the websites out there.
2017-02-27 14:36:08 -05:00
Alex Dadgar 10edf881fc More auth docs 2017-02-27 11:02:01 -08:00
Seth Vargo 338b9da27e Merge pull request #2368 from hashicorp/sethvargo/missing_asset
Fix missing asset
2017-02-27 13:43:40 -05:00
Seth Vargo 363f44cefe
Fix missing asset 2017-02-27 13:43:33 -05:00
Alex Dadgar f0b5a35140 Merge pull request #2363 from alistanis/fix-readme-typo
changes request to requested
2017-02-27 10:17:08 -08:00
Alex Dadgar 529993eaa9 links 2017-02-27 09:40:55 -08:00
Alex Dadgar fb68bc82de remove sidebar for cluster 2017-02-27 09:35:13 -08:00
Alex Dadgar e14c4e3ee4 Merge branch 'master' of github.com:hashicorp/nomad 2017-02-25 13:36:36 -08:00
Alex Dadgar 5fd7975750 Fix pointer dereference for stats 2017-02-25 13:36:23 -08:00
Chris Cooper 2c62cd08d6 changes request to requested 2017-02-25 15:23:31 -05:00
Alex Dadgar d3aa6d03a9 Merge pull request #2362 from scottw/master
add data_dir to server and client configuration
2017-02-24 20:34:26 -08:00
Scott Wiersdorf 3fc0f5c6b3 add data_dir to server and client configuration 2017-02-24 17:08:57 -07:00
Alex Dadgar f67e952be2 Document incompatibility 2017-02-24 15:53:29 -08:00
Alex Dadgar 545fc4fffc
Release v0.5.5-rc1 2017-02-24 15:25:11 -08:00
Alex Dadgar 46d28750c4 Merge branch 'master' of github.com:hashicorp/nomad 2017-02-24 15:01:24 -08:00
Alex Dadgar 5708f347cd fix check 2017-02-24 15:01:09 -08:00
Sean Chittenden 9cde9296da
Change the default display name from the Circonus Instance ID to
`Nomad`.

The display name is already scoped to target/host.
2017-02-24 14:59:11 -08:00
Alex Dadgar cba7cdeeb2 Bump version 2017-02-24 14:19:46 -08:00
Alex Dadgar be6197775e Changelog 2017-02-24 14:19:06 -08:00
Alex Dadgar aa05ecc37c Merge pull request #2361 from hashicorp/f-docker-coordination
Docker Image Coordinator and caching
2017-02-24 14:18:21 -08:00
Alex Dadgar f8292fe515 ensure spec is set 2017-02-24 14:18:09 -08:00
Alex Dadgar b5d4f39734 Docker Image Coordinator
This PR introduces a coordinator for doing CRUD on a Docker image. It
should fix racy deletion of images. The issue before was images would be
deleted between prestart and start causing an error.
2017-02-24 13:20:40 -08:00
Alex Dadgar abb729b989 Merge pull request #2336 from hashicorp/b-fix-api-panic
Fix API panic and bad missing port check
2017-02-24 13:07:09 -08:00
Alex Dadgar 4083571efb Merge pull request #2350 from Crypto89/b-fix-vagrant-goversion
Fix the GO_VERSION in the Vagrantfile
2017-02-24 13:05:46 -08:00
Alex Dadgar 31c81dcbb7 Merge pull request #2353 from hashicorp/b-docker-volume-driver-conf
Put access to Docker volume drivers behind flag
2017-02-24 13:05:32 -08:00
Alex Dadgar e95599e7c9 Merge pull request #2357 from hashicorp/b-fix-template-panic
Template.Canonicalize wasn't initializing all fields
2017-02-24 13:04:30 -08:00
Michael Schurter 703ddea1dc Add Canonicalize test mimicing example job + template 2017-02-24 12:08:31 -08:00
Michael Schurter 6011a74ab9 Missed initializing another field in Template! 2017-02-24 10:47:50 -08:00
Michael Schurter 531af8f932 Template.Canonicalize wasn't initializing all fields 2017-02-24 10:31:05 -08:00
Michael Schurter 2f0a5e355e Oops! Don't try to build darwin on Linux.
Someday maybe
2017-02-23 16:58:21 -08:00
Michael Schurter f61b7975a3 Put access to Docker volume drivers behind flag 2017-02-23 15:47:36 -08:00
Alex Dadgar 2239503e6e Fix noisy log 2017-02-23 14:40:24 -08:00
Michael Schurter 885f4ae9f9 Allow building specific targets 2017-02-23 13:27:28 -08:00