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 |
|
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 |
|
Tim Gross
|
8a66f11bb3
|
docs: describe required ACLs for all commands
|
2020-11-20 13:38:29 -05:00 |
|
Tim Gross
|
89f4f51746
|
command: remove -namespace from help options when not applicable
|
2020-11-19 16:28:39 -05:00 |
|
Nick Ethier
|
45b0ce9177
|
command: improve help text when invalid arguments are given
|
2018-04-18 12:02:11 -04:00 |
|
Kyle Havlovitz
|
254458703b
|
Add raft remove by id endpoint/command
|
2018-01-16 13:35:32 -08:00 |
|
Alex Dadgar
|
f6fbb36054
|
sync
|
2017-10-13 14:36:02 -07:00 |
|
Chelsea Holland Komlo
|
e88228cc5d
|
add global flags to autocomplete
|
2017-08-23 22:58:44 +00:00 |
|
Chelsea Holland Komlo
|
335cf888b0
|
use PredictAnything when an flag accepts an argument
|
2017-08-23 22:58:44 +00:00 |
|
Chelsea Holland Komlo
|
c1e5c7132a
|
enable autocompletion of flags
|
2017-08-23 22:57:07 +00:00 |
|
Alex Dadgar
|
24995a6749
|
Operator command/endpoint/documentation
|
2017-02-09 18:04:46 -08:00 |
|