Ensure endpoint up-to-date once ha completes

Change-Id: I5f6f7c7f0acb1b7951730c02a55e4971f00d5c9d
Closes-Bug: #1508575
This commit is contained in:
Edward Hope-Morley 2018-11-09 12:15:22 +00:00 committed by Chris MacNaughton (icey)
parent fa2bf6c0f8
commit 614db19f8c
1 changed files with 4 additions and 1 deletions

View File

@ -620,7 +620,10 @@ def ha_changed():
if clustered:
log('Cluster configured, notifying other services and updating '
'keystone endpoint configuration')
update_all_identity_relation_units()
if (is_db_initialised() and is_elected_leader(CLUSTER_RES) and not
is_unit_paused_set()):
ensure_initial_admin(config)
update_all_identity_relation_units()
@hooks.hook('identity-admin-relation-changed')