Commit Graph

18656 Commits

Author SHA1 Message Date
Seth Hoenig
cd3ec2f783 connect/native: check for pre-existing consul token 2020-06-24 09:16:28 -05:00
Seth Hoenig
3a1129c6b7 connect/native: fixup command/agent/consul/connect test cases 2020-06-24 09:05:56 -05:00
Seth Hoenig
193e355ec3 connect/native: update connect native hook tests 2020-06-23 12:07:35 -05:00
Seth Hoenig
a87130c0e8 connect/native: give tls files an extension 2020-06-23 12:06:28 -05:00
Seth Hoenig
520d35e085 consul/connect: split connect native flag and task in service 2020-06-23 10:22:22 -05:00
Seth Hoenig
7e8d5c2392 consul/connect: add support for running connect native tasks
This PR adds the capability of running Connect Native Tasks on Nomad,
particularly when TLS and ACLs are enabled on Consul.

The `connect` stanza now includes a `native` parameter, which can be
set to the name of task that backs the Connect Native Consul service.

There is a new Client configuration parameter for the `consul` stanza
called `share_ssl`. Like `allow_unauthenticated` the default value is
true, but recommended to be disabled in production environments. When
enabled, the Nomad Client's Consul TLS information is shared with
Connect Native tasks through the normal Consul environment variables.
This does NOT include auth or token information.

If Consul ACLs are enabled, Service Identity Tokens are automatically
and injected into the Connect Native task through the CONSUL_HTTP_TOKEN
environment variable.

Any of the automatically set environment variables can be overridden by
the Connect Native task using the `env` stanza.

Fixes #6083
2020-06-22 14:07:44 -05:00
Tim Gross
4a769f886e changelog for CSI volume context (#8243) 2020-06-22 14:49:56 -04:00
Buck Doyle
08691407eb Remove non-classic use of this.set (#8242)
This will fix a linting error introduced in 068ad06.
2020-06-22 13:23:28 -05:00
Tim Gross
ffd783e6c3 csi: add VolumeContext to NodeStage/Publish RPCs (#8239)
In #7957 we added support for passing a volume context to the controller RPCs.
This is an opaque map that's created by `CreateVolume` or, in Nomad's case,
in the volume registration spec.

However, we missed passing this field to the `NodeStage` and `NodePublish` RPC,
which prevents certain plugins (such as MooseFS) from making node RPCs.
2020-06-22 13:54:32 -04:00
Mahmood Ali
f22058d782 Merge pull request #8241 from hashicorp/docs-agent-unresponsive-note
Docs: note agent unresponsive
2020-06-22 12:08:04 -04:00
Mahmood Ali
df232a1a8f docs: note 0.11.3 fixes a critical issue 2020-06-22 12:02:01 -04:00
Michael Lange
c079112160 Merge pull request #8227 from hashicorp/d-ui/changelog-entries
UI changelog entries for 0.12
2020-06-22 08:50:03 -07:00
Buck Doyle
068ad06a94 Add linting for classic decorator (#8182)
This completes an installation step I missed when making #8144 and
marks classes that are using the EmberObject APIs as classic.
2020-06-22 10:48:53 -05:00
Kevin Pruett
f7040c9078 Merge pull request #8238 from hashicorp/pruett.update-banner-text
Update banner contents
2020-06-22 11:21:24 -04:00
Kevin Pruett
e61fbbc806 Update banner contents 2020-06-22 11:20:06 -04:00
Mahmood Ali
1681161d22 Merge pull request #8237 from hashicorp/notnoop-followup-20200622
Assorted follow ups
2020-06-22 10:50:37 -04:00
Mahmood Ali
efbc23c55b changelog: 0.11.3 fixes a unresponsiveness bug 2020-06-22 10:31:24 -04:00
Mahmood Ali
b00d226c40 this is OSS 2020-06-22 10:28:45 -04:00
Mahmood Ali
5333d019b4 accomodate enterprise specific commands
`nomad operator snapshot agent` is an Enterprise specific command
2020-06-22 10:27:25 -04:00
Mahmood Ali
935816b643 testS: add all namespaces test for allocations 2020-06-22 10:26:08 -04:00
Chris Baker
162b98f4dc reverted current version back to 0.11.3 2020-06-22 13:09:42 +00:00
Chris Baker
857a75487b added download link for 0.12.0-beta1 2020-06-22 12:54:09 +00:00
Yishan Lin
389252247d Merge pull request #8231 from hashicorp/yishan-update-nomad-resources-website-page
Updated Nomad Resources Page
2020-06-20 21:43:52 -07:00
Michael Lange
b941519352 Fix flaky task-group-row test. (#8221)
Sometimes a job would be created with a running deployment which made
the increment button disabled.

While I was finding the root cause, I also changed the waitUntil pattern
to match the StepperInput technique which is more resilient to code
changes.
2020-06-20 09:48:32 -05:00
Yishan Lin
05598faa1b Added missing HashiTalk from Dingo 2020-06-19 22:32:42 -07:00
Yishan Lin
5869a021f8 Fixed opening sentence typo 2020-06-19 22:29:27 -07:00
Yishan Lin
5d6617c2d8 Updated Nomad Resources Page
- Changed boilerplate intro copy to match messaging in approved 0.12 announcement copy launching next Monday
- Added Virtual Talks section with each of their Youtube links and year timestamps from this year
- Updated the Who Uses Nomad section in alignment with Nomad GitHub READDME in ordering
- Added new customer talks such as Cloudflare and yearly timestamps to each of them
- Removed outdated Community Tools and Integrations section
2020-06-19 20:13:00 -07:00
Chris Baker
5a6f0bf009 Merge pull request #8228 from hashicorp/make-sync
`make sync`
2020-06-19 18:47:18 -05:00
Michael Lange
0b6ed707fd Merge branch 'master' into d-ui/changelog-entries 2020-06-19 16:29:34 -07:00
Chris Baker
324d010ad7 make sync 2020-06-19 23:27:00 +00:00
Chris Baker
47b3510291 Merge pull request #8226 from hashicorp/docs-changelog-net012
docs: add CNI and MIN to changelog for 0.12-beta1
2020-06-19 18:01:54 -05:00
Michael Lange
f0c5d4fef7 UI changelog entries for 0.12 2020-06-19 15:55:02 -07:00
Michael Schurter
b94e024fbe docs: add CNI and MIN to changelog for 0.12-beta1 2020-06-19 15:52:18 -07:00
Michael Schurter
6886edd1fc Merge pull request #8208 from hashicorp/f-multi-network
multi-interface network support
2020-06-19 15:46:48 -07:00
Michael Lange
1913c5f60f Merge pull request #8218 from hashicorp/b-ui/plugin-allocation-healthy-flakiness
UI: Add cycling to factory healthy flags
2020-06-19 14:39:47 -07:00
Mahmood Ali
0bfe89c0fa Merge pull request #8217 from hashicorp/revert-5906-b-alloc-stale-updates
Revert "client: defensive against getting stale alloc updates"
2020-06-19 17:02:01 -04:00
Buck Doyle
5772ea210c Add cycling to factory healthy flags
This is meant to address the plugin test failure seen here:
https://app.circleci.com/pipelines/github/hashicorp/nomad/10015/workflows/ace5d615-db03-4cfc-86b2-31e9e00473ec/jobs/77014/tests

I believe the problem was that on rare occasions, the set
of mock storage controllers and nodes were all unhealthy,
so the facet test had no rows to iterate through. Since
there are always three of each, this guarantees some
healthy ones will be present.
2020-06-19 15:43:32 -05:00
Michael Lange
b3ba307ed8 Merge pull request #8216 from hashicorp/b-ui/stats-request-thrashing
UI: Add a key to the alloc table on the task group detail page
2020-06-19 13:37:05 -07:00
Mahmood Ali
c70f2a1269 Revert "client: defensive against getting stale alloc updates" 2020-06-19 15:39:44 -04:00
Michael Lange
6dfca71b3b Add a key to the alloc table on the task group detail page
Adding keys tells Ember to rerender matching entries instead of
destroying and recreating.

Without this key, every time the allocation collection changes, every
allocation row gets destroyed and recreated.

This happens a lot, since each allocation needs to be reloaded which
dirties the collection.

Since allocation rows fetch stats on init, each of these many many
renders results in a stats request.

By using key and rerendering matching records, this all goes away. Since
the rows aren't being destroyed and recreated, the init stats request
isn't being made overnumerously.
2020-06-19 11:27:57 -07:00
Mahmood Ali
a1a140ca5d Merge pull request #8214 from hashicorp/docs-snapshot-update
Update changelog and snapshot docs
2020-06-19 14:27:12 -04:00
Kevin Pruett
36c99bbe99 Fixup additionalComponents within MDXProvider 2020-06-19 14:22:47 -04:00
Nick Ethier
12595a7cd7 nomad/mock: add NodeNetworkResources to mock Node 2020-06-19 14:22:24 -04:00
Mahmood Ali
38562c1477 add snapshot subcommands to sidenav 2020-06-19 14:11:48 -04:00
Buck Doyle
62abb11bab Add phase 1 of global search (#8175)
This introduces a DataCaches service so recently-updated collections don’t need
to be requeried within a minute, or based on the current route. It only searches
jobs and nodes. There are known bugs that will be addressed in upcoming PRs.
2020-06-19 13:05:28 -05:00
Kevin Pruett
31d512009e Add custom MDXProvider to /docs pages 2020-06-19 13:57:14 -04:00
Dave May
8ba4f72fa2 add redirects for upgrade and vault pki guides (#7863) 2020-06-19 13:54:23 -04:00
Nick Ethier
18ed6a7a85 test: fix up testing around host networks 2020-06-19 13:53:31 -04:00
Tim Gross
1916051580 multiregion: initial deploymentPaused must match start condition (#8215)
In #8209 we fixed the `max_parallel` stanza for multiregion by introducing the
`IsMultiregionStarter` check, but didn't apply it to the earlier place its
required. The result is that deployments start but don't place allocations.
2020-06-19 13:42:38 -04:00
Mahmood Ali
6f20d336ce Apply suggestions from code review
Co-authored-by: Drew Bailey <2614075+drewbailey@users.noreply.github.com>
2020-06-19 13:36:22 -04:00