[1.7/stable] Vault fails "secrets-relation-changed" hook due to internal error

Bug #2035969 reported by Bas de Bruijne
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
vault-charm
New
Undecided
Unassigned

Bug Description

In test run https://solutions.qa.canonical.com/testruns/e7cd99d1-29e4-4768-b498-0bb3bea45f17, which tests kubernetes on focal AWS with the following versions:
======
juju 3.1.5
fce-container-image ubuntu:jammy
legacy-lma stable
charmed-kubernetes 1.28
vault 1.7/stable 178
======

vault fails in the "secrets-relation-changed" hook when installing. The expected behaviour is that the vault installs without reporting failures.

In the debug-log we see the following error:
======
unit-vault-0: 07:27:29 ERROR unit.vault/0.juju-log secrets:59: Hook error:
Traceback (most recent call last):
  File "/var/lib/juju/agents/unit-vault-0/.venv/lib/python3.8/site-packages/charms/reactive/__init__.py", line 74, in main
    bus.dispatch(restricted=restricted_mode)
  File "/var/lib/juju/agents/unit-vault-0/.venv/lib/python3.8/site-packages/charms/reactive/bus.py", line 390, in dispatch
    _invoke(other_handlers)
  File "/var/lib/juju/agents/unit-vault-0/.venv/lib/python3.8/site-packages/charms/reactive/bus.py", line 359, in _invoke
    handler.invoke()
  File "/var/lib/juju/agents/unit-vault-0/.venv/lib/python3.8/site-packages/charms/reactive/bus.py", line 181, in invoke
    self._action(*args)
  File "/var/lib/juju/agents/unit-vault-0/charm/reactive/vault_handlers.py", line 519, in configure_secrets_backend
    client.auth_approle(charm_role_id)
  File "/var/lib/juju/agents/unit-vault-0/.venv/lib/python3.8/site-packages/hvac/v1/__init__.py", line 2072, in auth_approle
    return self.auth('/v1/auth/{0}/login'.format(mount_point), json=params, use_token=use_token)
  File "/var/lib/juju/agents/unit-vault-0/.venv/lib/python3.8/site-packages/hvac/v1/__init__.py", line 1726, in auth
    return self._adapter.auth(
  File "/var/lib/juju/agents/unit-vault-0/.venv/lib/python3.8/site-packages/hvac/adapters.py", line 159, in auth
    response = self.post(url, **kwargs).json()
  File "/var/lib/juju/agents/unit-vault-0/.venv/lib/python3.8/site-packages/hvac/adapters.py", line 103, in post
    return self.request('post', url, **kwargs)
  File "/var/lib/juju/agents/unit-vault-0/.venv/lib/python3.8/site-packages/hvac/adapters.py", line 233, in request
    utils.raise_for_error(response.status_code, text, errors=errors)
  File "/var/lib/juju/agents/unit-vault-0/.venv/lib/python3.8/site-packages/hvac/utils.py", line 39, in raise_for_error
    raise exceptions.InternalServerError(message, errors=errors)
hvac.exceptions.InternalServerError: internal error
======

This looks similar to LP: 1883263

For logs and crashdumps, see: https://oil-jenkins.canonical.com/artifacts/e7cd99d1-29e4-4768-b498-0bb3bea45f17/index.html

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.