Tim Gross
27caae2b2a
api: make attempting to remove peer by address a no-op ( #25599 )
...
In Nomad 1.4.0 we removed support for Raft Protocol v2 entirely. But the
`Operator.RemoveRaftPeerByAddress` RPC handler was left in place, along with its
supporting HTTP API and command line flags. Using this API will always result in
the Raft library error "operation not supported with current protocol version".
Unfortunately it's still possible in unit tests to exercise this code path, and
these tests are quite flaky. This changeset turns the RPC handler and HTTP API
into a no-op, removes the associated command line flags, and removes the flaky
tests. I've also cleaned up the test for `RemoveRaftPeerByID` to consolidate
test servers and use `shoenig/test`.
Fixes: https://hashicorp.atlassian.net/browse/NET-12413
Ref: https://github.com/hashicorp/nomad/pull/13467
Ref: https://developer.hashicorp.com/nomad/docs/upgrade/upgrade-specific#raft-protocol-version-2-unsupported
Ref: https://github.com/hashicorp/nomad-enterprise/actions/runs/13201513025/job/36855234398?pr=2302
2025-04-10 09:19:25 -04:00
Charlie Voiselle
30ab8897d2
deps: Switch from mitchellh/cli to hashicorp/cli ( #19321 )
...
Co-authored-by: James Rasell <jrasell@hashicorp.com >
2024-12-19 15:41:11 +00:00
Seth Hoenig
4d83733909
tests: swap testify for test in more places ( #20028 )
...
* tests: swap testify for test in plugins/csi/client_test.go
* tests: swap testify for test in testutil/
* tests: swap testify for test in host_test.go
* tests: swap testify for test in plugin_test.go
* tests: swap testify for test in utils_test.go
* tests: swap testify for test in scheduler/
* tests: swap testify for test in parse_test.go
* tests: swap testify for test in attribute_test.go
* tests: swap testify for test in plugins/drivers/
* tests: swap testify for test in command/
* tests: fixup some test usages
* go: run go mod tidy
* windows: cpuset test only on linux
2024-02-29 12:11:35 -06:00
hashicorp-copywrite[bot]
a9d61ea3fd
Update copyright file headers to BUSL-1.1
2023-08-10 17:27:29 -05:00
hashicorp-copywrite[bot]
f005448366
[COMPLIANCE] Add Copyright and License Headers
2023-04-10 15:36:59 +00:00
Seth Hoenig
b242957990
ci: swap ci parallelization for unconstrained gomaxprocs
2022-03-15 12:58:52 -05:00
James Rasell
f5567b3261
cli: move tests to use NewMockUi func.
2020-10-05 16:07:41 +02:00
Kyle Havlovitz
254458703b
Add raft remove by id endpoint/command
2018-01-16 13:35:32 -08:00
Alex Dadgar
a77c6a4f71
Parallel
2017-07-20 21:24:21 -07:00
Alex Dadgar
da25a3d5ce
Switch to in-process agent
2017-07-20 21:07:32 -07:00
Alex Dadgar
24995a6749
Operator command/endpoint/documentation
2017-02-09 18:04:46 -08:00