Mahmood Ali
c0aa06d9c7
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
7a33a75449
cli: jobs allow querying jobs in all namespaces
2020-06-17 16:31:01 -04:00
Mahmood Ali
e784fe331a
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
81ae581da6
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
fe9d654640
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
ca5161a8b7
changelog for multiregion deployments ( #8188 )
2020-06-17 14:14:04 -04:00
Chris Baker
1d40ab23b7
docs: updated website to this change
2020-06-17 17:44:58 +00:00
Chris Baker
cd903218f7
added changelog entry and satisfied make check
2020-06-17 17:43:45 +00:00
Chris Baker
ab2b15d8cb
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
6da9b2498c
Merge pull request #8184 from hashicorp/f-multiregion_oss
...
Multiregion Deployments (OSS integration)
2020-06-17 12:09:42 -04:00
Tim Gross
6b1cb61888
remove test for ent-only behavior
2020-06-17 11:27:29 -04:00
Tim Gross
c14a75bfab
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
fd50b12ee2
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
7b12445f29
multiregion: change AutoRevert to OnFailure
2020-06-17 11:05:45 -04:00
Tim Gross
5c4d0a73f4
start all but first region deployment in paused state
2020-06-17 11:05:34 -04:00
Tim Gross
48e9f75c1e
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
b09b7a2475
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
161bcd9479
use constants from http package
2020-06-17 11:04:02 -04:00
Tim Gross
b93efc16d5
multiregion CLI: nomad deployment unblock
2020-06-17 11:03:44 -04:00
Drew Bailey
9263fcb0d3
Multiregion deploy status and job status CLI
2020-06-17 11:03:34 -04:00
Tim Gross
473a0f1d44
multiregion: unblock and cancel RPCs
2020-06-17 11:02:26 -04:00
Tim Gross
ede3a4f1c4
multiregion: request structs
2020-06-17 11:00:34 -04:00
Tim Gross
6851024925
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
a7e0f021bc
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
1b94305e21
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
562a957666
Select all shortcut support for the streaming file component
2020-06-16 12:51:52 -07:00
Chris Baker
6a43aa31a5
changelog for -persist-counts, #8168
2020-06-16 18:45:29 +00:00
Chris Baker
de8a46b0f8
added -preserve-counts to job run
CLI, updated website
2020-06-16 18:45:28 +00:00
Chris Baker
9fc66bc1aa
support in API client and Job.Register RPC for PreserveCounts
2020-06-16 18:45:28 +00:00
Chris Baker
377f881fbd
removed api.RegisterJobRequest in favor of api.JobRegisterRequest
...
modified `job inspect` and `job run -output` to use anonymous struct to keep previous behavior
2020-06-16 18:45:17 +00:00
Chris Baker
1e3563e08c
wip: added PreserveCounts to struct.JobRegisterRequest, development test for Job.Register
2020-06-16 18:45:17 +00:00
Chris Baker
b22b2bf968
wip: developmental test to preserve existing task group counts during job update
2020-06-16 18:45:17 +00:00
Michael Lange
c62db754a3
Server monitor page
2020-06-16 10:23:36 -07:00
Michael Lange
f745ce4269
Test coverage for new features of the server detail page
2020-06-16 10:23:36 -07:00
Michael Lange
56e66e76e6
Redesign the server detail page to be inline with everything else
2020-06-16 10:23:36 -07:00
Michael Lange
3381c835b1
Add nested monitor route to servers/server
2020-06-16 10:23:36 -07:00
Michael Lange
e6928cb01d
Refactor the servers/server pages to match the subnav style of nested pages
2020-06-16 10:23:36 -07:00
Michael Lange
bb499bba72
Show a helpful forbidden message when monitor access is not authorized
2020-06-16 10:23:36 -07:00
Michael Lange
129ccec82c
New component version of the forbidden-message partial
2020-06-16 10:23:36 -07:00
Michael Lange
58df659fdb
Ability for agent:read
2020-06-16 10:23:36 -07:00
Michael Lange
c080def72e
Test coverage for the client monitor page
2020-06-16 10:23:36 -07:00
Michael Lange
cfee0f74a4
Test coverage for the AgentMonitor component
2020-06-16 10:23:36 -07:00
Michael Lange
1abbce97ac
Temporary helpers for ember-power-select
...
These are based on the source code for selectChoose. I would have liked
to have used selectChoose, but the implementation has two await
settled()s in it which prevented me from writing the tests I needed to
write.
These new extension helpers separate selectChoose into two pieces so
logic can be placed between the two async actions.
2020-06-16 10:23:36 -07:00
Michael Lange
c515a59b44
Preserve the log when switching log levels on monitor
2020-06-16 10:23:36 -07:00
Michael Lange
6cb83c6297
Inline-block the buttons to remove weird text-flow spacing
2020-06-16 10:23:36 -07:00
Michael Lange
cdc7db07c6
Refactor AgentMonitor levels handling to be simpler
2020-06-16 10:23:36 -07:00
Michael Lange
38af76e277
Reimplement synchronizeScrollPosition in a way that actually works
2020-06-16 10:23:36 -07:00
Michael Lange
ca99ec774b
Implement the log streaming portion of the AgentMonitor component
2020-06-16 10:23:36 -07:00
Michael Lange
e0fbd88d26
Monitor component and query param interaction
2020-06-16 10:23:35 -07:00
Michael Lange
10e1371d34
Create new monitor route for clients
2020-06-16 10:23:35 -07:00