If endpoint switches to https tell nova-cc

If the charm has joined the certificate relation and switched its
endpoint to using https then it needs to tell nova-cc as it currently
gets its neutron endpoint from the neutron-api relation and not the
catalogue.

Change-Id: Idb1dbf8cbc344ef3f3bf3b6f463e55729a9ff63c
This commit is contained in:
Liam Young 2020-02-17 11:08:20 +00:00
parent c2d5dc5719
commit 9eff12d1ad
1 changed files with 4 additions and 0 deletions

View File

@ -782,6 +782,10 @@ def certs_joined(relation_id=None):
def certs_changed(relation_id=None, unit=None):
process_certificates('neutron', relation_id, unit)
configure_https()
# If endpoint has switched to https, need to tell
# nova-cc
for r_id in relation_ids('neutron-api'):
neutron_api_relation_joined(rid=r_id)
@hooks.hook('pre-series-upgrade')