Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
This project is now read‑only. Starting Monday, February 2, please use https://ibm-ceph.atlassian.net/ for all bug tracking management.

Bug 2317770

Summary: [Dashboard][Object][Bucket]: "500 Internal Server Error" observed when clicking on an RGW account owned bucket.
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: Vidushi Mishra <vimishra>
Component: Ceph-DashboardAssignee: Nizamudeen <nia>
Status: CLOSED ERRATA QA Contact: Vidushi Mishra <vimishra>
Severity: medium Docs Contact: Anjana Suparna Sriram <asriram>
Priority: urgent    
Version: 8.0CC: afrahman, anbehl, ceph-eng-bugs, cephqe-warriors, jcaratza, mkasturi
Target Milestone: ---   
Target Release: 8.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ceph-19.2.0-45 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2024-11-25 09:13:03 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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