Closed TeodorPt closed 2 months ago
Hi, @TeodorPt! Thanks for the report.
We'll be working to fix this issue in the next two weeks.
Hi there @TeodorPt, this issue was addressed in #567, where we now have a blocked status in case where the charm tries to disable a plugin but it can't. In such a scenario, the user can proceed in 2 ways:
update-status
event for the plugin to get disabled,Both actions should unblock the charm. We hope this will provide better UX, for you, feel free to re-open this issue if something behaves unexpectedly. Thank you!
Nice, thank you!
Steps to reproduce
CREATE EXTENSION IF NOT EXISTS pg_trgm WITH SCHEMA pg_catalog;
in the resulting database, directly.CREATE INDEX example_idx ON example USING gin(name gin_trgm_ops);
.Expected behavior
(?)
Actual behavior
The extension is successfully created in the instance. Later, on various juju events, the charm actively tries to remove
pg_trgm
because it is not enabled via theplugin_pg_trgm_enable
config. It however fails to do so because there's an index depending on it. This is an excerpt from the Postgres logs:Versions
Juju CLI: 3.5.1-ubuntu-amd64 Juju agent: 3.4.2 Charm revision: 264, version 14.11
Additional Context
I am not sure if this is actually a bug or just a peculiar behavior that we have observed. Nevertheless, reporting here in case there's anything that can be done to improve the experience.