Commit Graph

12577 Commits

Author SHA1 Message Date
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
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
Michael Schurter
6bd5852756 Merge pull request #4648 from hashicorp/b-migrate-tls
Set hostname when migrating ephemeral disks over TLS
2018-09-06 11:31:52 -07:00
Michael Schurter
833dc7b4a1 Add changelog entry for #4648 2018-09-05 17:37:52 -07:00
Michael Schurter
6b50475b92 fix race around error handling 2018-09-05 17:34:17 -07:00
Michael Schurter
c55d166712 client: set host name when migrating over tls
Not setting the host name led the Go HTTP client to expect a certificate
with a DNS-resolvable name. Since Nomad uses `${role}.${region}.nomad`
names ephemeral dir migrations were broken when TLS was enabled.

Added an e2e test to ensure this doesn't break again as it's very
difficult to test and the TLS configuration is very easy to get wrong.
2018-09-05 17:24:17 -07:00
Preetha Appan
9daacc652f Fix panic when reschedule policy for allocation can't be looked up
because its task group changed
2018-09-05 17:01:02 -05:00
Preetha
1aec90356a Merge pull request #4645 from hashicorp/f-restart-docs-fix
Fix incorrect default mode for restart stanza in docs
2018-09-05 08:12:44 -06:00
Preetha Appan
a1e08f78a3 Fix incorrect default mode for restart stanza in docs 2018-09-05 09:11:24 -05:00
Alex Dadgar
45a88acf0a Merge pull request #4631 from hashicorp/f-plugin-config
Parse plugin configs
2018-09-04 17:04:13 -07:00
Alex Dadgar
a5a26db04a Merge pull request #4642 from hashicorp/b-vet
Fix vet errors and use newer go version in travis
2018-09-04 17:04:02 -07:00
Alex Dadgar
786f1901fe use latest go in travis 2018-09-04 16:04:13 -07:00
Alex Dadgar
da0bec03c1 Fix make check errors 2018-09-04 16:03:52 -07:00
Preetha
c9b71160dc Update CHANGELOG.md 2018-09-04 17:51:59 -05:00
Alex Dadgar
3879a875cc Fix device launcher ctx cleanup 2018-09-04 15:48:38 -07:00
Preetha
b6fdb7883e Update CHANGELOG.md 2018-09-04 17:38:25 -05:00
Preetha Appan
055e7fadcd Update changelog 2018-09-04 17:31:02 -05:00
Preetha
b60e425d92 Merge pull request #4640 from hashicorp/f-affinities-spread
Affinities and spread
2018-09-04 16:25:14 -06:00
Preetha Appan
1dd1a693bf Fix more review feedback 2018-09-04 16:10:11 -05:00
Preetha Appan
b8facd8756 Fix linting 2018-09-04 16:10:11 -05:00
Preetha Appan
a2284d0f3e code review feedback 2018-09-04 16:10:11 -05:00
Preetha Appan
d40338c8b9 Move topk and delay heap to separate packages under lib 2018-09-04 16:10:11 -05:00
Preetha Appan
f6cbfbfef6 Track top k nodes by norm score rather than top k nodes per scorer 2018-09-04 16:10:11 -05:00
Preetha Appan
aa2b632a44 Fix linting 2018-09-04 16:10:11 -05:00
Preetha Appan
4d68d935e4 Use heap to store top K scoring nodes.
Scoring metadata is now aggregated by scorer type to make it easier
to parse when reading it in the CLI.
2018-09-04 16:10:11 -05:00
Preetha Appan
fed8ce9749 Min heap to store top K scoring elements 2018-09-04 16:10:11 -05:00
Preetha Appan
0e2fefad36 Parse test for spread 2018-09-04 16:10:11 -05:00
Preetha Appan
ed4ed16b5d Parsing and API layer for spread stanza 2018-09-04 16:10:11 -05:00
Preetha Appan
72570e0698 fix linting error 2018-09-04 16:10:11 -05:00
Preetha Appan
31b2102055 Fix scoring logic for uneven spread to incorporate current alloc count
Also addressed other small code review comments
2018-09-04 16:10:11 -05:00
Preetha Appan
1ac696da56 more cleanup 2018-09-04 16:10:11 -05:00
Preetha Appan
fc48be3656 added some unit tests for -1 spread score 2018-09-04 16:10:11 -05:00
Preetha Appan
f881c4f266 comment and formatting cleanup 2018-09-04 16:10:11 -05:00
Preetha Appan
2dfdd4874f fix scoring algorithm when min count == current count 2018-09-04 16:10:11 -05:00
Preetha Appan
35bda8c975 Remove hardcoded boosts for even spread.
instead, calculate them based on delta between current and minimum value
2018-09-04 16:10:11 -05:00
Preetha Appan
7a5791f39e Implement support for even spread across datacenters, with unit test 2018-09-04 16:10:11 -05:00
Preetha Appan
56de0d0a11 Support implicit spread target to account for remaining desired counts 2018-09-04 16:10:11 -05:00
Preetha Appan
5f1d40e4c3 fix comments 2018-09-04 16:10:11 -05:00
Preetha Appan
fa7e3a3f35 Allow empty spread targets, and validate target percentages. 2018-09-04 16:10:11 -05:00
Preetha Appan
ffab506f84 validate spread from job/task group validate methods 2018-09-04 16:10:11 -05:00
Preetha Appan
bf84a5985a Include spreads configured at job level when precomputing weights/desired counts. 2018-09-04 16:10:11 -05:00
Preetha Appan
e2ce63e489 Fix warnings 2018-09-04 16:10:11 -05:00