.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.
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 1RHEL Program Management
2023-09-12 04:48:30 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
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: