Write out configurations in ha-changed to avoid missing switch to VIP's
This commit is contained in:
@@ -306,6 +306,7 @@ def ha_joined():
|
|||||||
|
|
||||||
|
|
||||||
@hooks.hook('ha-relation-changed')
|
@hooks.hook('ha-relation-changed')
|
||||||
|
@restart_on_change(restart_map())
|
||||||
def ha_changed():
|
def ha_changed():
|
||||||
clustered = relation_get('clustered')
|
clustered = relation_get('clustered')
|
||||||
if not clustered or clustered in [None, 'None', '']:
|
if not clustered or clustered in [None, 'None', '']:
|
||||||
@@ -318,6 +319,7 @@ def ha_changed():
|
|||||||
identity_joined(rid=rid)
|
identity_joined(rid=rid)
|
||||||
for rid in relation_ids('neutron-api'):
|
for rid in relation_ids('neutron-api'):
|
||||||
neutron_api_relation_joined(rid=rid)
|
neutron_api_relation_joined(rid=rid)
|
||||||
|
CONFIGS.write_all()
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
|
|||||||
Reference in New Issue
Block a user