Michael Schurter
774cb8dd9b
Improve artifact download error message
...
Fixes #2289
Unfortunately took more RecoverableError hijinx than I would have liked.
There might be a better way.
2017-03-24 15:26:05 -07:00
Alex Dadgar
67c07c9932
Various fixes for setting user/group of task
...
This PR fixes two issues:
* Folder permissions in -dev mode were incorrect and not suitable for
running as a particular user.
* Was not setting the group membership properly for the launched
process.
Fixes https://github.com/hashicorp/nomad/issues/2160
2017-03-20 14:21:13 -07:00
Michael Schurter
693d89d51c
Fix test by adding new env vars
2017-03-14 17:15:12 -07:00
Alex Dadgar
0e61a36564
return the recoverable err
2017-03-14 16:33:36 -07:00
Alex Dadgar
a6067d5667
Docker doesn't need to init the stats helper
2017-03-14 13:41:57 -07:00
Alex Dadgar
36dc330737
Various fixes
...
This PR:
* Uses Go 1.8 executable lookup
* Stores any err message from stats init method
* Allows overriding of Cpu Compute for hosts where it can't be detected
2017-03-14 12:56:31 -07:00
Michael Schurter
7605d9a406
Merge pull request #2408 from hashicorp/b-2358-rkt-volume-name
...
Replace `_` with `-` in task names for rkt volumes
2017-03-14 10:10:00 -07:00
Michael Schurter
cae20ba1d1
Add NOMAD_{IP,PORT}_<task>_<label> env vars
2017-03-10 12:17:43 -08:00
Michael Schurter
2452f32476
Round two of env var cleaning
...
Should bring us into conformance with IEEE Std 1003.1, 2004 Edition:
http://pubs.opengroup.org/onlinepubs/009695399/basedefs/xbd_chap08.html
1 alloc/op and ~80ns/op on my machine.
2017-03-08 16:46:13 -08:00
Michael Schurter
07b85bb8d8
Replace _ with - in task names for rkt volumes
...
Fixes #2358
2017-03-07 14:34:57 -08:00
Michael Schurter
a9e3f2cf3e
Replace "-" in env var keys with "_"
...
Fixes #2405
2017-03-06 19:57:44 -08:00
Alex Dadgar
833b4bd4dc
Merge branch 'master' into b-remount
2017-03-02 19:23:13 -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
Tom Michaud
6e561c7aa9
Fixes docker-driver docker.auth.config processing
2017-03-01 16:16:11 -07:00
Alex Dadgar
8e6d77ebd5
Fix caching of pull future
2017-02-28 18:19:13 -08:00
Alex Dadgar
90cd50b597
Delete on increment and add a safety guard
2017-02-27 20:23:21 -08:00
Alex Dadgar
b2a7daed9d
Merge branch 'master' of github.com:hashicorp/nomad
2017-02-27 19:09:50 -08:00
Alex Dadgar
14074d8ff7
Fix delete future
2017-02-27 19:09:13 -08:00
Alex Dadgar
07f7e19578
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
7b73e786cb
Docker open stores image/image ID for next ID
2017-02-27 13:49:54 -08:00
Alex Dadgar
5338dafd51
Merge pull request #2361 from hashicorp/f-docker-coordination
...
Docker Image Coordinator and caching
2017-02-24 14:18:21 -08:00
Alex Dadgar
27b2c677c0
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
Michael Schurter
d710c23d4d
Put access to Docker volume drivers behind flag
2017-02-23 15:47:36 -08:00
Alex Dadgar
18107556ab
Fix noisy log
2017-02-23 14:40:24 -08:00
Pietro Menna
5d29600341
Docker Volume Drivers
...
This commit adds the functionality to use Docker Volume Drivers.
2017-02-23 14:36:32 -03:00
Alex Dadgar
85a59d3852
Merge pull request #2347 from hashicorp/b-parse
...
Remove defaulting from parse and fix tests
2017-02-22 18:42:43 -08:00
Alex Dadgar
eaa57878d9
Vendor + test fixes
2017-02-22 15:55:33 -08:00
Michael Schurter
8c35388677
Skip setting MemorySwap on Windows
...
Windows doesn't support this Docker setting.
Fixes #2193
2017-02-21 13:21:42 -08:00
Alex Dadgar
bfd34bb1e8
Don't force uppercase meta keys in env vars
2017-02-20 19:51:24 -08:00
Alex Dadgar
4ba4987625
Drivers log during fingerprinting
...
This PR fixes a regression in which some drivers did not log during
fingerprinting.
2017-02-20 19:35:51 -08:00
Alex Dadgar
e9d8a6aa72
Revendor docker client
2017-02-14 17:34:05 -08:00
Michael Schurter
2822dd760c
Handle createdResourcs=nil
...
Combined with b522c472fd this fixes #2256
Without these two commits in place upgrades to 0.5.3 panics.
2017-01-31 10:51:32 -08:00
Alex Dadgar
b522c472fd
Add nil guard
2017-01-31 09:19:59 -08:00
Alex Dadgar
0e8b43767b
Fix import
2017-01-25 21:27:36 -08:00
Alex Dadgar
c920d3cbb0
Fix unreachable function in tests
2017-01-25 20:58:24 -08:00
Alex Dadgar
8a0739613a
small env fix
2017-01-25 10:42:11 -08:00
Alex Dadgar
938b04e99a
Fix fsm/env test
2017-01-24 09:36:22 -08:00
Alex Dadgar
438054775c
Fix test
2017-01-23 16:33:35 -08:00
Diptanu Choudhury
af66ea3551
Merge pull request #2223 from hashicorp/f-env-addr
...
Setting the Addrs of sibling tasks in the env
2017-01-23 15:05:48 -08:00
Diptanu Choudhury
b52aa931a3
Merge pull request #2222 from hashicorp/b-docker-image-not-found
...
Making the docker driver retry when an image is not found
2017-01-23 14:58:00 -08:00
Diptanu Choudhury
5992a2a88a
Added a comment
2017-01-23 14:57:30 -08:00
Alex Dadgar
77b19f55a0
Add test and better logs
...
This commit adds a test to retrieving auth configurations, use either
the auth block in the config or specified via the agent config and adds
a log if lookup fails.
2017-01-23 14:48:02 -08:00
Alex Dadgar
67bec60f1b
Close file
2017-01-23 11:37:45 -08:00
Alex Dadgar
abd06938e5
Deprecation notice
2017-01-23 11:32:51 -08:00
Alex Dadgar
3c610ec864
Remove SSL
2017-01-23 11:32:51 -08:00
Alex Dadgar
982feb8d6b
undo
2017-01-23 11:32:51 -08:00
Alex Dadgar
36725370ee
vendor
2017-01-23 11:32:51 -08:00
Alex Dadgar
03f9bba1e4
Better auth lookup
2017-01-23 11:32:51 -08:00
Alex Dadgar
6342d4fedf
WIP
2017-01-23 11:32:51 -08:00