Commit graph

6957 commits

Author SHA1 Message Date
Michael Schurter 8ac632c3ff Fix API breaks in tests 2017-03-02 15:50:18 -08:00
Michael Schurter d12949fbbd Cleanup comments/names 2017-03-02 15:44:52 -08:00
Michael Schurter e03f64ea6a Safely ensure {dev,proc,alloc} are mounted
If they're unmounted by a reboot they'll be properly remounted.
2017-03-02 13:21:34 -08:00
Michael Schurter d5b7c0c302 unlinkDir should not error if already unlinked 2017-03-02 13:20:47 -08:00
Michael Schurter a9f9c485b4 Fix typos 2017-03-02 13:20:05 -08:00
Michael Schurter f5ce13598b Merge pull request #2391 from hashicorp/b-idempotent-umount
Make sure unmounting the secrets dir is idempotent
2017-03-02 11:24:01 -08:00
Michael Schurter 1cfe9f88b8 Make sure unmounting the secrets dir is idemptoent 2017-03-01 17:19:39 -08:00
Alex Dadgar e07a337a8d Fix mbits default on website 2017-03-01 16:36:59 -08:00
Alex Dadgar 2aa962a357 Merge pull request #2389 from tmichaud314/2388-docker-driver-auth-file
Fixes docker-driver docker.auth.config processing
2017-03-01 15:39:35 -08:00
Alex Dadgar 8827b4f4d0 Fix canonicalization of services 2017-03-01 15:30:01 -08:00
Alex Dadgar 732e6f5e34 changelog 2017-03-01 15:25:05 -08:00
Alex Dadgar b3f73c374f Merge pull request #2386 from hashicorp/f-go-getter
Update go-getter and add support for git and hg
2017-03-01 15:23:30 -08:00
Tom Michaud b4db9d33f9 Fixes docker-driver docker.auth.config processing 2017-03-01 16:16:11 -07:00
Alex Dadgar e60f0357e7 changelog 2017-03-01 14:53:33 -08:00
Alex Dadgar 4d3c0ad5ff Merge pull request #2385 from hashicorp/f-periodic-paramaterized
Handle periodic paramaterized jobs
2017-03-01 14:52:56 -08:00
Alex Dadgar ed95a69905 Fix plan 2017-03-01 14:50:26 -08:00
Alex Dadgar af4e400b36 Update go-getter and add support for git and hg
Fixes https://github.com/hashicorp/nomad/issues/2042
2017-03-01 14:46:04 -08:00
Michael Schurter efc63d14ce Merge pull request #2378 from hashicorp/update-docker-deps
Update Windows, Docker, and other dependencies
2017-03-01 11:53:18 -08:00
Alex Dadgar c58494fdb6 Handle periodic paramaterized jobs
Fixes https://github.com/hashicorp/nomad/issues/2382
2017-03-01 11:45:20 -08:00
Michael Schurter d72eb279ea Merge pull request #2380 from Daviey/master
Don't exec uname for node attribute kernel.version
2017-03-01 11:42:54 -08:00
Michael Schurter d296bd6fe3 Merge pull request #2384 from jonathanio/fix/build-script
Fix spelling error for CGO_ENABLED variable in build script
2017-03-01 11:28:27 -08:00
Jonathan Wright 87b84c71a6 Fix spelling error for CGO_ENABLED variable in build script 2017-03-01 19:21:46 +00:00
Dave Walker (Daviey) 4958154640 Enable kernel.version on Windows
Previously, this value was guarded against running on Windows
because it called the `uname` command which is unlikely to
be there.

This change now sets the value from gopsutil, which might
well be an empty string.

Signed-off-by: Dave Walker (Daviey) <email@daviey.com>
2017-03-01 18:48:23 +00:00
Michael Schurter 22980ae501 Revert libcontainer to 89ab7f2ccc1 2017-03-01 10:42:31 -08:00
Alex Dadgar eaaa259812 Merge pull request #2379 from Gerrrr/doc/latest-tag
Add caveat about always pulling latest tag to docker driver docs
2017-03-01 10:09:38 -08:00
Seth Vargo 6c2a250e9f
Re-enable soft purging, stale-if-error 2017-03-01 12:36:03 -05:00
Dave Walker (Daviey) 090e760928 Don't exec uname for node attribute kernel.version
Previously with client fingerprinting, sys/exec's Command
function was being used to execute `uname -r` and the return
string processed into the kernel.version node attribute.

This change uses gopsutil/host KernelVersion function
instead.  This means we can drop the os/exec, strings and
fmt imports... and not execute an external binary.

Signed-off-by: Dave Walker (Daviey) <email@daviey.com>
2017-03-01 09:45:56 +00:00
Alex Dadgar d2193048ce Fix caching of pull future 2017-02-28 18:19:13 -08:00
Aleksandr Sorokoumov e05b7b7e3a Add caveat about always pulling latest tag to docker driver docs 2017-03-01 00:25:57 +01:00
Alex Dadgar e21792091a remove leading slash on vault path 2017-02-28 14:03:18 -08:00
Alex Dadgar 9c91550926 Add lookup-self 2017-02-28 13:46:38 -08:00
Michael Schurter 11068959d6 Vendor some missing deps 2017-02-28 13:38:57 -08:00
Michael Schurter f832b09be9 Remove unused vendored packages 2017-02-28 13:10:24 -08:00
Michael Schurter ad29f8fb7c Fix Linux build failure due to struct change 2017-02-28 13:09:35 -08:00
Seth Vargo ab2f399ac8 Merge pull request #2377 from hashicorp/sethvargo/cache
Update caching
2017-02-28 15:53:08 -05:00
Michael Schurter b673b01a2d Update lots of vendored deps 2017-02-28 12:16:52 -08:00
Seth Vargo deaa8a50aa
Update caching 2017-02-28 15:15:29 -05:00
Michael Schurter c1ea0428d0 Hoping updating docker deps will fix panic on Windows
🤞
2017-02-28 11:56:11 -08:00
Alex Dadgar f6487f73cb Changelog 2017-02-28 10:41:11 -08:00
Alex Dadgar cdc42749dd Merge pull request #2376 from hashicorp/b-fix-restore-errors
Fix two issues during client restore state
2017-02-28 10:40:09 -08:00
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