failed to retry join raft cluster / error during raft bootstrap init call: Error making API request: unsupported path
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
vault-charm |
New
|
Undecided
|
Unassigned |
Bug Description
After an upgrade from juju 2.9 -> 3.1 the unit vault/2 had a problem and I deployed the unit again. Unfortunately, the unit could not join the cluster
The third vault unit (before: vault/2) failed to join raft cluster.
2 Units are ready and active.
---
Apr 24 00:01:52 juju-b9f7b8-
Apr 24 00:01:52 juju-b9f7b8-
Apr 24 00:01:52 juju-b9f7b8-
Apr 24 00:01:52 juju-b9f7b8-
Apr 24 00:01:52 juju-b9f7b8-
Apr 24 00:01:52 juju-b9f7b8-
Apr 24 00:01:52 juju-b9f7b8-
Apr 24 00:01:52 juju-b9f7b8-
Apr 24 00:01:52 juju-b9f7b8-
Apr 24 00:01:52 juju-b9f7b8-
Apr 24 00:01:52 juju-b9f7b8-
Apr 24 00:01:53 juju-b9f7b8-
---
Model Controller Cloud/Region Version SLA Timestamp
dbi7-c1 dbi7-prod dbi7/default 3.1.2 unsupported 10:12:41Z
App Version Status Scale Charm Channel Rev Exposed Message
vault 1.8.8 active 2 vault 1.8/stable 108 no Unit is ready (active: true, mlock: disabled)
vault-hacluster blocked 2 hacluster latest/edge 118 no Insufficient peer units for ha cluster (require 3)
vault-mysql-router 8.0.32 active 2 mysql-router 8.0/stable 35 no Unit is ready
---
vault status (leader)
Key Value
--- -----
Seal Type shamir
Initialized true
Sealed false
Total Shares 5
Threshold 3
Version 1.8.8
Cluster Name vault-cluster-
Cluster ID 0ffa6358-
HA Enabled false
description: | updated |
Tested to add a third unit today again. Vault stuck in "Vault needs to be initialized".
Executing changes:
- set application options for vault-hacluster
- add unit vault/5 to 2/lxd/0
vault/5 blocked executing 2/lxd/49 10.105.121.85 8200/tcp Vault needs to be initialized mysql-router/ 5 active idle 10.105.121.85 Unit is ready
vault-hacluster/5 active idle 10.105.121.85 Unit is ready and clustered
vault-
debug-log shows "Failed to join raft cluster: HTTPConnectionP ool(host= '127.0. 0.1', port=8220): Read timed out": 5.juju- log certificates:439: Invoking reactive handler: reactive/ vault_handlers. py:474: cluster_ connected 5.juju- log certificates:439: Invoking reactive handler: reactive/ vault_handlers. py:516: join_raft_ peers 5.juju- log certificates:439: Joining raft cluster address http:// 10.105. 121.5:8200 5.juju- log certificates:439: Failed to join raft cluster: HTTPConnectionP ool(host= '127.0. 0.1', port=8220): Read timed out. (read timeout=30) 5.juju- log certificates:439: Joining raft cluster address http:// 10.105. 121.6:8200 5.juju- log certificates:439: Failed to join raft cluster: HTTPConnectionP ool(host= '127.0. 0.1', port=8220): Read timed out. (read timeout=30) 5.juju- log certificates:439: Invoking reactive handler: reactive/ vault_handlers. py:690: send_vault_ url_and_ ca 5.juju- log certificates:439: Use of remote_binding in publish_url is deprecated. See LP Bug #1895185 5.juju- log certificates:439: Invoking reactive handler: reactive/ vault_handlers. py:736: prime_assess_ status 5.juju- log certificates:439: Invoking reactive handler: hooks/relations /tls-certificat es/provides. py:45:joined: certificates 5.juju- log certificates:439: Reactive main running for hook certificates- relation- joined 5.juju- log certificates:439: Unable to find implementation for relation: peers of vault-ha 5.juju- log certificates:439: Initializing Leadership Layer (is follower) 5.juju- log certificates:439: Initializing Snap Layer 5.juju- log certificates:439: Invoking reactive handler: reactive/ vault_handlers. py:294: configure_ vault_raft 5.juju- log certificates:439: Making dir /var/snap/ vault/common/ data/ root:root 700 5.juju- log certificates:439: Invoking reactive handler: reactive/ vault_handlers. py:353: mysql_setup 5.juju- log certificates:439: Invoking reactive handler: reactive/ vault_handlers. py:384: database_ not_ready
...
unit-vault-5: 22:09:13 INFO unit.vault/
unit-vault-5: 22:09:13 INFO unit.vault/
unit-vault-5: 22:09:13 INFO unit.vault/
unit-vault-5: 22:09:43 WARNING unit.vault/
unit-vault-5: 22:09:43 INFO unit.vault/
unit-vault-5: 22:10:13 WARNING unit.vault/
unit-vault-5: 22:10:13 INFO unit.vault/
unit-vault-5: 22:10:13 WARNING unit.vault/
unit-vault-5: 22:10:13 INFO unit.vault/
unit-vault-5: 22:10:13 INFO unit.vault/
unit-vault-5: 22:09:12 INFO unit.vault/
unit-vault-5: 22:09:12 ERROR unit.vault/
unit-vault-5: 22:09:13 INFO unit.vault/
unit-vault-5: 22:09:13 INFO unit.vault/
unit-vault-5: 22:09:13 INFO unit.vault/
unit-vault-5: 22:09:13 INFO unit.vault/
unit-vault-5: 22:09:13 INFO unit.vault/
unit-vault-5: 22:09:13 INFO unit.vault/
...
syslog: 2-lxd-49 vault[6220]: 20...
...
Apr 24 22:18:54 juju-b9f7b8-