Commit Graph

12828 Commits

Author SHA1 Message Date
Preetha Appan a10118c461 Add failed follow up to the list of allowed eval trigger reasons
needs unit test
2018-09-25 10:49:55 -07:00
Preetha Appan 86e725e84c Added logging around nacked evals in the scheduler worker 2018-09-25 10:49:02 -07:00
Alex Dadgar 6bdd241641
Merge pull request #4717 from barda999/master
changed ${nomad.class} to ${node.class}
2018-09-24 16:51:27 -07:00
barda999 2c9f212dea
changed ${nomad.class} to ${node.class}
I guess that was an unintentional mistake
2018-09-24 16:48:06 -07:00
Alex Dadgar 759a36dc53
Merge pull request #4698 from hashicorp/t-vault-matrix
Vault test matrix
2018-09-24 16:34:35 -07:00
Alex Dadgar f9c60c91d8 proper variable capture 2018-09-24 16:34:15 -07:00
Alex Dadgar a7de6d1bb1
Merge pull request #4716 from hashicorp/f-no-reuse-triggerby
Unique TriggerBy for blocked evals
2018-09-24 16:08:31 -07:00
Alex Dadgar 3497c3c345 Merge branch 'b-plan' into b-jet-fixes 2018-09-24 16:07:29 -07:00
Alex Dadgar 6fa7071194
Merge pull request #4709 from hashicorp/b-deployments
Fix deployment watcher index usage
2018-09-24 16:05:02 -07:00
Alex Dadgar 6a21f9fe96 Unique TriggerBy for blocked evals
Give blocked evals a unique triggerby reason to make debugging a chain
of evaluations easier.
2018-09-24 14:47:49 -07:00
Alex Dadgar e1a102f58c test allocs fit 2018-09-24 13:59:01 -07:00
Alex Dadgar d7f5be9148 Better comment on snapshotindex 2018-09-24 13:53:43 -07:00
Alex Dadgar 99498da6ed Denormalize jobs in plan and ignore resources of terminal allocs
Denormalize jobs in AppendAllocs:
AppendAlloc was originally only ever called for inplace upgrades and new
allocations. Both these code paths would remove the job from the
allocation. Now we use this to also add fields such as FollowupEvalID
which did not normalize the job. This is only a performance enhancement.

Ignore terminal allocs:
Failed allocations are annotated with the followup Eval ID when one is
created to replace the failed allocation. However, in the plan applier,
when we check if allocations fit, these terminal allocations were not
filtered. This could result in the plan being rejected if the node would
be overcommited if the terminal allocations resources were considered.
2018-09-24 13:53:43 -07:00
Alex Dadgar de442226ae Fix other instances of blocking queries 2018-09-24 13:52:39 -07:00
Preetha Appan f8d9d7a179
update changelog 2018-09-24 11:19:51 -05:00
Preetha 63b58aa92c
Merge pull request #4702 from hashicorp/b-non-voter-boostrap
Do not bootstrap with non voters
2018-09-24 11:14:36 -05:00
Alex Dadgar 7f0d241ef4 always handle failed allocation 2018-09-21 15:13:54 -07:00
Alex Dadgar b2449ae1ce Fix deployment watcher index usage
Fixes three issues:
1. Retrieving the latest evaluation index was not properly selecting the
greatest index. This would undermine checks we had to reduce the number
of evaluations created when the latest eval index was greater than any
alloc change
2. Fix an issue where the blocking query code was using the incorrect
index such that the index was higher than necassary.
3. Special case handling of blocked evaluation since the create/snapshot
index is no particularly useful since they can be reblocked.
2018-09-21 13:59:11 -07:00
Alex Dadgar 5009566503 do not bootstrap with non voters 2018-09-19 17:17:39 -07:00
Alex Dadgar 5f77a78558
Merge pull request #4693 from Chaosteil/patch-1
Update federation.md command
2018-09-19 11:00:46 -07:00
Alex Dadgar 5e4da194e3 build nomad in e2e tests 2018-09-19 10:38:20 -07:00
Alex Dadgar d58595b0b9 vendor vault api for backwards compatibility 2018-09-19 10:23:18 -07:00
Alex Dadgar 9d85eaa2ab run in matrix 2018-09-19 10:21:57 -07:00
Alex Dadgar 69cd345778 vet 2018-09-19 10:18:10 -07:00
Alex Dadgar 34e704df64 test automation 2018-09-19 10:18:10 -07:00
Alex Dadgar e546215046 add a vault test matrix 2018-09-19 10:18:10 -07:00
Alex Dadgar e8f89597f5 fix rpc test 2018-09-19 10:17:54 -07:00
Alex Dadgar 78c8276bc7 fix panic 2018-09-18 13:02:03 -07:00
Dominykas Djačenko e66d8926b0
Update federation.md command
This fixes the documentation to use the most recent syntax for `nomad server join`
2018-09-18 12:58:42 -07:00
Alex Dadgar fb3b80c8b2
Merge pull request #4692 from hashicorp/f-plugin-singleton
Singleton plugin loader
2018-09-18 10:48:59 -07:00
Alex Dadgar ceb0fa8d13 fix documentation of reattach and use testlog 2018-09-18 10:48:37 -07:00
Alex Dadgar 8236478815 singleton wrapper 2018-09-18 10:08:46 -07:00
Alex Dadgar a7c1dbb152
Merge pull request #4686 from hashicorp/f-logger-deps
Use StandardLogger for Raft/Serf/Memberlist/Yamux
2018-09-17 15:36:43 -07:00
Alex Dadgar 9971b3393f yamux 2018-09-17 14:22:40 -07:00
Alex Dadgar 9dc26699b4 vendor yamux 2018-09-17 13:58:51 -07:00
Alex Dadgar b2f500b48c Serf/Raft/Memberlist logger 2018-09-17 13:57:52 -07:00
Alex Dadgar cac3348601
Merge pull request #4682 from hashicorp/f-hc-logger
Plumb hc-logger through everything but client
2018-09-15 16:54:14 -07:00
Alex Dadgar ca28afa3b2 small fixes 2018-09-15 16:42:38 -07:00
Alex Dadgar 3c19d01d7a server 2018-09-15 16:23:13 -07:00
hacnet 5d390c3eb0
Merge pull request #4677 from hashicorp/b-tf-vault-config-fix
Corrected vault address and port in client/server hcl
2018-09-14 18:32:58 +02:00
Thomas Hackett 40767c2b12 Corrected vault address and port in client/server hcl 2018-09-14 16:18:03 +00:00
Preetha Appan b10e4f57b1
Update changelog 2018-09-13 14:00:47 -05:00
Alex Dadgar 7739ef51ce agent + consul 2018-09-13 10:43:40 -07:00
Alex Dadgar bb0f869eb2
Merge pull request #4658 from hashicorp/b-vault-panic
Vendor new Vault API package
2018-09-11 12:11:58 -07:00
Alex Dadgar 8b01793d63 vault consts 2018-09-11 12:05:47 -07:00
Alex Dadgar f384da3f85
Merge pull request #4659 from hashicorp/f-drain-failed-deployment
Failed/paused deployments do not block migrations
2018-09-11 12:00:36 -07:00
Alex Dadgar 66d40431f1 remove toplevel vault dependency 2018-09-11 10:19:03 -07:00
Alex Dadgar b8abf64691
Merge pull request #4654 from hashicorp/f-plugin-factory
Plugin loader
2018-09-10 17:33:02 -07:00
Alex Dadgar 7552112a0d review comments 2018-09-10 17:29:28 -07:00
Alex Dadgar 3ba62efd5e Failed/paused deployments do not block migrations
This PR changes behavior of the scheduler such that a task group with a
deployment that is failed or paused will not cause the scheduler to skip
migrations.

The reason for this change is that it causes a bad UX when draining
nodes with allocations that are part of a failed/paused deployment.
These operations should not be coupled in any way and this remedies
that.

Prior behavior was still correct, but required either jobs to
transistion to a healthy state or for the node to hit its drain
deadline.
2018-09-10 15:28:45 -07:00