Commit Graph

18562 Commits

Author SHA1 Message Date
Nick Ethier
ad8ced3873 multi-interface network support 2020-06-19 09:42:10 -04:00
Tim Gross
8fc76f560d store ACL Accessor ID from Job.Register with Job (#8204)
In multiregion deployments when ACLs are enabled, the deploymentwatcher needs
an appropriately scoped ACL token with the same `submit-job` rights as the
user who submitted it. The token will already be replicated, so store the
accessor ID so that it can be retrieved by the leader.
2020-06-19 07:53:29 -04:00
Tim Gross
8ce13f304e docs: fix for multiregion count explanation (#8202) 2020-06-19 07:52:58 -04:00
James Rasell
d77090171f Merge pull request #8180 from hashicorp/b-gh-8179
demo: Fix Vagrantfile when building staging VM for Cloud build.
2020-06-19 08:29:09 +02:00
Luiz Aoqui
6bdceed391 Merge pull request #8206 from hashicorp/docs-fix-license-api
docs: update operator license API
2020-06-18 21:24:13 -04:00
Luiz Aoqui
aeb32e7ae2 docs: update operator license API 2020-06-18 20:17:45 -04:00
Mahmood Ali
9c2c03724b Merge pull request #8192 from hashicorp/f-status-allnamespaces-2
CLI Allow querying all namespaces for jobs and allocations - Try 2
2020-06-18 20:16:52 -04:00
Michael Schurter
a47d374511 Merge pull request #8205 from hashicorp/docs-090-portmap
docs: finally document the 0.9 port_map break
2020-06-18 15:32:23 -07:00
Michael Schurter
a0c77c10c1 docs: finally document the 0.9 port_map break 2020-06-18 14:56:47 -07:00
Michael Schurter
e5a244632d Merge pull request #8203 from hashicorp/next-2
net-next merge to master
2020-06-18 11:51:05 -07:00
Nick Ethier
af6aee3b8a fix test failures from rebase 2020-06-18 11:05:32 -07:00
Michael Schurter
affcc4d624 deps: updated libnetwork dep
Adding missing vendor files as well.
2020-06-18 11:05:31 -07:00
Nick Ethier
33ce12cda9 CNI Implementation (#7518) 2020-06-18 11:05:29 -07:00
Nick Ethier
e9ff8a8daa Task DNS Options (#7661)
Co-Authored-By: Tim Gross <tgross@hashicorp.com>
Co-Authored-By: Seth Hoenig <shoenig@hashicorp.com>
2020-06-18 11:01:31 -07:00
Michael Lange
50cc295544 Merge pull request #8177 from hashicorp/f-ui/monitor
UI: Client and Server Monitor
2020-06-18 09:07:22 -07:00
Charlie Jones
2f770b1e10 Fix typo in link to Cloud Auto-join section (#8116) 2020-06-18 10:21:31 -04:00
Seth Hoenig
ca46ff1525 Merge pull request #8199 from hashicorp/b-remove-tidy-from-dev
deps: remove tidy from dev makefile target
2020-06-18 08:56:58 -05:00
Seth Hoenig
37835d6444 deps: remove tidy from dev makefile target
With Go modules, `go mod tidy` supplants `vendorfmt`. Unfortunately,
`tidy` will try to reach out to the network and download modules, and
there is no way to disable that behavior (e.g. the -mod=vendor) option
does not apply. This means we cannot use the `tidy` target in nomad
enterprise, which will be unable to reach private repositories like
consul-enterprise.

This isn't a big deal, since `vendorfmt` served the purpose of rewriting
the output of `govendor`, wheras `tidy` is a part of the `sync` target
that is required to be run when modifying dependencies anyway.
2020-06-18 08:49:12 -05:00
Tim Gross
6fd4f3e985 docs: multiregion deployment feature (#8185) 2020-06-18 08:41:22 -04:00
Michael Lange
34e8e1f183 Code review feedback 2020-06-17 14:56:16 -07:00
Michael Lange
619aea8dbb Guard the request animation frame with the existing requestFrame flag 2020-06-17 14:50:55 -07:00
Mahmood Ali
7e51f80d1d cli: warn on multiple prefix matches when querying all namespaces 2020-06-17 16:32:51 -04:00
Mahmood Ali
f376f7338c cli: query all namespaces for alloc subcommands 2020-06-17 16:31:06 -04:00
Mahmood Ali
b5fc8883a4 rpc: allow querying allocs across namespaces
This implements the backend handling for querying across namespaces for
allocation list endpoints.
2020-06-17 16:31:06 -04:00
Mahmood Ali
85db7187fb cli: jobs allow querying jobs in all namespaces 2020-06-17 16:31:01 -04:00
Mahmood Ali
2f9fc04e05 use '*' to indicate all namespaces
This reverts the introduction of AllNamespaces parameter that was merged
earlier but never got released.
2020-06-17 16:27:43 -04:00
Tim Gross
ae4f368c4c test: remove flaky test from volumewatcher (#8189)
The volumewatcher restores itself on notification, but detecting this is racy
because it may reap any claim (or find there are no claims to reap) and
shutdown before we can test whether it's running. This appears to have become
flaky with a new version of golang. The other cases in this test case
sufficiently exercise the start/stop behavior of the volumewatcher, so remove
the flaky section.
2020-06-17 15:41:51 -04:00
Chris Baker
ea6e35177e Merge pull request #8187 from hashicorp/f-8143-block-scaling-during-deployment
modify Job.Scale RPC to return an error if there is an active deployment
2020-06-17 14:38:55 -05:00
Tim Gross
8091ea4159 changelog for multiregion deployments (#8188) 2020-06-17 14:14:04 -04:00
Chris Baker
50be177602 docs: updated website to this change 2020-06-17 17:44:58 +00:00
Chris Baker
d665edc81d added changelog entry and satisfied make check 2020-06-17 17:43:45 +00:00
Chris Baker
587f3053e7 modify Job.Scale RPC to return an error if there is an active deployment
resolves #8143
2020-06-17 17:03:35 +00:00
Tim Gross
d49eab82f1 Merge pull request #8184 from hashicorp/f-multiregion_oss
Multiregion Deployments (OSS integration)
2020-06-17 12:09:42 -04:00
Tim Gross
968713bd44 remove test for ent-only behavior 2020-06-17 11:27:29 -04:00
Tim Gross
abd3a2b846 multiregion: use pending instead of paused
The `paused` state is used as an operator safety mechanism, so that they can
debug a deployment or halt one that's causing a wider failure. By using the
`paused` state as the first state of a multiregion deployment, we risked
resuming an intentionally operator-paused deployment because of activity in a
peer region.

This changeset replaces the use of the `paused` state with a `pending` state,
and provides a `Deployment.Run` internal RPC to replace the use of the
`Deployment.Pause` (resume) RPC we were using in `deploymentwatcher`.
2020-06-17 11:06:14 -04:00
Tim Gross
dccea99f7e multiregion: integrate with deploymentwatcher
* `nextRegion` should take status parameter
* thread Deployment/Job RPCs thru `nextRegion`
* add `nextRegion` calls to `deploymentwatcher`
* use a better description for paused for peer
2020-06-17 11:06:00 -04:00
Tim Gross
45c2e875f8 multiregion: change AutoRevert to OnFailure 2020-06-17 11:05:45 -04:00
Tim Gross
4d2e61d30b start all but first region deployment in paused state 2020-06-17 11:05:34 -04:00
Tim Gross
7f9f3fe00c multiregion: deploymentwatcher hooks
This changeset establishes hooks in deploymentwatcher for multiregion
deployments (for the enterprise version of Nomad).
2020-06-17 11:05:18 -04:00
Tim Gross
02209b1371 Multiregion job registration
Integration points for multiregion jobs to be registered in the enterprise
version of Nomad:
* hook in `Job.Register` for enterprise to send job to peer regions
* remove monitoring from `nomad job run` and `nomad job stop` for multiregion jobs
2020-06-17 11:04:58 -04:00
Tim Gross
e620ff7f0f use constants from http package 2020-06-17 11:04:02 -04:00
Tim Gross
c0974fe9af multiregion CLI: nomad deployment unblock 2020-06-17 11:03:44 -04:00
Drew Bailey
ce8f230cab Multiregion deploy status and job status CLI 2020-06-17 11:03:34 -04:00
Tim Gross
fdfd9f50c2 multiregion: unblock and cancel RPCs 2020-06-17 11:02:26 -04:00
Tim Gross
905755a0ac multiregion: request structs 2020-06-17 11:00:34 -04:00
Tim Gross
f64f5a645c Multiregion structs
Initial struct definitions, jobspec parsing, validation, and conversion
between Nomad structs and API structs for multi-region deployments.
2020-06-17 11:00:14 -04:00
Chris Baker
2cbfc8356e Merge pull request #8168 from hashicorp/f-8158-add-preserve-counts
add `PreserveCounts` to `Job.Register`
2020-06-17 07:28:35 -05:00
James Rasell
67cefd0494 demo: Fix Vagrantfile when building staging VM for Cloud build.
Updates the base VM image used as well as fixes install failures
with Azure CLI and Docker.
2020-06-17 12:22:24 +02:00
Michael Lange
5bb3c434d8 Select all shortcut support for the streaming file component 2020-06-16 12:51:52 -07:00
Chris Baker
0284698474 changelog for -persist-counts, #8168 2020-06-16 18:45:29 +00:00