I have done a test to double check how the vault charm (and interface-vault-kv) currently behaves when the vault leader switches. output is here - https://paste.ubuntu.com/p/gRmGCGvHDt/
What I see is: 3 units, 1 leader (vault/2), only leader is presenting the tokens.
Then I poweroff vault/2, the leader switches to vault/1 and I see: 3 units, 1 leader (now vault/1) and vault/1 is presenting the same settings that were previously set by vault/2.
Then I poweron vault/2 again and what i see is vault/0 still presents nothing and vault/1 and vault/2 present identical settings and there are no errors.
This is true for both ceph-osd and barbican-vault i.e. a classic and a reactive charm or put another way, one using [1] and one using [2]
I have done a test to double check how the vault charm (and interface-vault-kv) currently behaves when the vault leader switches. output is here - https:/ /paste. ubuntu. com/p/gRmGCGvHD t/
What I see is: 3 units, 1 leader (vault/2), only leader is presenting the tokens.
Then I poweroff vault/2, the leader switches to vault/1 and I see: 3 units, 1 leader (now vault/1) and vault/1 is presenting the same settings that were previously set by vault/2.
Then I poweron vault/2 again and what i see is vault/0 still presents nothing and vault/1 and vault/2 present identical settings and there are no errors.
This is true for both ceph-osd and barbican-vault i.e. a classic and a reactive charm or put another way, one using [1] and one using [2]
[1] https:/ /github. com/juju/ charm-helpers/ blob/master/ charmhelpers/ contrib/ openstack/ vaultlocker. py /github. com/openstack- charmers/ charm-interface -vault- kv/
[2] https:/