dashboard.rest_client.RequestException: User '(simplestreams bucket owner)' does not have any keys configured.

Bug #2022072 reported by Nobuto Murata
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ceph Dashboard Charm
New
Undecided
Unassigned
OpenStack Glance-Simplestreams-Sync Charm
New
Undecided
Unassigned

Bug Description

ceph-mgr-dashboard: 17.2.5-0ubuntu0.22.04.3 (quincy)

Ceph dashboard reveals Internal Server Error whenever the "simplestreams" bucket is opened. It can be said as an upstream issue but the simplestreams bucket and its user are created by glance-simplestreams-sync so it would be nice to avoid this obvious error in the user facing interface.

[/var/log/ceph/ceph-mgr.juju-d642a4-0-lxd-0.log]
2023-06-01T13:40:13.788+0000 7f3a7cff9640 0 [dashboard ERROR exception] Internal Server Error
Traceback (most recent call last):
  File "/usr/share/ceph/mgr/dashboard/services/exception.py", line 47, in dashboard_exception_handler
    return handler(*args, **kwargs)
  File "/lib/python3/dist-packages/cherrypy/_cpdispatch.py", line 54, in __call__
    return self.callable(*self.args, **self.kwargs)
  File "/usr/share/ceph/mgr/dashboard/controllers/_base_controller.py", line 258, in inner
    ret = func(*args, **kwargs)
  File "/usr/share/ceph/mgr/dashboard/controllers/_rest_controller.py", line 191, in wrapper
    return func(*vpath, **params)
  File "/usr/share/ceph/mgr/dashboard/controllers/rgw.py", line 258, in get
    versioning = self._get_versioning(result['owner'], daemon_name, bucket_name)
  File "/usr/share/ceph/mgr/dashboard/controllers/rgw.py", line 188, in _get_versioning
    rgw_client = RgwClient.instance(owner, daemon_name)
  File "/usr/share/ceph/mgr/dashboard/services/rgw_client.py", line 354, in instance
    raise RequestException(
dashboard.rest_client.RequestException: User '1515718f5892428fa97d4641243848ed' does not have any keys configured.
2023-06-01T13:40:13.788+0000 7f3a7cff9640 0 [dashboard ERROR request] [192.168.151.1:50600] [GET] [500] [0.055s] [admin] [513.0B] /api/rgw/bucket/simplestreams
2023-06-01T13:40:13.788+0000 7f3a7cff9640 0 [dashboard ERROR request] [b'{"status": "500 Internal Server Error", "detail": "The server encountered an unexpected condition which prevented it from f
ulfilling the request.", "request_id": "cffe4d61-420c-4629-90e8-cd774637eb7e"}

Revision history for this message
Nobuto Murata (nobuto) wrote :
Revision history for this message
Nobuto Murata (nobuto) wrote :

"good-first-bug" to enable access key for the owner of the "simplestreams" bucket regardless.

tags: added: good-first-bug
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.