Skip to content

Issue with unseal using raft storage #9071

@igor-nikiforov

Description

@igor-nikiforov

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 = true

Additional context
It is probably regression from PR 9008.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions