Open erhlee-bird opened 2 years ago
Hi there! I think your other raft nodes may not have all of the information they need in order to join your cluster. For example, you need to have TLS certificates installed that tell the raft nodes which nodes are trusted to join. Please see this document and let me know if you have more questions: https://learn.hashicorp.com/tutorials/vault/raft-deployment-guide?in=vault/raft
Hi, I took all the TLS-related configuration out to try and remove at least one dimension of complexity.
Otherwise, the full config looks like this:
disable_mlock = true
log_level = "trace"
ui = true
listener "tcp" {
address = "[::]:8200"
cluster_address = "[::]:8201"
tls_cert_file = "/vault/config/tls.crt"
tls_client_ca_file = "/vault/config/ca.pem"
tls_disable = false
tls_key_file = "/vault/config/tls.key"
}
seal "azurekeyvault" {}
then from a script, I'm running
vault operator raft join \
-address="https://[${answer}]:8200" \
-ca-path=/vault/config/ca.pem \
-leader-ca-cert=@/vault/config/ca.pem \
-leader-client-cert=@/vault/config/tls.crt \
-leader-client-key=@/vault/config/tls.key
that's the point where I receive the response
Key Value
--- -----
Joined true
if I take away any of those flags TLS flags, the comms don't work at all so I at least know that the certs are working.
Describe the bug A clear and concise description of what the bug is.
I am attempting to set up a highly available cluster configuration with 3 nodes using raft integrated storage and auto unseal with Azure Key Vault.
2 of the 3 nodes fail to auto-unseal and also fail to join the raft cluster.
I believe that the uninitialized nodes joining the cluster face a chicken and egg problem where they cannot join an existing cluster without unsealing but cannot unseal without being initialized.
To Reproduce Steps to reproduce the behavior:
vault write ...
vault login....
After configuring the nodes, I run the following operations:
vault operator init
on just one node in the cluster. The node successfully auto-unseals itself and self-elects as leader.It eventually goes into standby after complaining about unstable configuration (presumably as the other nodes are unable to join).
vault operator raft join
from each of the other nodes. The command claims to report a success message but none of the nodes reflect a successful cluster join.The uninitialized nodes repeatedly print the following log messages:
Expected behavior A clear and concise description of what you expected to happen.
I expect the 3 nodes to all successfully auto-unseal and form a raft cluster.
Environment:
vault status
):vault version
):Vault Docker image:
vault:1.10.3
Vault server configuration file(s):
Additional context Add any other context about the problem here.