I’m following the guide at Storage Migration tutorial - Consul to Integrated Storage to migrate our Vault/Consul installation to use integrated storage.
I’ve shut down our three Vault nodes and then used a migrate.hcl
file to run vault on one node to migrate the keys from Consul to the configured path.
The single node is then started up. We’re using AWS KMS to auto-unseal. However, when I try to start up the next node, it fails to join the raft cluster:
Dec 29 14:23:45 ip-172-31-10-101 vault[32704]: 2020-12-29T14:23:45.350Z [INFO] core: stored unseal keys supported, attempting fetch
Dec 29 14:23:45 ip-172-31-10-101 vault[32704]: 2020-12-29T14:23:45.351Z [WARN] failed to unseal core: error="stored unseal keys are supported, but none were found"
Dec 29 14:23:45 ip-172-31-10-101 vault[32704]: 2020-12-29T14:23:45.351Z [INFO] core: raft retry join initiated
Dec 29 14:23:45 ip-172-31-10-101 vault[32704]: 2020-12-29T14:23:45.351Z [INFO] core: security barrier not initialized
Dec 29 14:23:45 ip-172-31-10-101 vault[32704]: 2020-12-29T14:23:45.352Z [INFO] core: security barrier not initialized
Dec 29 14:23:45 ip-172-31-10-101 vault[32704]: 2020-12-29T14:23:45.352Z [INFO] core: attempting to join possible raft leader node: leader_addr=https://<redacted>:8200
Dec 29 14:23:45 ip-172-31-10-101 vault[32704]: 2020-12-29T14:23:45.665Z [WARN] core: join attempt failed: error="could not retrieve raft bootstrap package"
This is the output of vault status
on the first node:
Key Value
--- -----
Recovery Seal Type shamir
Initialized true
Sealed false
Total Recovery Shares 1
Threshold 1
Version 1.6.1
Storage Type raft
Cluster Name vault-cluster-4ab2cc7b
Cluster ID 3d4caa24-e92e-bf89-3b63-af7691172106
HA Enabled true
HA Cluster https://<redacted>:8201
HA Mode standby
Active Node Address https://<redacted>:8200
Raft Committed Index 590502
Raft Applied Index 590501
On the second node, however, it is this:
Key Value
--- -----
Recovery Seal Type awskms
Initialized false
Sealed true
Total Recovery Shares 0
Threshold 0
Unseal Progress 0/0
Unseal Nonce n/a
Version 1.6.1
Storage Type raft
HA Enabled true
I’ve tried using vault operator raft join
and also adding a retry_join
stanza to the configuration but it doesn’t make any difference.