open-vault/physical/raft
Calvin Leung Huang c45bdca0b3
raft: add support for using backend for ha_storage (#9193)
* raft: initial work on raft ha storage support

* add note on join

* add todo note

* raft: add support for bootstrapping and joining existing nodes

* raft: gate bootstrap join by reading leader api address from storage

* raft: properly check for raft-only for certain conditionals

* raft: add bootstrap to api and cli

* raft: fix bootstrap cli command

* raft: add test for setting up new cluster with raft HA

* raft: extend TestRaft_HA_NewCluster to include inmem and consul backends

* raft: add test for updating an existing cluster to use raft HA

* raft: remove debug log lines, clean up verifyRaftPeers

* raft: minor cleanup

* raft: minor cleanup

* Update physical/raft/raft.go

Co-authored-by: Brian Kassouf <briankassouf@users.noreply.github.com>

* Update vault/ha.go

Co-authored-by: Brian Kassouf <briankassouf@users.noreply.github.com>

* Update vault/ha.go

Co-authored-by: Brian Kassouf <briankassouf@users.noreply.github.com>

* Update vault/logical_system_raft.go

Co-authored-by: Brian Kassouf <briankassouf@users.noreply.github.com>

* Update vault/raft.go

Co-authored-by: Brian Kassouf <briankassouf@users.noreply.github.com>

* Update vault/raft.go

Co-authored-by: Brian Kassouf <briankassouf@users.noreply.github.com>

* address feedback comments

* address feedback comments

* raft: refactor tls keyring logic

* address feedback comments

* Update vault/raft.go

Co-authored-by: Alexander Bezobchuk <alexanderbez@users.noreply.github.com>

* Update vault/raft.go

Co-authored-by: Alexander Bezobchuk <alexanderbez@users.noreply.github.com>

* address feedback comments

* testing: fix import ordering

* raft: rename var, cleanup comment line

* docs: remove ha_storage restriction note on raft

* docs: more raft HA interaction updates with migration and recovery mode

* docs: update the raft join command

* raft: update comments

* raft: add missing isRaftHAOnly check for clearing out state set earlier

* raft: update a few ha_storage config checks

* Update command/operator_raft_bootstrap.go

Co-authored-by: Vishal Nayak <vishalnayak@users.noreply.github.com>

* raft: address feedback comments

* raft: fix panic when checking for config.HAStorage.Type

* Update vault/raft.go

Co-authored-by: Alexander Bezobchuk <alexanderbez@users.noreply.github.com>

* Update website/pages/docs/commands/operator/raft.mdx

Co-authored-by: Alexander Bezobchuk <alexanderbez@users.noreply.github.com>

* raft: remove bootstrap cli command

* Update vault/raft.go

Co-authored-by: Brian Kassouf <briankassouf@users.noreply.github.com>

* Update vault/raft.go

Co-authored-by: Brian Kassouf <briankassouf@users.noreply.github.com>

* raft: address review feedback

* raft: revert vendored sdk

* raft: don't send applied index and node ID info if we're HA-only

Co-authored-by: Brian Kassouf <briankassouf@users.noreply.github.com>
Co-authored-by: Alexander Bezobchuk <alexanderbez@users.noreply.github.com>
Co-authored-by: Vishal Nayak <vishalnayak@users.noreply.github.com>
2020-06-23 12:04:13 -07:00
..
logstore Fixed a bunch of typos (#7146) 2019-07-18 21:10:15 -04:00
chunking_test.go Add additional raft chunk test (#7192) 2019-07-29 14:11:46 -07:00
fsm.go Improve the performance of snapshot installs by using rename (#9247) 2020-06-23 11:08:30 -07:00
fsm_test.go Improve raft write performance by utilizing FSM Batching (#7527) 2019-10-14 09:25:07 -06:00
io.go Fix code copied from gogo using a different proto import (#9009) 2020-05-15 13:45:22 -07:00
raft.go raft: add support for using backend for ha_storage (#9193) 2020-06-23 12:04:13 -07:00
raft_test.go raft: add support for using backend for ha_storage (#9193) 2020-06-23 12:04:13 -07:00
raft_util.go Raft recovery peers non voter (#8681) 2020-04-03 19:13:51 -04:00
snapshot.go Improve the performance of snapshot installs by using rename (#9247) 2020-06-23 11:08:30 -07:00
snapshot_test.go raft: add support for using backend for ha_storage (#9193) 2020-06-23 12:04:13 -07:00
streamlayer.go raft: add support for using backend for ha_storage (#9193) 2020-06-23 12:04:13 -07:00
streamlayer_test.go storage/raft: Advertise the configured cluster address (#9008) 2020-05-18 18:22:25 -07:00
types.pb.go Update to latest go-kms-wrapping and fix protos/etcd (#8996) 2020-05-14 18:45:10 -04:00
types.proto Add chunking support to raft 2019-07-22 12:17:58 -04:00
varint.go Fix code copied from gogo using a different proto import (#9009) 2020-05-15 13:45:22 -07:00