Skip to content
Snippets Groups Projects
Commit bdcde530 authored by Zuul's avatar Zuul Committed by Gerrit Code Review
Browse files

Merge "Run identity client relations when db is complete"

parents 6470d6dd a240c520
No related branches found
No related tags found
No related merge requests found
......@@ -422,6 +422,7 @@ def db_changed():
if CompareOpenStackReleases(
os_release('keystone-common')) >= 'liberty':
CONFIGS.write(POLICY_JSON)
update_all_identity_relation_units()
@hooks.hook('identity-service-relation-changed')
......
......@@ -905,6 +905,7 @@ class KeystoneBasicDeployment(OpenStackAmuletDeployment):
amulet.raise_status(amulet.FAIL, msg=msg)
self.d.configure(juju_service, set_default)
self._auto_wait_for_status(exclude_services=self.exclude_services)
u.log.debug('OK')
......
......@@ -210,7 +210,8 @@ class KeystoneRelationTests(CharmTestCase):
'shared-db relation incomplete. Peer not ready?'
)
def _shared_db_test(self, configs, unit_name):
@patch.object(hooks, 'update_all_identity_relation_units')
def _shared_db_test(self, configs, unit_name, mock_update_all):
self.relation_get.return_value = 'keystone/0 keystone/3'
self.local_unit.return_value = unit_name
configs.complete_contexts = MagicMock()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment