Comment 7 for bug 1901589

Revision history for this message
Billy Olsen (billy-olsen) wrote :

Looking at the code a bit more, I think this patch might solve it- not submitting as its a bit late and I need to look at it more before submitting:

diff --git a/src/reactive/manila_handlers.py b/src/reactive/manila_handlers.py
index daf6744..c62c732 100644
--- a/src/reactive/manila_handlers.py
+++ b/src/reactive/manila_handlers.py
@@ -114,6 +114,10 @@ def render_stuff(*args):
     was set.
     """
     with charms_openstack.charm.provide_charm_instance() as manila_charm:
+ tls = relations.endpoint_from_flag('certificates.available')
+ manila_charm.configure_tls(certificates_interface=tls)
+ keystone = relations.endpoint_from_flag('identity-service.available')
+ manila_charm.register_endpoints(keystone)
         manila_charm.render_with_interfaces(args)
         manila_charm.assess_status()
         charms.reactive.set_state('manila.config.rendered')

Essentially, the charm has a default config_changed but doesn't render the tls configuration, nor does it advertise the updated endpoints to keystone. I might be missing it in my perusal of the code, but the above works for me.