Comment 5 for bug 1961448

Revision history for this message
Joseph Phillips (manadart) wrote :

As we discussed, the logic exists to update network relation data upon rebind.

I tried to reproduce this and got the expected behaviour on MAAS.

Spaces:
https://pastebin.canonical.com/p/H2dVddFqnb/

I deployed mariadb bound to space-default, and related it to mediawiki. Relation data looked like this in the DB:
https://pastebin.canonical.com/p/XPqNzc5YxK/

I rebound mariadb:
https://pastebin.canonical.com/p/fqXBxRGqbX/

Relation data changed as expected:
https://pastebin.canonical.com/p/ShVHpWtRsd/

This behaviour is triggered by the agent itself in the config-changed event following rebind. This *could* be blocked if the charm was in an error state requiring resolution, but apart from that I'd need more to go on. The happy path appears to work as designed.