Commit Graph

18907 Commits

Author SHA1 Message Date
Seth Hoenig 4d71f22a11 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 3b84c2d464
changelog for CSI volume context (#8243) 2020-06-22 14:49:56 -04:00
Buck Doyle b891dc88ff
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 3d38592fbb
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 ad9d959d45
Merge pull request #8241 from hashicorp/docs-agent-unresponsive-note
Docs: note agent unresponsive
2020-06-22 12:08:04 -04:00
Mahmood Ali 9669446b56 docs: note 0.11.3 fixes a critical issue 2020-06-22 12:02:01 -04:00
Michael Lange a113346728
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 ca7c252a96
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 62894f1d35
Merge pull request #8238 from hashicorp/pruett.update-banner-text
Update banner contents
2020-06-22 11:21:24 -04:00
Kevin Pruett 7043e4227e
Update banner contents 2020-06-22 11:20:06 -04:00
Mahmood Ali c76cd2b35b
Merge pull request #8237 from hashicorp/notnoop-followup-20200622
Assorted follow ups
2020-06-22 10:50:37 -04:00
Mahmood Ali 12ae1cb6cc changelog: 0.11.3 fixes a unresponsiveness bug 2020-06-22 10:31:24 -04:00
Mahmood Ali 1c1fb5da0a this is OSS 2020-06-22 10:28:45 -04:00
Mahmood Ali fa4e898c45 accomodate enterprise specific commands
`nomad operator snapshot agent` is an Enterprise specific command
2020-06-22 10:27:25 -04:00
Mahmood Ali 862834a792 testS: add all namespaces test for allocations 2020-06-22 10:26:08 -04:00
Chris Baker 0f04e3a7ab reverted current version back to 0.11.3 2020-06-22 13:09:42 +00:00
Chris Baker 39ad962f64 added download link for 0.12.0-beta1 2020-06-22 12:54:09 +00:00
Bryant Menn f2958b534c docs: fixes Nvidia plugin configuration docs (#7711) 2020-06-21 20:48:35 -04:00
Yishan Lin 2105d30692
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 44556d0acb
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 c249ec267f Added missing HashiTalk from Dingo 2020-06-19 22:32:42 -07:00
Yishan Lin edfa6dea10 Fixed opening sentence typo 2020-06-19 22:29:27 -07:00
Yishan Lin 6b67deca6d 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 838f63f202
Merge pull request #8228 from hashicorp/make-sync
`make sync`
2020-06-19 18:47:18 -05:00
Michael Lange f79ad482fb
Merge branch 'master' into d-ui/changelog-entries 2020-06-19 16:29:34 -07:00
Chris Baker b79e25efb9 `make sync` 2020-06-19 23:27:00 +00:00
Chris Baker d3f4d5b91a
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 d28b630b46 UI changelog entries for 0.12 2020-06-19 15:55:02 -07:00
Michael Schurter d9a946dae2 docs: add CNI and MIN to changelog for 0.12-beta1 2020-06-19 15:52:18 -07:00
Michael Schurter 562704124d
Merge pull request #8208 from hashicorp/f-multi-network
multi-interface network support
2020-06-19 15:46:48 -07:00
Michael Lange ac056b14db
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 d0c3275132
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 0dd9ffdab3 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 98be6b0274
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 3824e0362c
Revert "client: defensive against getting stale alloc updates" 2020-06-19 15:39:44 -04:00
Michael Lange a9bf04675f 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 bf08b7a890
Merge pull request #8214 from hashicorp/docs-snapshot-update
Update changelog and snapshot docs
2020-06-19 14:27:12 -04:00
Kevin Pruett aaa9151151
Fixup additionalComponents within MDXProvider 2020-06-19 14:22:47 -04:00
Nick Ethier fb9c458df1
nomad/mock: add NodeNetworkResources to mock Node 2020-06-19 14:22:24 -04:00
Mahmood Ali 06df97b3cd add snapshot subcommands to sidenav 2020-06-19 14:11:48 -04:00
Buck Doyle ee7141a59a
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 86e8a2044b
Add custom MDXProvider to /docs pages 2020-06-19 13:57:14 -04:00
Dave May b2348a34ae
add redirects for upgrade and vault pki guides (#7863) 2020-06-19 13:54:23 -04:00
Nick Ethier a87e91e971
test: fix up testing around host networks 2020-06-19 13:53:31 -04:00
Tim Gross d3ecb87984
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 d04ab67045 Apply suggestions from code review
Co-authored-by: Drew Bailey <2614075+drewbailey@users.noreply.github.com>
2020-06-19 13:36:22 -04:00
Michael Lange 29bab8840c
Merge pull request #8207 from hashicorp/f-ui/manual-scaling-controls
UI: Task Group Scaling Controls
2020-06-19 10:29:01 -07:00
Michael Lange 3be9d338cb Remove superfluous property from the StepperInput page object 2020-06-19 10:21:39 -07:00
Mahmood Ali fe8f5d2f95 docs: snapshot agent command 2020-06-19 12:53:22 -04:00
Mahmood Ali 2c89280fa9 Update docs for snapshot CLI 2020-06-19 12:31:40 -04:00