Commit Graph

6813 Commits

Author SHA1 Message Date
Alex Dadgar
50fafa2808 Fix lint errors 2017-03-02 21:03:05 -08:00
Alex Dadgar
fbfeecb486 Fix TestAllocRunner_SaveRestoreState 2017-03-02 20:45:46 -08:00
Alex Dadgar
94974152fd Mkdir -> MkdirAll to avoid error when folder already exists 2017-03-02 19:35:31 -08:00
Alex Dadgar
833b4bd4dc Merge branch 'master' into b-remount 2017-03-02 19:23:13 -08:00
Alex Dadgar
cfa25620c8 Vendor new cli 2017-03-02 19:23:01 -08:00
Michael Schurter
16fb45e4ba Fix tests broken by API change 2017-03-02 15:54:12 -08:00
Michael Schurter
6535aa8d95 Fix API breaks in tests 2017-03-02 15:50:18 -08:00
Michael Schurter
866600e980 Cleanup comments/names 2017-03-02 15:44:52 -08:00
Michael Schurter
ad4559d019 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
94ce9d2146 unlinkDir should not error if already unlinked 2017-03-02 13:20:47 -08:00
Michael Schurter
ba87cb8a7f Fix typos 2017-03-02 13:20:05 -08:00
Michael Schurter
255240d1b8 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
b584fbd001 Make sure unmounting the secrets dir is idemptoent 2017-03-01 17:19:39 -08:00
Alex Dadgar
8865bb8598 Fix mbits default on website 2017-03-01 16:36:59 -08:00
Alex Dadgar
dea5a83ef7 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
8b1359c2d0 Fix canonicalization of services 2017-03-01 15:30:01 -08:00
Alex Dadgar
923408735f changelog 2017-03-01 15:25:05 -08:00
Alex Dadgar
5ff4bc7888 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
6e561c7aa9 Fixes docker-driver docker.auth.config processing 2017-03-01 16:16:11 -07:00
Alex Dadgar
1b278fbf8a changelog 2017-03-01 14:53:33 -08:00
Alex Dadgar
a6d7dd3864 Merge pull request #2385 from hashicorp/f-periodic-paramaterized
Handle periodic paramaterized jobs
2017-03-01 14:52:56 -08:00
Alex Dadgar
8538770be9 Fix plan 2017-03-01 14:50:26 -08:00
Alex Dadgar
2a683cddea 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
7a24146dcc 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
b92e091a81 Handle periodic paramaterized jobs
Fixes https://github.com/hashicorp/nomad/issues/2382
2017-03-01 11:45:20 -08:00
Michael Schurter
aa84fd437e 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
a73d3c3c21 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
5112eee9ff Fix spelling error for CGO_ENABLED variable in build script 2017-03-01 19:21:46 +00:00
Dave Walker (Daviey)
5d484dcb96 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
1df41cffb8 Revert libcontainer to 89ab7f2ccc1 2017-03-01 10:42:31 -08:00
Alex Dadgar
6bdf78330d 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
d2bd63c98f Re-enable soft purging, stale-if-error 2017-03-01 12:36:03 -05:00
Dave Walker (Daviey)
5875bc1066 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
8e6d77ebd5 Fix caching of pull future 2017-02-28 18:19:13 -08:00
Aleksandr Sorokoumov
1113fa2e97 Add caveat about always pulling latest tag to docker driver docs 2017-03-01 00:25:57 +01:00
Alex Dadgar
04d2be3d2c remove leading slash on vault path 2017-02-28 14:03:18 -08:00
Alex Dadgar
97d6bab88b Add lookup-self 2017-02-28 13:46:38 -08:00
Michael Schurter
2b479554fd Vendor some missing deps 2017-02-28 13:38:57 -08:00
Michael Schurter
925ec07a45 Remove unused vendored packages 2017-02-28 13:10:24 -08:00
Michael Schurter
2de6f7e614 Fix Linux build failure due to struct change 2017-02-28 13:09:35 -08:00
Seth Vargo
6f7c8fd263 Merge pull request #2377 from hashicorp/sethvargo/cache
Update caching
2017-02-28 15:53:08 -05:00
Michael Schurter
29d3c8b604 Update lots of vendored deps 2017-02-28 12:16:52 -08:00
Seth Vargo
db258480e4 Update caching 2017-02-28 15:15:29 -05:00
Michael Schurter
939224ea89 Hoping updating docker deps will fix panic on Windows
🤞
2017-02-28 11:56:11 -08:00
Alex Dadgar
eece5c3c21 Changelog 2017-02-28 10:41:11 -08:00
Alex Dadgar
243c0846a6 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
4826d8464e 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
ca97b37a71 Merge pull request #2373 from jmvacdmon/patch-1
change example to logging docker driver
2017-02-28 09:07:14 -08:00
jmvacdmon
a975c186d3 change example to logging docker driver 2017-02-28 13:51:36 +01:00
Alex Dadgar
90cd50b597 Delete on increment and add a safety guard 2017-02-27 20:23:21 -08:00