juju keystone failed charm stuck in "hook failed: identity-service-relation-changed" state

Bug #1958030 reported by Daya
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Keystone Charm
New
Undecided
Unassigned

Bug Description

Keystone redeploy is facing problem when adding relation with openstack-dashboard. Below are the error log of juju for keystone unit:

2022-01-15 17:38:57 DEBUG juju-log identity-service:188: This unit (keystone/24) is in allowed unit list from mysql/0
2022-01-15 17:38:57 DEBUG juju-log identity-service:188: Database is initialised
2022-01-15 17:38:58 INFO juju-log identity-service:188: Creating requested role: member
2022-01-15 17:38:58 DEBUG identity-service-relation-changed Traceback (most recent call last):
2022-01-15 17:38:58 DEBUG identity-service-relation-changed File "/var/lib/juju/agents/unit-keystone-24/charm/hooks/identity-service-relation-changed", line 937, in <module>
2022-01-15 17:38:58 DEBUG identity-service-relation-changed main()
2022-01-15 17:38:58 DEBUG identity-service-relation-changed File "/var/lib/juju/agents/unit-keystone-24/charm/hooks/identity-service-relation-changed", line 930, in main
2022-01-15 17:38:58 DEBUG identity-service-relation-changed hooks.execute(sys.argv)
2022-01-15 17:38:58 DEBUG identity-service-relation-changed File "/var/lib/juju/agents/unit-keystone-24/charm/charmhelpers/core/hookenv.py", line 962, in execute
2022-01-15 17:38:58 DEBUG identity-service-relation-changed self._hooks[hook_name]()
2022-01-15 17:38:58 DEBUG identity-service-relation-changed File "/var/lib/juju/agents/unit-keystone-24/charm/charmhelpers/contrib/openstack/utils.py", line 1869, in wrapped_f
2022-01-15 17:38:58 DEBUG identity-service-relation-changed pre_restarts_wait_f)
2022-01-15 17:38:58 DEBUG identity-service-relation-changed File "/var/lib/juju/agents/unit-keystone-24/charm/charmhelpers/core/host.py", line 837, in restart_on_change_helper
2022-01-15 17:38:58 DEBUG identity-service-relation-changed r = lambda_f()
2022-01-15 17:38:58 DEBUG identity-service-relation-changed File "/var/lib/juju/agents/unit-keystone-24/charm/charmhelpers/contrib/openstack/utils.py", line 1863, in <lambda>
2022-01-15 17:38:58 DEBUG identity-service-relation-changed (lambda: f(*args, **kwargs)),
2022-01-15 17:38:58 DEBUG identity-service-relation-changed File "/var/lib/juju/agents/unit-keystone-24/charm/hooks/identity-service-relation-changed", line 445, in identity_changed
2022-01-15 17:38:58 DEBUG identity-service-relation-changed add_service_to_keystone(relation_id, remote_unit)
2022-01-15 17:38:58 DEBUG identity-service-relation-changed File "/var/lib/juju/agents/unit-keystone-24/charm/hooks/keystone_utils.py", line 1888, in add_service_to_keystone
2022-01-15 17:38:58 DEBUG identity-service-relation-changed create_role(role)
2022-01-15 17:38:58 DEBUG identity-service-relation-changed File "/var/lib/juju/agents/unit-keystone-24/charm/hooks/keystone_utils.py", line 1389, in create_role
2022-01-15 17:38:58 DEBUG identity-service-relation-changed if not manager.resolve_role_id(name):
2022-01-15 17:38:58 DEBUG identity-service-relation-changed File "/var/lib/juju/agents/unit-keystone-24/charm/hooks/keystone_utils.py", line 1226, in __call__
2022-01-15 17:38:58 DEBUG identity-service-relation-changed return _proxy_manager_call(self._path, self.api_version, args, kwargs)
2022-01-15 17:38:58 DEBUG identity-service-relation-changed File "/var/lib/juju/agents/unit-keystone-24/charm/charmhelpers/core/decorators.py", line 40, in _retry_on_exception_inner_2
2022-01-15 17:38:58 DEBUG identity-service-relation-changed return f(*args, **kwargs)
2022-01-15 17:38:58 DEBUG identity-service-relation-changed File "/var/lib/juju/agents/unit-keystone-24/charm/hooks/keystone_utils.py", line 1246, in _proxy_manager_call
2022-01-15 17:38:58 DEBUG identity-service-relation-changed charm_credentials=get_charm_credentials(),
2022-01-15 17:38:58 DEBUG identity-service-relation-changed File "/var/lib/juju/agents/unit-keystone-24/charm/hooks/keystone_utils.py", line 968, in get_charm_credentials
2022-01-15 17:38:58 DEBUG identity-service-relation-changed raise RuntimeError('Leader unit has not provided credentials required '
2022-01-15 17:38:58 DEBUG identity-service-relation-changed RuntimeError: Leader unit has not provided credentials required for speaking with Keystone yet.
2022-01-15 17:38:58 ERROR juju.worker.uniter.operation runhook.go:132 hook "identity-service-relation-changed" failed: exit status 1

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.