Alex Dadgar
23e84ecc12
Random wait
2017-01-11 13:24:23 -08:00
Alex Dadgar
925622a851
GetAllocs uses a blocking query
...
This PR makes GetAllocs use a blocking query as well as adding a sanity
check to the clients watchAllocation code to ensure it gets the correct
allocations.
This PR fixes https://github.com/hashicorp/nomad/issues/2119 and
https://github.com/hashicorp/nomad/issues/2153 .
The issue was that the client was talking to two different servers, one
to check which allocations to pull and the other to pull those
allocations. However the latter call was not with a blocking query and
thus the client would not retreive the allocations it requested.
The logging has been improved to make the problem more clear as well.
2017-01-10 13:30:35 -08:00
Alex Dadgar
35af1eda2b
Merge branch 'master' of github.com:hashicorp/nomad
2017-01-09 15:38:11 -08:00
Alex Dadgar
30655ef557
Add better docs for destination
2017-01-09 15:38:04 -08:00
Alex Dadgar
e3ed6219d9
Merge pull request #2164 from hashicorp/b-dispatch
...
Create Task directory structure in the Run method
2017-01-09 11:24:46 -08:00
Alex Dadgar
c323bbde7d
Merge pull request #2165 from hashicorp/b-driver-events
...
Send Driver events to servers immediately
2017-01-09 11:23:38 -08:00
Alex Dadgar
4b72f11744
Merge pull request #2162 from asvoboda/patch-1
...
Update network.html.md
2017-01-08 13:55:56 -08:00
Alex Dadgar
276e5ccbd2
Move to Run()
2017-01-08 13:55:12 -08:00
Alex Dadgar
67a1274acf
Changelog
2017-01-08 13:55:12 -08:00
Alex Dadgar
b69ea1f65c
Create task directory during Prestart()
2017-01-08 13:55:12 -08:00
Alex Dadgar
0641d8a3d1
Send Driver events to servers immediately
...
This PR causes driver events to be sent to the server immediately rather
than waiting for Prestart() to finish.
2017-01-08 13:54:43 -08:00
Alex Dadgar
8214cf08c9
Fix fingerprint tests
2017-01-08 13:53:27 -08:00
Andrew Svoboda
5be017bba5
Update network.html.md
...
Update typo
2017-01-06 17:32:24 -08:00
Diptanu Choudhury
a9cc1a886e
Merge pull request #2161 from hashicorp/f-cpu-arch
...
Fixed namespacing for the cpu arch
2017-01-06 14:41:08 -08:00
Diptanu Choudhury
863120cc1a
Fixed namespacing for the cpu arch
2017-01-06 14:23:22 -08:00
Michael Schurter
9541290b93
Merge pull request #2132 from hashicorp/f-chrootectomy-4
...
Move chroot building into TaskRunner
2017-01-06 13:03:08 -08:00
Michael Schurter
a087a8be79
Fix inconsistent task env setting
...
Consolidate task environment building in GetTaskEnv since it can
determine what kind of filesystem isolation is used.
This means drivers no longer have to manipulate task environment paths.
2017-01-06 12:19:32 -08:00
Diptanu Choudhury
32f96edd61
Updated docs for /job/allocations endpoint
2017-01-06 11:44:49 -08:00
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
Alex Dadgar
bf34379235
Add QueuedAllocations to api.Evaluation
2017-01-06 11:32:14 -08:00
Alex Dadgar
786a824b88
Version bump
2017-01-06 11:22:38 -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