Commit Graph

17081 Commits

Author SHA1 Message Date
Mahmood Ali
1d9ffa640b implement MinQuorum 2020-02-16 16:04:59 -06:00
Mahmood Ali
535c22e0b8 Update consul autopilot dependency 2020-02-16 15:41:43 -06:00
Mahmood Ali
181408a239 Merge pull request #7150 from hashicorp/vendor-update-raft-2
Update Raft dependency
2020-02-14 16:44:34 -05:00
Michael Schurter
3bc7a44a2a Merge pull request #7156 from hashicorp/test-vault
Fix Vault test flakiness
2020-02-14 11:37:20 -08:00
Michael Schurter
eecc8600b2 test: explicitly pass vars vs enclosing them 2020-02-14 11:10:33 -08:00
Michael Schurter
69bee220cc test: remove errgroup to take advantage of vet
go vet would have prevented the bug fixed in
6362e32161 but our use of errgroup
prevented that.

Rip out errgroup to take advantage of vet, and remove download limiting
now that we're downloading far fewer binaries overall.
2020-02-14 10:53:54 -08:00
Michael Schurter
63791d645c test: sort vault tests by version 2020-02-14 10:33:17 -08:00
Michael Schurter
6362e32161 test: capture url to fix flaky test 2020-02-14 10:32:58 -08:00
Lang Martin
e35d895ecb Update checklist-rpc-endpoint.md
Add an ACL bullet point
2020-02-14 13:10:28 -05:00
Drew Bailey
26503d6de3 Merge pull request #7155 from hashicorp/fix-readme-img
rawgit has reached EOL, point to github blob
2020-02-14 12:57:08 -05:00
Drew Bailey
41dfdd4f02 rawgit has reached EOL, point to github blob
use hashicorp + nomad logo
2020-02-14 12:32:55 -05:00
Michael Schurter
e4832653b3 test: only test latest Z of each X.Y.Z release 2020-02-14 08:41:45 -08:00
Mahmood Ali
1345679b3f remove unused dropButLastChannel 2020-02-13 18:56:53 -05:00
Mahmood Ali
2ccade3364 tests: Avoid StartAsLeader raft config flag
It's being deprecated
2020-02-13 18:56:53 -05:00
Mahmood Ali
fd974bcef7 Use latest raft patterns 2020-02-13 18:56:52 -05:00
Mahmood Ali
95e0527623 update raft to latest 2020-02-13 18:56:52 -05:00
Seth Hoenig
af59190450 Merge pull request #7148 from hashicorp/doc-consul-eto
docs: document enable_tag_override field for service stanzas
2020-02-13 14:42:22 -06:00
Seth Hoenig
931f79ae7d docs: document enable_tag_override field for service stanzas 2020-02-13 13:23:51 -06:00
Seth Hoenig
1ced8ba47d Merge pull request #7106 from hashicorp/f-ctag-override
client: enable configuring enable_tag_override for services
2020-02-13 12:34:48 -06:00
Michael Schurter
3a01ad4892 Merge pull request #7102 from hashicorp/test-limits
Fix some race conditions and flaky tests
2020-02-13 10:19:11 -08:00
Michael Schurter
91458d71c5 Merge pull request #7128 from hashicorp/docs-prior-art-check
docs: explicitly callout checking for prior art
2020-02-13 10:01:38 -08:00
Mahmood Ali
f6cf206f5a Merge pull request #7044 from hashicorp/f-use-multiplexv2
rpc: Use MultiplexV2 for connections
2020-02-13 12:07:20 -05:00
Drew Bailey
8d222b6ce8 Merge pull request #7112 from hashicorp/f-include-pro-tag
include pro tag in serveral oss.go files
2020-02-13 11:26:41 -05:00
Kyle MacDonald
e3c14bd921 website: fix 'edit this page' path 2020-02-13 10:22:49 -05:00
Jeff Escalante
36968b9e5a Merge pull request #7092 - New Website 2020-02-12 16:11:49 -05:00
Seth Hoenig
4c4dd0faac Merge pull request #7129 from hashicorp/b-consistent-ct-name
command: use consistent CONSUL_HTTP_TOKEN name
2020-02-12 12:27:46 -06:00
Seth Hoenig
0a93ddda01 Merge pull request #7127 from hashicorp/b-unset-ct
nomad: unset consul token on job register
2020-02-12 12:25:58 -06:00
Seth Hoenig
7173cb217f docs: update changelog mentioning consul token passthrough 2020-02-12 12:24:04 -06:00
Seth Hoenig
5ccc9a634a command: use consistent CONSUL_HTTP_TOKEN name
Consul CLI uses CONSUL_HTTP_TOKEN, so Nomad should use the same.
Note that consul-template uses CONSUL_TOKEN, which Nomad also uses,
so be careful to preserve any reference to that in the consul-template
context.
2020-02-12 10:42:33 -06:00
Seth Hoenig
b5b5e50010 nomad: assert consul token is unset on job register in tests 2020-02-12 10:17:42 -06:00
Michael Schurter
98dbb685c1 docs: explicitly callout checking for prior art
Also normalize formatting.
2020-02-12 08:07:07 -08:00
Seth Hoenig
a67710c9b5 nomad: unset consul token on job register 2020-02-12 09:58:51 -06:00
Jeff Escalante
fae3fbdb5b add changes from #7078 2020-02-11 16:31:14 -05:00
Jeff Escalante
f95a024778 add release candidate from #7120 2020-02-11 16:31:14 -05:00
Jeff Escalante
0f61c22f35 add changes from #7121 2020-02-11 15:39:03 -05:00
Drew Bailey
76e1785d13 Merge pull request #7122 from hashicorp/pprof/changelog
change log for remote pprof endpoints
2020-02-11 14:32:54 -05:00
Drew Bailey
1dd45d85bd change log for remote pprof endpoints 2020-02-11 14:30:55 -05:00
Mahmood Ali
ce6b8f231b Merge pull request #7108 from hashicorp/ch-windows-binaries
changelog windows binaries being signed
2020-02-10 16:57:16 -05:00
Drew Bailey
7955f2b3a6 include pro tag in serveral oss.go files 2020-02-10 15:56:14 -05:00
Jeff Escalante
5e8b34017c fix a couple more links 2020-02-10 14:20:59 -05:00
Jeff Escalante
448a3f8791 css fix 2020-02-10 14:00:38 -05:00
Jeff Escalante
9fa03d27f6 add link checker, fix a redirect, remove unused component 2020-02-10 13:56:55 -05:00
Jeff Escalante
424a241153 update deps to add minor style fixes 2020-02-10 12:46:31 -05:00
Jeff Escalante
0dba81db8b remove extra redirect file 2020-02-10 12:44:34 -05:00
Mahmood Ali
22f7844303 changelog windows binaries being signed
Note that 0.10.4, nomad windows binaries will be signed.

[ci skip]
2020-02-10 09:11:00 -05:00
Seth Hoenig
6bfd86b1f8 client: enable configuring enable_tag_override for services
Consul provides a feature of Service Definitions where the tags
associated with a service can be modified through the Catalog API,
overriding the value(s) configured in the agent's service configuration.

To enable this feature, the flag enable_tag_override must be configured
in the service definition.

Previously, Nomad did not allow configuring this flag, and thus the default
value of false was used. Now, it is configurable.

Because Nomad itself acts as a state machine around the the service definitions
of the tasks it manages, it's worth describing what happens when this feature
is enabled and why.

Consider the basic case where there is no Nomad, and your service is provided
to consul as a boring JSON file. The ultimate source of truth for the definition
of that service is the file, and is stored in the agent. Later, Consul performs
"anti-entropy" which synchronizes the Catalog (stored only the leaders). Then
with enable_tag_override=true, the tags field is available for "external"
modification through the Catalog API (rather than directly configuring the
service definition file, or using the Agent API). The important observation
is that if the service definition ever changes (i.e. the file is changed &
config reloaded OR the Agent API is used to modify the service), those
"external" tag values are thrown away, and the new service definition is
once again the source of truth.

In the Nomad case, Nomad itself is the source of truth over the Agent in
the same way the JSON file was the source of truth in the example above.
That means any time Nomad sets a new service definition, any externally
configured tags are going to be replaced. When does this happen? Only on
major lifecycle events, for example when a task is modified because of an
updated job spec from the 'nomad job run <existing>' command. Otherwise,
Nomad's periodic re-sync's with Consul will now no longer try to restore
the externally modified tag values (as long as enable_tag_override=true).

Fixes #2057
2020-02-10 08:00:55 -06:00
Michael Schurter
040472224b test: fix flaky TestHTTP_FreshClientAllocMetrics 2020-02-07 15:50:53 -08:00
Michael Schurter
71304a306f test: fix missing agent shutdowns 2020-02-07 15:50:53 -08:00
Michael Schurter
6198c604ea testagent: fix case where agent would retry forever 2020-02-07 15:50:53 -08:00
Michael Schurter
1ef1889c0f test: simplify code 2020-02-07 15:50:53 -08:00