canonical / data-platform-libs

A collection of charm libraries curated by the Data Platform Team
https://charmhub.io/data-platform-libs
Apache License 2.0
10 stars 9 forks source link

Database created event will be triggered before database setup, if a secret is created too early #195

Open dragomirp opened 6 hours ago

dragomirp commented 6 hours ago

Should be reproducible with the steps described in DPE-5564

The underlying issue was that Pgbouncer was setting an dud URI secret that triggered the check on: https://github.com/canonical/data-platform-libs/blob/c5696736e6582b8e93794f6fe15f356ac620efa0/lib/charms/data_platform_libs/v0/data_interfaces.py#L3139

Which emitted a database created event even if the database was not yet configured on data-integrator's side.

syncronize-issues-to-jira[bot] commented 6 hours ago

Thank you for reporting us your feedback!

The internal ticket has been created: https://warthogs.atlassian.net/browse/DPE-5653.

This message was autogenerated