Commit Graph

17071 Commits

Author SHA1 Message Date
Michael Lange
787dedcd5c Fix flaky host volumes test 2020-02-13 17:11:28 -08:00
Michael Lange
e5232b9ccd Add volume column to allocation row 2020-02-13 17:11:27 -08:00
Michael Lange
15c7fcfb9c Add volume column to task group row 2020-02-13 17:11:26 -08:00
Michael Lange
961691248b Test coverage for the host volumes table 2020-02-13 17:11:25 -08:00
Michael Lange
33852e1169 Add a Host Volumes table to the client detail page 2020-02-13 17:11:24 -08:00
Michael Lange
5f621e2d68 Data layer for Host Volumes in the UI 2020-02-13 17:11:22 -08: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
Michael Schurter
f3cf1064d1 test: improve error messages when failing 2020-02-07 15:50:53 -08:00
Michael Schurter
683d34fc18 test: allow goroutine to exit even if test blocks 2020-02-07 15:50:53 -08:00
Michael Schurter
59c286a776 test: add timeout to ease debugging 2020-02-07 15:50:53 -08:00
Michael Schurter
4ed435da05 test: workaround limits race 2020-02-07 15:50:53 -08:00
Michael Schurter
b48a21cc77 test: wait longer than timeout
The 1s timeout raced with the 1s deadline it was trying to detect.
2020-02-07 15:50:53 -08:00
Michael Schurter
19d77d9c04 test: fix flaky health test
Test set Agent.client=nil which prevented the client from being
shutdown. This leaked goroutines and could cause panics due to the
leaked client goroutines logging after their parent test had finished.

Removed ACLs from the server test because I couldn't get it to work with
the test agent, and it tested very little.
2020-02-07 15:50:53 -08:00
Michael Schurter
46d5d3e583 test: fix race around reused default rpc addr
The default RPC addr was a global which is fine for normal runtime use
when it only has a single user.

However many tests modify it and cause races. Follow our convention of
returning defaults from funcs instead of using globals.
2020-02-07 15:50:53 -08:00
Michael Schurter
b1f443500d client: fix race accessing Node.status
* Call Node.Canonicalize once when Node is created.
 * Lock when accessing fields mutated by node update goroutine
2020-02-07 15:50:47 -08:00
Jeff Escalante
36a98acded update dependencies 2020-02-07 17:45:35 -05:00
Michael Lange
4757f87f0c Merge pull request #7099 from hashicorp/b-ui/mobile-styles-not-full-width
UI: Override the max-width on mobile to avoid losing space due to non-existent gutter menu
2020-02-07 14:27:50 -08:00