canonical / mysql-test-app

Test app for Charmed MySQL K8s/VM
https://charmhub.io/mysql-test-app
Apache License 2.0
0 stars 1 forks source link

[DPE-2853][FIX] Stuck in 'waiting' if secrets weren't distributed before `start` event #15

Closed juditnovak closed 11 months ago

juditnovak commented 11 months ago

Registering relation-changed, preventing to be stuck in 'waiting'…if secrets weren't there at 'start'.

Issue

Currently if secrets aren't available before the start event, the evaluation on _datbase_confg returns an empty value, leaving the unit in Waiting state. However, even if the secrets become available, there's no further evaluation on this condition.

Solution

As for now, a relation-changed event allows for re-evaluation of the condition. ( This shouldn't interfere with the single other event that's modifying the state, which is relation-broken)

NOTE: Purposefully not updating libs now. data_platform_llibs/data_interfaces v21 is broken, and the fix is just being merged.