keystone hook failed: "secret-rotate"

Bug #2047596 reported by szymon roczniak
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Sunbeam Charms
New
Undecided
Unassigned

Bug Description

Keystone unit is failing to process the 'secret-rotate' hook:

Unit Workload Agent Address Ports Message
[..]
keystone/0* error idle 10.1.67.31 hook failed: "secret-rotate"
[..]

the error is:

2023-12-27T23:43:35.403Z [container-agent] 2023-12-27 23:43:35 ERROR juju.worker.uniter.operation runhook.go:180 hook "secret-rotate" (via hook dispatching script: dispatch) failed: exit status 1
2023-12-27T23:43:35.405Z [container-agent] 2023-12-27 23:43:35 INFO juju.worker.uniter resolver.go:161 awaiting error resolution for "secret-rotate" hook
2023-12-27T23:46:31.624Z [container-agent] 2023-12-27 23:46:31 INFO juju.worker.uniter resolver.go:161 awaiting error resolution for "secret-rotate" hook
2023-12-27T23:48:35.422Z [container-agent] 2023-12-27 23:48:35 INFO juju.worker.uniter resolver.go:161 awaiting error resolution for "secret-rotate" hook
2023-12-27T23:48:36.157Z [container-agent] 2023-12-27 23:48:36 INFO juju-log Creating service account with username svc_placement-GPdWDf
2023-12-27T23:48:36.172Z [container-agent] 2023-12-27 23:48:36 ERROR juju-log Uncaught exception while in charm code:
2023-12-27T23:48:36.172Z [container-agent] Traceback (most recent call last):
2023-12-27T23:48:36.172Z [container-agent] File "/var/lib/juju/agents/unit-keystone-0/charm/./src/charm.py", line 1421, in <module>
2023-12-27T23:48:36.172Z [container-agent] main(KeystoneOperatorCharm)
2023-12-27T23:48:36.172Z [container-agent] File "/var/lib/juju/agents/unit-keystone-0/charm/venv/ops/main.py", line 441, in main
2023-12-27T23:48:36.172Z [container-agent] _emit_charm_event(charm, dispatcher.event_name)
2023-12-27T23:48:36.172Z [container-agent] File "/var/lib/juju/agents/unit-keystone-0/charm/venv/ops/main.py", line 149, in _emit_charm_event
2023-12-27T23:48:36.172Z [container-agent] event_to_emit.emit(*args, **kwargs)
2023-12-27T23:48:36.172Z [container-agent] File "/var/lib/juju/agents/unit-keystone-0/charm/venv/ops/framework.py", line 344, in emit
2023-12-27T23:48:36.172Z [container-agent] framework._emit(event)
2023-12-27T23:48:36.172Z [container-agent] File "/var/lib/juju/agents/unit-keystone-0/charm/venv/ops/framework.py", line 841, in _emit
2023-12-27T23:48:36.172Z [container-agent] self._reemit(event_path)
2023-12-27T23:48:36.172Z [container-agent] File "/var/lib/juju/agents/unit-keystone-0/charm/venv/ops/framework.py", line 930, in _reemit
2023-12-27T23:48:36.172Z [container-agent] custom_handler(event)
2023-12-27T23:48:36.172Z [container-agent] File "/var/lib/juju/agents/unit-keystone-0/charm/./src/charm.py", line 627, in _on_secret_rotate
2023-12-27T23:48:36.172Z [container-agent] self.keystone_manager.create_service_account(username, password)
2023-12-27T23:48:36.172Z [container-agent] File "/var/lib/juju/agents/unit-keystone-0/charm/src/utils/manager.py", line 448, in create_service_account
2023-12-27T23:48:36.172Z [container-agent] project = self.charm_service_project
2023-12-27T23:48:36.172Z [container-agent] AttributeError: 'KeystoneManager' object has no attribute 'charm_service_project'

the problem is a typo in that function. see https://review.opendev.org/c/openstack/sunbeam-charms/+/904393 for a fix.

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.