You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We plan on using Vault as a secret store for multiple different charmed applications by relating them through the vault-kv interface. The expectation is that each application would get its own mount point when relating to the same vault-k8s charm. The charm currently goes into an error state with the below output from the logs.
Deploy two separate vault-kv requirer charms (the one from the integration tests will do)
Relate the requirer charms to the vault-k8s charm.
Environment
Operating system: Ubuntu 22.04.4 LTS
Juju CLI: 3.5.2-genericlinux-amd64
Juju agent: 3.5.2
Charm revision: 256
microk8s: v1.25.16
Relevant log output
unit-vault-k8s-0: 00:28:13 ERROR unit.vault-k8s/0.juju-log vault-peers:17: Uncaught exception whilein charm code:
Traceback (most recent call last):
File "/var/lib/juju/agents/unit-vault-k8s-0/charm/./src/charm.py", line 1569, in<module>
main(VaultCharm)
File "/var/lib/juju/agents/unit-vault-k8s-0/charm/venv/ops/main.py", line 548, in main
manager.run()
File "/var/lib/juju/agents/unit-vault-k8s-0/charm/venv/ops/main.py", line 527, in run
self._emit()
File "/var/lib/juju/agents/unit-vault-k8s-0/charm/venv/ops/main.py", line 516, in _emit
_emit_charm_event(self.charm, self.dispatcher.event_name)
File "/var/lib/juju/agents/unit-vault-k8s-0/charm/venv/ops/main.py", line 147, in _emit_charm_event
event_to_emit.emit(*args, **kwargs)
File "/var/lib/juju/agents/unit-vault-k8s-0/charm/venv/ops/framework.py", line 348, in emit
framework._emit(event)
File "/var/lib/juju/agents/unit-vault-k8s-0/charm/venv/ops/framework.py", line 860, in _emit
self._reemit(event_path)
File "/var/lib/juju/agents/unit-vault-k8s-0/charm/venv/ops/framework.py", line 950, in _reemit
custom_handler(event)
File "/var/lib/juju/agents/unit-vault-k8s-0/charm/./src/charm.py", line 404, in _configure
self._sync_vault_kv()
File "/var/lib/juju/agents/unit-vault-k8s-0/charm/./src/charm.py", line 562, in _sync_vault_kv
outstanding_kv_requests = self.vault_kv.get_outstanding_kv_requests()
File "/var/lib/juju/agents/unit-vault-k8s-0/charm/lib/charms/vault_k8s/v0/vault_kv.py", line 408, in get_outstanding_kv_requests
if not self._credentials_issued_for_request(
File "/var/lib/juju/agents/unit-vault-k8s-0/charm/lib/charms/vault_k8s/v0/vault_kv.py", line 449, in _credentials_issued_for_request
relation = self.model.get_relation(self.relation_name, relation_id)
File "/var/lib/juju/agents/unit-vault-k8s-0/charm/venv/ops/model.py", line 245, in get_relation
return self.relations._get_unique(relation_name, relation_id)
File "/var/lib/juju/agents/unit-vault-k8s-0/charm/venv/ops/model.py", line 939, in _get_unique
raise TooManyRelatedAppsError(relation_name, num_related, 1)
ops.model.TooManyRelatedAppsError: Too many remote applications on vault-kv (2 > 1)
Additional context
No response
The text was updated successfully, but these errors were encountered:
Bug Description
We plan on using Vault as a secret store for multiple different charmed applications by relating them through the
vault-kv
interface. The expectation is that each application would get its own mount point when relating to the samevault-k8s
charm. The charm currently goes into an error state with the below output from the logs.To Reproduce
juju deploy vault-k8s --channel=1.16/edge --revision=256
vault-kv
requirer charms (the one from the integration tests will do)vault-k8s
charm.Environment
Operating system: Ubuntu 22.04.4 LTS
Juju CLI: 3.5.2-genericlinux-amd64
Juju agent: 3.5.2
Charm revision: 256
microk8s: v1.25.16
Relevant log output
Additional context
No response
The text was updated successfully, but these errors were encountered: