-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Postgresql-k8s unit goes to blocked state: Cannot disable plugins: Existing objects depend on it
#701
Comments
Thank you for reporting us your feedback! The internal ticket has been created: https://warthogs.atlassian.net/browse/DPE-5494.
|
Hi, @natalian98, the blocked status should be caused by:
Do you know if any of your components manually enables pg_trgm? Have you tried setting the |
Hi @dragomirp, thanks for your fast reply. The charms don't enable |
Hi, this check should be happening in the update status hook, so I would guess that sometimes the test manages to exit before the Postgresql charm manages to block. Can you try to enable the plugin in the bundle and see if the issue persists? |
@dragomirp I tried enabling the plugin and one of two runs failed again: https://github.com/canonical/iam-bundle/actions/runs/10941912483/job/30377673936#step:4:681 |
Hi, @natalian98, looks like there are more plugins required:
This should be enabled by You can check for missing plugins in the debug log step of the run: https://github.com/canonical/iam-bundle/actions/runs/10941912483/job/30377673936#step:14:4694 |
Hi @dragomirp, that solved the issue, thanks a lot! |
Glad it worked out. I'll discuss it with the rest of the team, but I don't think there is a more appropriate event, since we can't know when extensions are enabled manually. Polling periodically on |
Steps to reproduce
This only happens once per couple of test runs, hence is difficult to reproduce, but you can do so by running:
Expected behavior
Postgresql-k8s app and unit get active.
Actual behavior
At times
postgresql-k8s
unit gets stuck in blocked state, causing our bundle tests to fail. These are runs from this week:https://github.com/canonical/iam-bundle/actions/runs/10880493814/job/30244416338#step:4:667
https://github.com/canonical/iam-bundle/actions/runs/10937282732/job/30362792991
https://github.com/canonical/iam-bundle/actions/runs/10900084647/job/30246933947
However, we don't enable or disable any plugins in the charms integrated with the database (kratos and hydra). Could you advise what could be causing this?
Versions
Operating system: ubuntu 22.04
Juju CLI: 3.4/stable
Juju agent: 3.4.5
Charm revision: 381
microk8s: 1.27 and 1.28/stable
Log output
Juju debug log:
https://github.com/canonical/iam-bundle/actions/runs/10880493814/job/30244416338#step:14:1
Additional context
We've been deploying postgresql-k8s from
14/stable
channel. So far the tests run successfully when it pointed to rev281, we're experiencing this flaky issue since it was promoted to rev381.The text was updated successfully, but these errors were encountered: