Commit Graph

12617 Commits

Author SHA1 Message Date
Alex Dadgar
bcb1a67015 Merge pull request #4712 from hashicorp/b-failed-trigger-reason
Add a missing eval trigger reason
2018-09-25 10:50:16 -07:00
Alex Dadgar
b3e85557f0 fix logging 2018-09-25 10:49:55 -07:00
Preetha Appan
47e22f6b7c 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
e9c7dc1286 Added logging around nacked evals in the scheduler worker 2018-09-25 10:49:02 -07:00
Alex Dadgar
029a7f617e 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
302a6940af Merge branch 'b-plan' into b-jet-fixes 2018-09-24 16:07:29 -07:00
Alex Dadgar
b8ec297263 Merge pull request #4709 from hashicorp/b-deployments
Fix deployment watcher index usage
2018-09-24 16:05:02 -07:00
Alex Dadgar
ed53038e04 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
4c40d62f68 test allocs fit 2018-09-24 13:59:01 -07:00
Alex Dadgar
06920ee46c Better comment on snapshotindex 2018-09-24 13:53:43 -07:00
Alex Dadgar
82889c432e 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
9d4ff89eaf Fix other instances of blocking queries 2018-09-24 13:52:39 -07:00
Alex Dadgar
f7822161b3 always handle failed allocation 2018-09-21 15:13:54 -07:00
Alex Dadgar
34e8b2f264 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
2332293036 Merge pull request #4693 from Chaosteil/patch-1
Update federation.md command
2018-09-19 11:00:46 -07:00
Alex Dadgar
58775f0782 fix rpc test 2018-09-19 10:17:54 -07:00
Alex Dadgar
aadb09aa16 fix panic 2018-09-18 13:02:03 -07:00
Dominykas Djačenko
0ad8a985ca 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
acb263cbf8 Merge pull request #4692 from hashicorp/f-plugin-singleton
Singleton plugin loader
2018-09-18 10:48:59 -07:00
Alex Dadgar
0917b49871 fix documentation of reattach and use testlog 2018-09-18 10:48:37 -07:00
Alex Dadgar
6aaaa396f5 singleton wrapper 2018-09-18 10:08:46 -07:00
Alex Dadgar
3a26035dfe 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
58c889aa94 yamux 2018-09-17 14:22:40 -07:00
Alex Dadgar
5760da6939 vendor yamux 2018-09-17 13:58:51 -07:00
Alex Dadgar
3c75838963 Serf/Raft/Memberlist logger 2018-09-17 13:57:52 -07:00
Alex Dadgar
07bfc856cf 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
32f9da9e07 small fixes 2018-09-15 16:42:38 -07:00
Alex Dadgar
260b566c91 server 2018-09-15 16:23:13 -07:00
hacnet
8bcbd2ad89 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
122c075bde Corrected vault address and port in client/server hcl 2018-09-14 16:18:03 +00:00
Preetha Appan
81709c068d Update changelog 2018-09-13 14:00:47 -05:00
Alex Dadgar
40d095fd1a agent + consul 2018-09-13 10:43:40 -07:00
Alex Dadgar
83858a8edf Merge pull request #4658 from hashicorp/b-vault-panic
Vendor new Vault API package
2018-09-11 12:11:58 -07:00
Alex Dadgar
054b041976 vault consts 2018-09-11 12:05:47 -07:00
Alex Dadgar
9bb737f91e 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
26ba1e1591 remove toplevel vault dependency 2018-09-11 10:19:03 -07:00
Alex Dadgar
3af3f8afcb Merge pull request #4654 from hashicorp/f-plugin-factory
Plugin loader
2018-09-10 17:33:02 -07:00
Alex Dadgar
762d52e03a review comments 2018-09-10 17:29:28 -07:00
Alex Dadgar
14b65c3378 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
Alex Dadgar
025ca166f3 Missing vendors 2018-09-10 15:08:34 -07:00
Alex Dadgar
56f9607c1a circonus 2018-09-10 15:03:17 -07:00
Alex Dadgar
8ebb17f54d Update retryablehttp 2018-09-10 15:02:05 -07:00
Alex Dadgar
1de6570892 vendor vault 0.11.1 api 2018-09-10 14:58:31 -07:00
Preetha Appan
5723b4f87b Update changelog 2018-09-10 13:18:35 -05:00
Preetha
3f02c516c7 Merge pull request #4647 from hashicorp/b-panic-missing-taskgroup
Fix panic when reschedule policy for allocation can't be looked up
2018-09-10 12:16:26 -06:00
Alex Dadgar
f0b6a8bfbc Plugin loader 2018-09-09 16:41:47 -07:00
Alex Dadgar
f28fd3a1a0 Merge pull request #4651 from shantanugadgil/patch-1
possible typo about node.class
2018-09-07 10:54:15 -07:00
Shantanu Gadgil
09395db6b3 possible typo about node.class
I was checking up on how to set some metadata and stumbled upon this.
2018-09-07 15:52:53 +05:30
Michael Schurter
6a737c8901 Merge pull request #4613 from hashicorp/b-cert-whitespace
config: accept CA PEM files with extra whitespace
2018-09-06 17:00:44 -07:00
Michael Schurter
556adad26a config: accept CA PEM files with extra whitespace
Previously we did a validation pass over CA PEM files before calling
Go's CertPool.AppendCertsFromPEM to provide more detailed error messages
than the stdlib provides.

Unfortunately our validation was overly strict and rejected valid CA
files. This is actually the reason the stdlib PEM parser doesn't return
meaningful errors: PEM files are extremely permissive and it's difficult
to tell the difference between invalid data and valid metadata.

This PR removes our custom validation as it would reject valid data and
the extra error messages were not useful in diagnosing the error
encountered.
2018-09-06 11:38:56 -07:00