Commit Graph

19345 Commits

Author SHA1 Message Date
Tim Gross
ccdfd6170c fix params for Agent.Host client RPC (#8795)
The parameters for the receiving side of the Agent.Host client RPC did not
take the arguments serialized at the server side. This results in a panic.
2020-08-31 17:14:26 -04:00
Jasmine Dahilig
8faece3bd7 Merge pull request #8390 from hashicorp/lifecycle-poststart-hook
task lifecycle poststart hook
2020-08-31 13:53:24 -07:00
Jasmine Dahilig
81cad55d40 task lifecycle poststart: code review fixes 2020-08-31 13:22:41 -07:00
Drew Bailey
2740b48503 Merge pull request #8793 from hashicorp/debug-cli/run-intervals
run commands for duration and interval without needing to specify server or node
2020-08-31 16:07:26 -04:00
Drew Bailey
0a94c62ca4 run commands for duration and interval without needing to specify servers or nodes 2020-08-31 14:13:03 -04:00
Lang Martin
cce82a2e17 command/plugin_status_csi: plugin status :id keeps expected count 2020-08-31 13:56:54 -04:00
Drew Bailey
46d9cf4ee4 Merge pull request #8792 from hashicorp/debug-cli/add-license
add license info to operator debug command
2020-08-31 13:39:40 -04:00
Drew Bailey
41fa0daae2 add license info to operator debug command 2020-08-31 13:22:23 -04:00
Mahmood Ali
5d61167914 Merge pull request #8719 from hashicorp/f-nomad-raft-util
add helper commands for debugging state
2020-08-31 09:10:34 -04:00
Mahmood Ali
5d5810b16a Add a linter for raftutil message type mapping 2020-08-31 08:46:28 -04:00
Mahmood Ali
89a2f4371c raft debug commands are low-level internal commands 2020-08-31 08:45:59 -04:00
Mahmood Ali
cd7ac5c1ee Apply suggestions from code review
Co-authored-by: Michael Schurter <mschurter@hashicorp.com>
2020-08-31 08:45:59 -04:00
Mahmood Ali
1896b8f7dd add helper commands for debugging state 2020-08-31 08:45:59 -04:00
Mahmood Ali
4e93e4bc4e Merge pull request #8749 from hashicorp/b-old-non-deployment
Handle migration of non-deployment jobs
2020-08-30 20:54:27 -04:00
Mahmood Ali
5ca8a33aa5 Merge pull request #8787 from Clivern/patch-1
Docs: update acl guide broken link
2020-08-29 17:59:32 -04:00
Mahmood Ali
32d635a4c2 Merge pull request #8778 from hashicorp/b-non-effective-copy
Fix accidental broken Copy
2020-08-29 17:57:18 -04:00
Mahmood Ali
aff2082663 Merge pull request #8784 from jf/fix_cmd_name
Fix cmd.Name() for NodeEligibilityCommand
2020-08-29 17:57:10 -04:00
Ahmed
9d11b3273c update acl guide link 2020-08-29 21:29:49 +02:00
Jeffrey 'jf' Lim
4f0cfbd752 Fix cmd.Name() for NodeEligibilityCommand 2020-08-29 22:45:42 +08:00
Kevin Pruett
32ffcb38cb Merge pull request #8756 from hashicorp/pruett.search-component
Replace local search with @hashicorp/react-search
2020-08-28 15:29:24 -04:00
Mahmood Ali
a80d9bcb0a Fix accidental broken clones
Fix CSIMountOptions.Copy() and VolumeRequest.Copy() where they
accidentally returned a reference to self rather than a deep copy.

`&(*ref)` in Golang apparently equivalent to plain `&ref`.
2020-08-28 15:29:22 -04:00
Kevin Pruett
a8e58662d8 Replace local search with @hashicorp/react-search 2020-08-28 15:15:35 -04:00
Tim Gross
5a01ab312d MRD: move 'job stop -global' handling into RPC (#8776)
The initial implementation of global job stop for MRD looped over all the
regions in the CLI for expedience. This changeset includes the OSS parts of
moving this into the RPC layer so that API consumers don't have to implement
this logic themselves.
2020-08-28 14:28:13 -04:00
Tim Gross
2adcf548bc changelog: global stop, misc bug fix (#8777) 2020-08-28 14:06:36 -04:00
Tim Gross
5888053da4 structs: filter NomadTokenID from job diff (#8773)
Multiregion deployments use the `NomadTokenID` to allow the deploymentwatcher
to send RPCs between regions with the original submitter's ACL token. This ID
should be filtered from diffs so that it doesn't cause a difference for
purposes of job plans.
2020-08-28 13:40:51 -04:00
Lang Martin
ec3b2bf4a5 command/operator_debug: mkdir before storing agent-host (#8707)
The api calls were reordered, the new order omits the
`agent-host.json` result by fetching it before the directory is
created.
2020-08-28 11:58:06 -04:00
Buck Doyle
0c9b2e417b Add exec heartbeat keepalive (#8759)
This closes #8727, thanks to @jfcantu for the suggestion.
The CLI implementation of exec already has a 10-second
heartbeat so this mirrors that:
https://github.com/hashicorp/nomad/blob/v0.12.3/api/allocations.go#L161-L173
2020-08-28 10:13:33 -05:00
Michael Lange
147a61c4a5 Merge pull request #8771 from hashicorp/f-ui/mirage-consistency
UI: Clean up erroneous and redundant mirage things
2020-08-28 08:12:07 -07:00
Tim Gross
99a57ea69b docs: alphabetize community task driver listing (#8774)
Everything else in the docs sidebars is alphabetized, so do it here too.
2020-08-28 11:05:20 -04:00
Michael Lange
c7da3d377d Clean up erroneous and redundant mirage things 2020-08-27 17:58:24 -07:00
Lang Martin
5028ddd70d CHANGELOG: use consistent indentation for 0.12.4 2020-08-27 18:00:55 -04:00
Lang Martin
ed81d99505 CHANGELOG: csi expected counts 2020-08-27 18:00:55 -04:00
Lang Martin
dd7016b847 csi: plugins track jobs in addition to allocations, and use job information to set expected counts (#8699)
* nomad/structs/csi: add explicit job support
* nomad/state/state_store: capture job updates directly
* api/nodes: CSIInfo needs the AllocID
* command/agent/csi_endpoint: AllocID was missing
Co-authored-by: Tim Gross <tgross@hashicorp.com>
2020-08-27 17:20:00 -04:00
Tim Gross
faa54b6288 changelog: batch of bug fixes for 0.12.4 (#8767) 2020-08-27 16:22:46 -04:00
Tim Gross
78c99bf34f lint: check for go.mod or go.sum drift (#8765) 2020-08-27 16:21:07 -04:00
Tim Gross
7fdd6431b0 fix committed go.sum merge conflict (#8764) 2020-08-27 15:35:52 -04:00
Seth Hoenig
c5c332cf76 Merge pull request #8761 from hashicorp/b-consul-op-token-check
consul/connect: make use of task kind to determine service name in consul token checks
2020-08-27 14:08:33 -05:00
Tim Gross
a79d679236 MRD: deregister regions that are dropped on update (#8763)
This changeset is the OSS hooks for what will be implemented in ENT.
2020-08-27 14:54:45 -04:00
Tim Gross
63db66b1c4 tests: allow API test server to respect NOMAD_TEST_LOG_LEVEL (#8760) 2020-08-27 14:36:17 -04:00
Seth Hoenig
65ef854880 consul/connect: make use of task kind to determine service name in consul token checks
When consul.allow_unauthenticated is set to false, the job_endpoint hook validates
that a `-consul-token` is provided and validates the token against the privileges
inherent to a Consul Service Identity policy for all the Connect enabled services
defined in the job.

Before, the check was assuming the service was of type sidecar-proxy. This fixes the
check to use the type of the task so we can distinguish between the different connect
types.
2020-08-27 12:14:40 -05:00
Drew Bailey
4b7aee5db9 Merge pull request #8758 from hashicorp/drewbailey-patch-1
fix changelog entry placement
2020-08-27 11:47:49 -04:00
Drew Bailey
10cb2415b9 fix changelog entry placement 2020-08-27 11:47:01 -04:00
Chris Baker
2d04019dfa Merge pull request #8753 from hashicorp/b-scaling-policy-delete-job-prefix
resolve prefix bugs around job scaling policies
2020-08-27 10:04:21 -05:00
Chris Baker
1ea550d08e state_store/fix the prefix bugs for scaling policies documented in 1a9318 2020-08-27 04:25:37 +00:00
Chris Baker
1a9318ad6c documenting tests for prefix bugs around job scaling policies 2020-08-27 03:22:13 +00:00
Tim Gross
39925e70fc e2e: minor TF refactor to split out vars and outputs (#8752) 2020-08-26 17:00:36 -04:00
Seth Hoenig
48ae1de4a8 Merge pull request #8709 from hashicorp/f-cc-ingress
consul/connect: add initial support for ingress gateways
2020-08-26 15:50:08 -05:00
Tim Gross
42312bc6fa e2e: move systemd unit files into Packer build (#8751) 2020-08-26 16:45:09 -04:00
Seth Hoenig
a46ba7f4ac Merge branch 'master' into f-cc-ingress 2020-08-26 15:31:05 -05:00
Seth Hoenig
1dca7eb688 consul/connect: use context cancel more safely 2020-08-26 14:23:31 -05:00