VaultKVContext context returning incomplete
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ceph OSD Charm |
Triaged
|
High
|
Unassigned | ||
Charm Helpers |
Invalid
|
Undecided
|
Unassigned | ||
OpenStack Nova Compute Charm |
Triaged
|
High
|
Unassigned | ||
OpenStack Swift Storage Charm |
Triaged
|
High
|
Unassigned |
Bug Description
The VaultKVContext context is marking itself incomplete.
The environment:
CRM
vault in HA in one model
nova-cmopute with encrypt=True in another model
barbican-vault and nova-compute related to the secrets-storage relation in CRM
barbican-vault successfully completes its secrets-storage
Inspecting one of the nova-compute nodes:
Data including the token is on the relation from only one vault node, the leader. The other vault nodes send only their ip information.
In the nova-compute juju log we see the following:
2020-06-19 19:26:22 DEBUG juju-log secrets-
2020-06-19 19:26:34 INFO juju-log secrets-
Unfortunately, the VaultKVContext is a binary black box with very little logging [0]. So it is unclear if the problem is a failure with tokens like bug 1849323 [1] or if the problem is only one vault unit sends its data.
[0] https:/
[1] https:/
tags: | added: cpe-onsite |
Changed in charm-nova-compute: | |
importance: | Critical → Wishlist |
tags: | added: cross-model |
Changed in charm-helpers: | |
importance: | Critical → Wishlist |
Changed in charm-helpers: | |
importance: | Wishlist → High |
Changed in charm-ceph-osd: | |
importance: | Wishlist → High |
Changed in charm-nova-compute: | |
importance: | Wishlist → High |
Changed in charm-swift-storage: | |
importance: | Wishlist → High |
Changed in charm-helpers: | |
importance: | High → Undecided |
Changed in charm-nova-compute: | |
milestone: | 20.08 → none |
Changed in charm-swift-storage: | |
milestone: | 20.08 → none |
Changed in charm-ceph-osd: | |
milestone: | 20.08 → none |
Initial thoughts and triage
I am not convinced that CMR is the problem.
I also think "vault relation's interface, secrets-storage, is related but has no units in the relation." message may just be the assess status functions generic interpretation of the incomplete context.
The root problem is VaultKVContext returning incomplete.
TRIAGE:
Since there has been recent work from LP bug#1849323 [1][0] that is the first place we should check.
Setup an environment with vault and nova-compute with encrypt=True related to secrets-storage.
Utilize the refresh-secrets action of vault to kick the secrets-storage relation.
Confirm or dis-confirm bad tokens
Confirm or dis-confirm missing data from non-leader vault nodes
If this does not produce results setup the CMR env.
[0] https:/ /github. com/juju/ charm-helpers/ blob/master/ charmhelpers/ contrib/ openstack/ vaultlocker. py#L39 /bugs.launchpad .net/charm- barbican- vault/+ bug/1849323
[1] https:/