Bug 2238470 - [Ceph Dashboard]: RGW page is showing 500 error
Summary: [Ceph Dashboard]: RGW page is showing 500 error
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Ceph Storage
Classification: Red Hat Storage
Component: Ceph-Dashboard
Version: 7.0
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
: 7.0
Assignee: Nizamudeen
QA Contact: Chaithra
Rivka Pollack
URL:
Whiteboard:
Depends On:
Blocks: 2237662
TreeView+ depends on / blocked
 
Reported: 2023-09-12 04:48 UTC by Nizamudeen
Modified: 2023-12-13 15:23 UTC (History)
7 users (show)

Fixed In Version: ceph-18.2.0-22.el9cp
Doc Type: Bug Fix
Doc Text:
.Ceph Object Gateway page now loads properly on the Ceph dashboard. Previously, an incorrect regex matching caused the dashboard to break when trying to load the Ceph Object Gateway page. The Ceph Object Gateway page would not load with specific configurations like `rgw_frontends like beast port=80 ssl_port=443`. With this fix, the regex matching in the codebase is updated and the Ceph Object Gateway page loads without any issues.
Clone Of:
Environment:
Last Closed: 2023-12-13 15:23:04 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github ceph ceph pull 53323 0 None Merged mgr/dashboard: fix rgw port manipulation error in dashboard 2023-09-12 04:49:39 UTC
Red Hat Issue Tracker RHCEPH-7421 0 None None None 2023-09-12 04:49:56 UTC
Red Hat Issue Tracker RHCSDASH-1082 0 None None None 2023-09-12 04:49:59 UTC
Red Hat Product Errata RHBA-2023:7780 0 None None None 2023-12-13 15:23:09 UTC

Description Nizamudeen 2023-09-12 04:48:20 UTC
Description of problem:

If we provide an rgw_frontends like beast port=80 ssl_port=443, the frontend fails to load the page and we get a trace in the mgr log like below

bash[32475]: Internal Server Error
bash[32475]: Traceback (most recent call last):
bash[32475]:   File "/usr/share/ceph/mgr/dashboard/services/exception.py", line 47, in dashboard_exception_handler
bash[32475]:     return handler(*args, **kwargs)
bash[32475]:   File "/lib/python3.6/site-packages/cherrypy/_cpdispatch.py", line 54, in __call__
bash[32475]:     return self.callable(*self.args, **self.kwargs)
bash[32475]:   File "/usr/share/ceph/mgr/dashboard/controllers/_base_controller.py", line 263, in inner
bash[32475]:     ret = func(*args, **kwargs)
bash[32475]:   File "/usr/share/ceph/mgr/dashboard/controllers/_rest_controller.py", line 191, in wrapper
bash[32475]:     return func(*vpath, **params)
bash[32475]:   File "/usr/share/ceph/mgr/dashboard/controllers/rgw.py", line 108, in list
bash[32475]:     'port': int(metadata['frontend_config#0'].split('port=')[1])
bash[32475]: ValueError: invalid literal for int() with base 10: '443 ssl_certificate=config://rgw/cert/rgw.NBDFSv2.NBDFS.C3'
bash[32475]: [::ffff:10.3.34.90:32990] [GET] [500] [0.004s] [nbadmin] [513.0B] /api/rgw/daemon
bash[32475]: [b'{"status": "500 Internal Server Error", "detail": "The server encountered an unexpected condition which prevented it from fulfilling the request.", "request_id": "ba61646e-eb89-43eb-89d0-156ec3ffc2b7"}



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


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 1 RHEL Program Management 2023-09-12 04:48:30 UTC
Please specify the severity of this bug. Severity is defined here:
https://bugzilla.redhat.com/page.cgi?id=fields.html#bug_severity.

Comment 10 errata-xmlrpc 2023-12-13 15:23:04 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 7.0 Bug Fix update), 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-2023:7780


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