Commit Graph

6221 Commits

Author SHA1 Message Date
Michael Schurter
ed8b3cd37d Fix executor tests 2017-01-06 11:39:18 -08:00
Michael Schurter
9bfa8dc2bd Add COMPAT comment 2017-01-06 11:39:17 -08:00
Michael Schurter
59c501f474 Driver is now required in test tasks 2017-01-06 11:39:17 -08:00
Michael Schurter
6235122b55 Fix tests post rebase 2017-01-06 11:39:13 -08:00
Michael Schurter
12915c30bf Remove debug logging 2017-01-05 16:31:56 -08:00
Michael Schurter
86db19407e Remove task name prefix from executor logs 2017-01-05 16:31:56 -08:00
Michael Schurter
e25274b775 Put a logger in AllocDir/TaskDir 2017-01-05 16:31:56 -08:00
Michael Schurter
957adf2df3 Add comments to TaskDir 2017-01-05 16:31:55 -08:00
Michael Schurter
3011df1c89 Fix upgrade path for #2132
AllocRunner's state dropped the Context struct which needs to be
converted to the new AllocDir+TaskDir structs in RestoreState.

TaskRunner added a TaskDirBuilt flag, but it's safe to just let that
default to `false` and rebuild all task dirs once on upgrade.
2017-01-05 16:31:55 -08:00
Michael Schurter
d87dcce722 Fail fast on taskdir errors 2017-01-05 16:31:55 -08:00
Michael Schurter
e7f6986eb2 Test tasks now require driver name 2017-01-05 16:31:55 -08:00
Michael Schurter
de7351b959 Move chroot building into TaskRunner
* Refactor AllocDir to have a TaskDir struct per task.
* Drivers expose filesystem isolation preference
* Fix lxc mounting of `secrets/`
2017-01-05 16:31:49 -08:00
Alex Dadgar
3cc00a4682 changelog 2017-01-05 13:24:17 -08:00
Alex Dadgar
248c069652 Merge pull request #2128 from hashicorp/f-dispatch
Nomad Constructor Jobs and Dispatch
2017-01-06 05:22:49 +08:00
Alex Dadgar
9a3447d577 Merge pull request #2157 from hashicorp/t-client-tests
Fix client tests deadlocking
2017-01-06 05:21:05 +08:00
Alex Dadgar
bfc1d9c45f use helper 2017-01-05 13:19:01 -08:00
Diptanu Choudhury
5c6adce720 Unlocking if we return before adding a new alloc runner 2017-01-05 13:18:48 -08:00
Alex Dadgar
de832069eb Fix TestClient_BlockedAllocations 2017-01-05 13:15:08 -08:00
Diptanu Choudhury
d1c54748d0 Merge pull request #2156 from hashicorp/b-alloc-lock
Fixed how alloc lock is held
2017-01-05 13:12:12 -08:00
Diptanu Choudhury
84bbd3de28 Fixed how alloc lock is held 2017-01-05 13:06:56 -08:00
Alex Dadgar
a44f7266c2 Fix SaveRestoreState 2017-01-05 12:32:44 -08:00
Diptanu Choudhury
9de9a95133 Updated changelog 2017-01-05 11:27:47 -08:00
Michael Schurter
cd04bc5597 Merge pull request #2152 from hashicorp/b-fix-dev-shutdown-race
Fix race when shutting down in dev mode
2017-01-04 10:34:46 -08:00
Michael Schurter
09d4f0795a Fix race when shutting down in dev mode
Client.Shutdown holds the allocLock when destroying alloc runners in dev
mode.

Client.updateAllocStatus can be called during AllocRunner shutdown and
calls getAllocRunners which tries to acquire allocLock.RLock. This
deadlocks since Client.Shutdown already has the write lock.

Switching Client.Shutdown to use getAllocRunners and not hold a lock
during AllocRunner shutdown is the solution.
2017-01-03 17:21:50 -08:00
Alex Dadgar
9fde3e5e6f Merge pull request #2151 from hashicorp/d-attr
Fix documentation for interpolating attrs/meta
2017-01-04 05:27:19 +08:00
Alex Dadgar
55eaf2d24e Fix documentation for interpolating attrs/meta
This PR fixes the website documentation to correctly present the way of
specifying constraints on node meta and attributes.
2017-01-03 13:25:56 -08:00
Alex Dadgar
500960ea4f Update commands on website 2017-01-03 13:22:02 -08:00
Alex Dadgar
5ee8ae3077 vagrant version 2017-01-03 11:36:55 -08:00
Alex Dadgar
7e0992efb4 changelog 2017-01-03 11:36:23 -08:00
Alex Dadgar
5031075b7c Merge pull request #2098 from jorgemarey/f-telemetry-nodename
Allow to set the nodename on telemetry
2017-01-04 03:33:48 +08:00
Alex Dadgar
0971fb6dd0 Merge pull request #2140 from pgporada/master
Add link to CHANGELOG on the Nomad downloads.html page
2017-01-04 02:34:29 +08:00
Phil Porada
ca53e421fc Update downloads.html.erb
Fixed a nitpick one of the Vault guys had.
2016-12-29 07:33:09 -07:00
Diptanu Choudhury
ab79d6a0be Merge pull request #2142 from hashicorp/b-consistent-usage
Fix inconsistencies in usage cli output.
2016-12-24 23:47:08 -08:00
Cameron Stokes
ca33d0e5cc Errant colon in logs usage. 2016-12-24 17:12:16 -08:00
Cameron Stokes
48e99e01f1 Fix inconsistencies in usage cli output. 2016-12-24 12:39:33 -08:00
Phil Porada
e2d51b7a89 Takes care request #2 on Nomad GH-2129 2016-12-22 21:19:46 -05:00
Jorge Marey
a39cebb744 Add option to set nodename instead of hostname on telemetry values 2016-12-21 09:53:29 +01:00
Michael Schurter
fccf115c56 Merge pull request #2054 from hashicorp/f-prestart
Add Driver.Prestart method
2016-12-20 16:18:56 -08:00
Michael Schurter
904543ef1b Remove unneeded env building 2016-12-20 16:14:42 -08:00
Michael Schurter
decee19978 Fix tests broken by TaskEnv change 2016-12-20 14:37:35 -08:00
Michael Schurter
630812bbdd lxc: Set image local env vars 2016-12-20 14:37:18 -08:00
Michael Schurter
5ad7eeaed5 Remove unneeded waitClient field 2016-12-20 14:29:57 -08:00
Diptanu Choudhury
e42ce28ae7 Added two tests 2016-12-20 14:27:38 -08:00
Michael Schurter
aaa70ab7b8 Append host env vars on every task env 2016-12-20 12:24:24 -08:00
Michael Schurter
6702813233 Fix formatting of downloading image message 2016-12-20 11:57:26 -08:00
Michael Schurter
bbcc27ef1b Use startContainer wrapper 2016-12-20 11:55:40 -08:00
Diptanu Choudhury
9903a8c6df Fixed a test 2016-12-20 11:53:37 -08:00
Michael Schurter
750d59773c Rename InitializationMessage to DriverMessage 2016-12-20 11:51:09 -08:00
Michael Schurter
50934da2c4 Emit "Downloading image" event 2016-12-20 11:40:34 -08:00
Diptanu Choudhury
a709731258 Updated changelog and fixed tests 2016-12-20 11:32:17 -08:00