Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cassandra backend: error=gocql: no hosts available in the pool #12878

Closed
qk4l opened this issue Oct 20, 2021 · 1 comment · Fixed by #14973
Closed

Cassandra backend: error=gocql: no hosts available in the pool #12878

qk4l opened this issue Oct 20, 2021 · 1 comment · Fixed by #14973
Labels
dependencies Pull requests that update a dependency file storage/cassandra

Comments

@qk4l
Copy link
Contributor

qk4l commented Oct 20, 2021

Describe the bug
Vault do not restore connection with Cassandra nodes after there restart.
Then last of Cassandra node in cluster would restart Vault starts return 500 error

error="gocql: no hosts available in the pool

To Reproduce
Steps to reproduce the behavior:
1.Configure Vault to use Cassandra backend
2. Subsequence stop/start each Cassandra node in cluster based cluster availability
3. After last node stop Vault failed

Expected behavior
Vault should return Cassandra nodes to pool after there restore

Environment:

  • Vault Server Version (retrieve with vault status): 1.8.4

Vault server configuration file(s):

storage "cassandra" {
   hosts            = "1.cdb.vault.example.com,2.cdb.vault.example.com,3.cdb.vault.example.com"
   consistency      = "QUORUM"
   protocol_version = "2"
   keyspace = "vault"
   username = "admin"
   password = "PASSWORD"
   connection_timeout = "10"
   simple_retry_policy_retries = "3"
}

Additional context
It's a bug in apache/cassandra-gocql-driver#915

@qk4l qk4l changed the title Cassandra backend: error="gocql: no hosts available in the pool Cassandra backend: error=gocql: no hosts available in the pool Oct 20, 2021
@heatherezell heatherezell added storage/cassandra dependencies Pull requests that update a dependency file labels Oct 20, 2021
@voltbit
Copy link

voltbit commented Jan 20, 2022

Hi @hsimon-hashicorp would it be possible for the proposed fix to make it into the next release? We would benefit from it as we have observed the same behaviour.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file storage/cassandra
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants