Commit Graph

18445 Commits

Author SHA1 Message Date
Seth Hoenig f6c8db8a8a consul/connect: use task kind to get service name
Fixes #8000

When requesting a Service Identity token from Consul, use the TaskKind
of the Task to get at the service name associated with the task. In
the past using the TaskName worked because it was generated as a sidecar
task with a name that included the service. In the Native context, we
need to get at the service name in a more correct way, i.e. using the
TaskKind which is defined to include the service name.
2020-05-18 13:46:00 -06:00
Mahmood Ali 5ab2d52e27 endpoint to expose all jobs across all namespaces
Allow a `/v1/jobs?all_namespaces=true` to list all jobs across all
namespaces.  The returned list is to contain a `Namespace` field
indicating the job namespace.

If ACL is enabled, the request token needs to be a management token or
have `namespace:list-jobs` capability on all existing namespaces.
2020-05-18 13:50:46 -04:00
Charlie Voiselle 2dd34efacc
Alternative treatment
A variation of the treatment that surfaces "spread scheduling" in the example while referring to the API docs as canonical for this setting.
2020-05-18 09:51:16 -04:00
Chris Baker a6a8c385ab
Merge pull request #7992 from hashicorp/docs-website-fix
docs: server configuration metadata was missing a dash
2020-05-18 08:47:40 -05:00
James Rasell 6910c61839
Merge pull request #7995 from hashicorp/tidy-go-mod-api
api: tidy Go module to remove unused modules.
2020-05-18 14:53:19 +02:00
Shantanu Gadgil 32046d6f18
Update server.mdx 2020-05-18 17:54:27 +05:30
Tim Gross 0f1946d395
csi: improve plugin error messages and volume validation (#7984)
Some CSI plugins don't return much for errors over the gRPC socket
above and beyond the bare minimum error codes. This changeset improves
the operator experience by unpacking the error codes when available
and wrapping the error with some user-friendly direction.

Improving these errors also revealed a bad comparison with
`require.Error` when `require.EqualError` should be used in the test
code for plugin errors. This defect in turn was hiding a bug in volume
validation where we're being overly permissive in allowing mount
flags, which is now fixed.
2020-05-18 08:23:17 -04:00
James Rasell 01236e842b
api: tidy Go module to remove unused modules. 2020-05-18 09:56:23 +02:00
Shantanu Gadgil fb4c070aae
update docs to mention spread algorithm
update docs to mention spread algorithm
2020-05-18 11:38:52 +05:30
Chris Baker 10ab0ef9b5 docs: server configuration metadata was missing a dash, causing problems
rendering that page
2020-05-17 15:07:46 +00:00
Mahmood Ali 3fa040183f
Merge pull request #7988 from tcassaert/vault_int_docs
Docs: Vault integration token creation docs missing command
2020-05-16 11:38:32 -04:00
Mahmood Ali 0a337a19c5
Merge pull request #7970 from hashicorp/go1.14.3
Go1.14.3
2020-05-16 11:33:15 -04:00
Michael Schurter ca9907a967 build: update from Go 1.14.1 to Go 1.14.3 2020-05-16 10:41:20 -04:00
Michael Schurter 7e0f0f75d0 scripts: add usage to update_golang_version.sh 2020-05-16 10:40:11 -04:00
tcassaert feba5384ff
Command was missing due to missing end of line 2020-05-16 12:49:18 +02:00
Michael Lange 15e5bd2dd2 Add missing bug fix from the changelog for 0.11.2 2020-05-15 16:58:07 -07:00
Mahmood Ali be6cc94346
fix grammar in DST upgrade snippet (#7985) 2020-05-15 15:59:56 -04:00
Spencer Owen 6b37144cb5
Fix typo in changelog
Removes duplicate entry in the change log
2020-05-15 13:02:39 -06:00
Buck Doyle 86cf076a3c
Remove Ember server from Storybook startup (#7980)
The presence of Storybook’s preview-head.html file in the repository
is a constant annoyance: it’s only needed for Storybook and it changes
all the time, producing a lot of Git noise. By making it a separate
step to have the Ember CLI server running before starting Storybook,
we no longer need to have preview-head in the repository. It needed to
be present because there was a race condition where it was sometimes
not generated in time for the Storybook parallel startup.
2020-05-15 13:53:31 -05:00
Mahmood Ali 11db5392f8
Merge pull request #7982 from hashicorp/mdeggies-remove-appveyor
Windows CircleCI Follow
2020-05-15 13:57:41 -04:00
Mahmood Ali f8cb5719f4 revert vendored file accidental changes
[ci skip]
2020-05-15 13:37:03 -04:00
Mahmood Ali bbb341ec66 quiet unzip 2020-05-15 13:19:21 -04:00
Mahmood Ali 3441cdf00e Predownload image before tests start 2020-05-15 12:55:53 -04:00
Mahmood Ali 34b22047b7 Use an image managed by nomad account
This is a retag of stefanscherer/busybox-windows@sha256:af396324c4c62e369a388ebb38d4efd44211dc7c95a438e6feb62b4ae4194c5b
2020-05-15 12:55:22 -04:00
Mahmood Ali a1e0715912 remove unused gotestsum installation script 2020-05-15 12:45:39 -04:00
Mahmood Ali 42c65eb87a colocate test-windows by darwin target
Mostly to ease conflict resolution with Enterprise fork, as Enterprise
CI doesn't support windows.
2020-05-15 12:33:31 -04:00
Mahmood Ali e50fb91557 Few Windows CI changes:
Always install go and vault: the check may accidentally use the CircleCI
pre-installed go version instead of the cached version.

Also, always install from sources without caching.  Go/vault
installation is basically a tarball download.  That's equivalent to
CirleCI caching without the complexity.  These steps don't add much time
either.

Lastly, infer the OS when downloading tarball to avoid managing them in
the job spec.
2020-05-15 12:22:15 -04:00
Mahmood Ali 766104c7a7 Use a pinned tag of stefanscherer/busybox-windows 2020-05-15 12:20:37 -04:00
Mahmood Ali 4dc72b6a20 makefile to support windows 2020-05-15 12:19:59 -04:00
Michael Lange fb48f3de39
Merge pull request #7971 from hashicorp/b-ui/plugin-extend-watchable
UI: Make the Plugin adapter extend Watchable
2020-05-15 09:15:59 -07:00
Michele 9748b1a1f4 Caching test 2020-05-15 10:15:37 -04:00
Michele 99e6dc8a3b Update cache 2020-05-15 10:15:37 -04:00
Michele f756efdcb1 Adding a fix 2020-05-15 10:15:37 -04:00
Michele 0150fc4c54 Move appveyor tests to circle 2020-05-15 10:15:37 -04:00
Tim Gross 6a463dc13a
csi: use a blocking initial connection with timeout (#7965)
The plugin supervisor lazily connects to plugins, but this means we
only get "Unavailable" back from the gRPC call in cases where the
plugin can never be reached (for example, if the Nomad client has the
wrong permissions for the socket).

This changeset improves the operator experience by switching to a
blocking `DialWithContext`. It eagerly connects so that we can
validate the connection is real and get a "failed to open" error in
case where Nomad can't establish the initial connection.
2020-05-15 08:17:11 -04:00
Tim Gross 2082cf738a
csi: support for VolumeContext and VolumeParameters (#7957)
The MVP for CSI in the 0.11.0 release of Nomad did not include support
for opaque volume parameters or volume context. This changeset adds
support for both.

This also moves args for ControllerValidateCapabilities into a struct.
The CSI plugin `ControllerValidateCapabilities` struct that we turn
into a CSI RPC is accumulating arguments, so moving it into a request
struct will reduce the churn of this internal API, make the plugin
code more readable, and make this method consistent with the other
plugin methods in that package.
2020-05-15 08:16:01 -04:00
Chris Baker 0df24e6047
Merge pull request #7972 from hashicorp/0-11-3-return-to-dev
post-release merge
2020-05-14 17:31:45 -05:00
Chris Baker cd062edf22
Merge pull request #7973 from hashicorp/update-webiste-version
update website current version to 0.11.2
2020-05-14 17:31:36 -05:00
Chris Baker d44097c988 update website current version to 0.11.2 2020-05-14 22:03:43 +00:00
Chris Baker 97658b3a11 release: prep for 0.11.3 dev cycle 2020-05-14 21:52:46 +00:00
Michael Lange b8cbc34675 Make the Plugin adapter extend Watchable 2020-05-14 14:37:07 -07:00
Michael Lange 9de6165510 Protect against making watch requests using adapters that don't extend Watchable 2020-05-14 14:36:38 -07:00
Nomad Release Bot 95cf07a53e remove generated files 2020-05-14 21:25:38 +00:00
Nomad Release Bot a3c3c4e9af
Release v0.11.2 2020-05-14 21:25:30 +00:00
Nomad Release bot 189a378549 Generate files for 0.11.2 release 2020-05-14 20:49:42 +00:00
Tim Gross 24aa32c503 csi: use a blocking initial connection with timeout
The plugin supervisor lazily connects to plugins, but this means we
only get "Unavailable" back from the gRPC call in cases where the
plugin can never be reached (for example, if the Nomad client has the
wrong permissions for the socket).

This changeset improves the operator experience by switching to a
blocking `DialWithContext`. It eagerly connects so that we can
validate the connection is real and get a "failed to open" error in
case where Nomad can't establish the initial connection.
2020-05-14 15:59:19 -04:00
Chris Baker 810d913e43 updated changelog with #7959 2020-05-14 19:27:11 +00:00
Chris Baker 1d7159f580 Merge remote-tracking branch 'origin/master' into release-0.11.2 2020-05-14 19:26:03 +00:00
Buck Doyle 588164ef44
Change exec URL-generation to use Ember get (#7963)
This fixes a bug in #7815 where you can’t open an exec window from
the allocation overview because accessing `allocation.job.plainId`
fails across the proxied relationship.
2020-05-14 14:09:09 -05:00
Mahmood Ali ba13fa333c
Merge pull request #7961 from hashicorp/b-always-validate-default-scheduler-config
always check `default_scheduler_config` config
2020-05-14 14:35:06 -04:00