Bug 2317770 - [Dashboard][Object][Bucket]: "500 Internal Server Error" observed when clicking on an RGW account owned bucket.
Summary: [Dashboard][Object][Bucket]: "500 Internal Server Error" observed when click...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Ceph Storage
Classification: Red Hat Storage
Component: Ceph-Dashboard
Version: 8.0
Hardware: Unspecified
OS: Unspecified
urgent
medium
Target Milestone: ---
: 8.0
Assignee: Nizamudeen
QA Contact: Vidushi Mishra
Anjana Suparna Sriram
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-10-10 08:46 UTC by Vidushi Mishra
Modified: 2024-11-25 09:13 UTC (History)
6 users (show)

Fixed In Version: ceph-19.2.0-45
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2024-11-25 09:13:03 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github ceph ceph pull 60399/ 0 None None None 2024-10-22 09:22:49 UTC
Red Hat Issue Tracker RHCEPH-9991 0 None None None 2024-10-10 08:46:51 UTC
Red Hat Issue Tracker RHCSDASH-1681 0 None None None 2024-10-10 08:46:57 UTC
Red Hat Product Errata RHBA-2024:10216 0 None None None 2024-11-25 09:13:06 UTC

Description Vidushi Mishra 2024-10-10 08:46:05 UTC
Description of problem:


When doing bucket stats for an account bucket 'new-alice-bucket-6' encountering

 "500 Internal Server Error", "detail": "The server encountered an unexpected condition which prevented it from fulfilling the request.", "request_id": "3009974b-d0a3-45ce-817f-ec741e9c14fc"} "



2024-10-09T13:47:30.904+0000 7fd35c4e5640  0 [dashboard DEBUG urllib3.connectionpool] http://10.8.128.45:80 "GET /admin/user?uid=RGW12345678901234568 HTTP/1.1" 404 131
2024-10-09T13:47:30.945+0000 7fd35c4e5640  0 [dashboard ERROR rest_client] RGW REST API failed GET req status: 404
2024-10-09T13:47:30.945+0000 7fd35c4e5640  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.9/site-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 263, in inner
    ret = func(*args, **kwargs)
  File "/usr/share/ceph/mgr/dashboard/controllers/_rest_controller.py", line 193, in wrapper
    return func(*vpath, **params)
  File "/usr/share/ceph/mgr/dashboard/controllers/rgw.py", line 536, in get
    versioning = self._get_versioning(result['owner'], daemon_name, bucket_name)
  File "/usr/share/ceph/mgr/dashboard/controllers/rgw.py", line 393, in _get_versioning
    rgw_client = RgwClient.instance(owner, daemon_name)
  File "/usr/share/ceph/mgr/dashboard/services/rgw_client.py", line 325, in instance
    keys = RgwClient._config_instances[daemon_name].get_user_keys(userid)  # type: ignore
  File "/usr/share/ceph/mgr/dashboard/services/rgw_client.py", line 466, in get_user_keys
    return self._admin_get_user_keys(self.admin_path, userid)
  File "/usr/share/ceph/mgr/dashboard/rest_client.py", line 538, in func_wrapper
    return func(
  File "/usr/share/ceph/mgr/dashboard/services/rgw_client.py", line 456, in _admin_get_user_keys
    response = request({'uid': user})
  File "/usr/share/ceph/mgr/dashboard/rest_client.py", line 324, in __call__
    resp = self.rest_client.do_request(method, self._gen_path(), params,
  File "/usr/share/ceph/mgr/dashboard/rest_client.py", line 422, in do_request
    raise RequestException(
dashboard.rest_client.RequestException: RGW REST API failed request with status code 404
(b'{"Code":"NoSuchUser","Message":"","RequestId":"tx0000036df2a4c8f281b31-00670'
 b'68972-147066-primary","HostId":"147066-primary-shared"}')
2024-10-09T13:47:30.946+0000 7fd35c4e5640 20 mgr get_config  key: mgr/dashboard/debug
2024-10-09T13:47:30.946+0000 7fd35c4e5640 10 mgr get_typed_config  debug not found
2024-10-09T13:47:30.946+0000 7fd35c4e5640  0 [dashboard ERROR request] [::ffff:10.74.16.123:63089] [GET] [500] [0.069s] [admin] [513.0B] /api/rgw/bucket/tenant1%2Fnew-alice-bucket-6
2024-10-09T13:47:30.946+0000 7fd35c4e5640  0 [dashboard ERROR request] [b'{"status": "500 Internal Server Error", "detail": "The server encountered an unexpected condition which prevented it from fulfilling the request.", "request_id": "3009974b-d0a3-45ce-817f-ec741e9c14fc"}                                                                                                                                                                                                                                                                                                                        ']
2024-10-09T13:47:30.947+0000 7fd35c4e5640  0 [dashboard INFO request] [::ffff:10.74.16.123:63089] [GET] [500] [0.070s] [admin] [513.0B] /api/rgw/bucket/tenant1%2Fnew-alice-bucket-6

Version-Release number of selected component (if applicable):

ceph version 19.2.0-10.el9cp 

How reproducible:
Always

Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 9 errata-xmlrpc 2024-11-25 09:13:03 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Red Hat Ceph Storage 8.0 security, bug fix, and enhancement updates), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2024:10216


Note You need to log in before you can comment on or make changes to this bug.