Alex Dadgar
2c838a80f6
Detect newly created allocation's properly
2017-01-08 13:55:03 -08:00
Alex Dadgar
d0f918495b
Store pointer of JobSummary in state store and remove in-place modifications of the object and replace with Copy-Update-Insert operations
2017-01-08 13:55:03 -08:00
Alex Dadgar
4ffd9a69e5
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
724edb6659
Fix fingerprint tests
2017-01-08 13:53:27 -08:00
Andrew Svoboda
c46594534a
Update network.html.md
...
Update typo
2017-01-06 17:32:24 -08:00
Diptanu Choudhury
9456b861dc
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
eb123416c5
Fixed namespacing for the cpu arch
2017-01-06 14:23:22 -08:00
Michael Schurter
d032893010
Merge pull request #2132 from hashicorp/f-chrootectomy-4
...
Move chroot building into TaskRunner
2017-01-06 13:03:08 -08:00
Michael Schurter
65fb580216
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
5163e0fa94
Updated docs for /job/allocations endpoint
2017-01-06 11:44:49 -08:00
Michael Schurter
d3270799f0
Fix executor tests
2017-01-06 11:39:18 -08:00
Michael Schurter
acd11f678d
Add COMPAT comment
2017-01-06 11:39:17 -08:00
Michael Schurter
e203928d64
Driver is now required in test tasks
2017-01-06 11:39:17 -08:00
Michael Schurter
90f6ac7490
Fix tests post rebase
2017-01-06 11:39:13 -08:00
Alex Dadgar
a37656e7d8
Add QueuedAllocations to api.Evaluation
2017-01-06 11:32:14 -08:00
Alex Dadgar
f8c930d006
Version bump
2017-01-06 11:22:38 -08:00
Michael Schurter
579f378bee
Remove debug logging
2017-01-05 16:31:56 -08:00
Michael Schurter
baf6f078d6
Remove task name prefix from executor logs
2017-01-05 16:31:56 -08:00
Michael Schurter
86fcf96f72
Put a logger in AllocDir/TaskDir
2017-01-05 16:31:56 -08:00
Michael Schurter
f43d3f074a
Add comments to TaskDir
2017-01-05 16:31:55 -08:00
Michael Schurter
5a6bd19eb7
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
774afd8800
Fail fast on taskdir errors
2017-01-05 16:31:55 -08:00
Michael Schurter
7260d0bca3
Test tasks now require driver name
2017-01-05 16:31:55 -08:00
Michael Schurter
3ea09ba16a
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
Diptanu Choudhury
c253f5b17d
Fixed merging consul config
2017-01-05 15:15:43 -08:00
Alex Dadgar
e740997dcc
changelog
2017-01-05 13:24:17 -08:00
Alex Dadgar
8d5f0fea69
Merge pull request #2128 from hashicorp/f-dispatch
...
Nomad Constructor Jobs and Dispatch
2017-01-06 05:22:49 +08:00
Alex Dadgar
34fc25757e
Merge pull request #2157 from hashicorp/t-client-tests
...
Fix client tests deadlocking
2017-01-06 05:21:05 +08:00
Alex Dadgar
a29f253a12
use helper
2017-01-05 13:19:01 -08:00
Diptanu Choudhury
247bda9a88
Unlocking if we return before adding a new alloc runner
2017-01-05 13:18:48 -08:00
Alex Dadgar
ee523062d1
Fix TestClient_BlockedAllocations
2017-01-05 13:15:08 -08:00
Diptanu Choudhury
38e4dd3998
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
9721a1ab04
Fixed how alloc lock is held
2017-01-05 13:06:56 -08:00
Alex Dadgar
205caf341f
Fix SaveRestoreState
2017-01-05 12:32:44 -08:00
Diptanu Choudhury
ed3364eaaf
Updated changelog
2017-01-05 11:27:47 -08:00
Alex Dadgar
0781097447
Merge branch 'f-cancel' of github.com:hashicorp/nomad into f-cancel
2017-01-04 16:16:55 -08:00
Alex Dadgar
86980e08f0
Cancel blocked evals upon successful one for job
...
This PR causes blocked evaluations to be cancelled if there is a
subsequent successful evaluation for the job. This fixes UX problems
showing failed placements when there are not any in reality and makes GC
possible for these jobs in certain cases.
Fixes https://github.com/hashicorp/nomad/issues/2124
2017-01-04 16:16:04 -08:00
Alex Dadgar
751d81f242
Cancel blocked evals upon successful one for job
...
This PR causes blocked evaluations to be cancelled if there is a
subsequent successful evaluation for the job. This fixes UX problems
showing failed placements when there are not any in reality and makes GC
possible for these jobs in certain cases.
Fixes https://github.com/hashicorp/nomad/issues/2124
2017-01-04 15:25:03 -08:00
Michael Schurter
86d5720e4c
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
13064768ac
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
b4bf33b95a
Merge pull request #2151 from hashicorp/d-attr
...
Fix documentation for interpolating attrs/meta
2017-01-04 05:27:19 +08:00
Alex Dadgar
675855b8c2
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
86b1196906
Update commands on website
2017-01-03 13:22:02 -08:00
Alex Dadgar
567817a099
vagrant version
2017-01-03 11:36:55 -08:00
Alex Dadgar
2473a4587d
changelog
2017-01-03 11:36:23 -08:00
Alex Dadgar
23fcd807cb
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
13450d6c4e
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
9246a7c849
Update downloads.html.erb
...
Fixed a nitpick one of the Vault guys had.
2016-12-29 07:33:09 -07:00
Diptanu Choudhury
6350f06484
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
ce80b5c421
Errant colon in logs usage.
2016-12-24 17:12:16 -08:00