-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Closed
Labels
Description
Describe the bug
Cannot unseal Vault 1.4.2 with raft storage using only one node.
To Reproduce
Start Vault with Raft storage, create cluster with 1 node and try to unseal.
CLI:
# export VAULT_ADDR=http://0.0.0.0:8200
# vault operator unseal
Unseal Key (will be hidden):
Error unsealing: Error making API request.
URL: PUT http://0.0.0.0:8200/v1/sys/unseal
Code: 500. Errors:
* cannot use unspecified IP with raft storage: 0.0.0.0:8201
UI:
Each attempt of unseal from UI cause this line in log - [WARN] core: cluster listener is already started
Expected behavior
This worked with Vault 1.4.0 and 1.4.1 versions.
Environment:
Vault 1.4.2
Vault server configuration file(s):
storage "raft" {
path = "/vault/data"
node_id = "node-1"
}
listener "tcp" {
address = "0.0.0.0:8200"
cluster_address = "0.0.0.0:8201"
tls_disable = true
}
disable_mlock = true
api_addr = "http://0.0.0.0:8200"
cluster_addr = "http://0.0.0.0:8201"
ui = trueAdditional context
It is probably regression from PR 9008.
jsutton, deepsh4h, pranayhere, vanadium23, stopsopa and 1 more