I have a Vault 1.9 Raft cluster, two nodes.
vault01 status:
Key Value
Recovery Seal Type shamir
Initialized true
Sealed false
Total Recovery Shares 1
Threshold 1
Version 1.9.0
Storage Type raft
Cluster Name vault-cluster-50898c55
Cluster ID 248e73f2-0a23-e66d-9070-0eb7a5cb49b5
HA Enabled true
HA Cluster https://vault01:8201
HA Mode active
Active Since 2022-01-04T19:19:09.496657694Z
Raft Committed Index 129
Raft Applied Index 129
vault02 status:
Key Value
Recovery Seal Type shamir
Initialized true
Sealed false
Total Recovery Shares 1
Threshold 1
Version 1.9.0
Storage Type raft
Cluster Name vault-cluster-50898c55
Cluster ID 248e73f2-0a23-e66d-9070-0eb7a5cb49b5
HA Enabled true
HA Cluster https://vault01:8201
HA Mode standby
Active Node Address https://vault01:8200
Raft Committed Index 130
Raft Applied Index 129
Trying to simulate a failure, stopped vault01 service.
vault01 status:
Error checking seal status: Get “https://127.0.0.1:8200/v1/sys/seal-status”: dial tcp 127.0.0.1:8200: connect: connection refused
vault02 status:
Key Value
Recovery Seal Type shamir
Initialized true
Sealed false
Total Recovery Shares 1
Threshold 1
Version 1.9.0
Storage Type raft
Cluster Name vault-cluster-50898c55
Cluster ID 248e73f2-0a23-e66d-9070-0eb7a5cb49b5
HA Enabled true
HA Cluster https://vault01:8201
HA Mode standby
Active Node Address https://vault01:8200
Raft Committed Index 130
Raft Applied Index 129
UI shows a message:
This is a standby Vault node but can’t communicate with the active node via request forwarding. Sign in at the active node to use the Vault UI.
vault02 journalctl logs shows:
[WARN] storage.raft: Election timeout reached, restarting election
[INFO] storage.raft: entering candidate state: node=“Node at vault02:8201 [Candidate]” term=395
[ERROR] storage.raft: failed to make requestVote RPC: target="{Voter vault01 https://127.0.0.1:8201}" error=“dial tcp: address https://127.0.0.1:8201: too many colons in address”
“too many colons in address” looks like some error from raft module trying to split cluster address (- The Go Programming Language line 196).
Tried putting some [ ] in hcl config file for addresses but same issue.
Anyone had this before?
Thanks.