Project

General

Profile

Actions

Bug #63911

open

Cannot enable HTTPS on RadosGW

Added by Emanuel Claudio 4 months ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
% Done:

0%

Source:
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
rgw
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

Description of problem

While enabling HTTPS on radosGW configuration and setting the SSL validation on false, i got this error

debug 2023-12-29T16:26:41.322+0000 7fb72a2e4700  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.6/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 258, in inner
    ret = func(*args, **kwargs)
  File "/usr/share/ceph/mgr/dashboard/controllers/_rest_controller.py", line 190, in wrapper
    return func(*vpath, **params)
  File "/usr/share/ceph/mgr/dashboard/controllers/rgw.py", line 108, in list
    'port': int(metadata['frontend_config#0'].split('port=')[1])
ValueError: invalid literal for int() with base 10: '443 ssl_certificate=config://rgw/cert/rgw.cert'
debug 2023-12-29T16:26:41.322+0000 7fb72a2e4700  0 [dashboard ERROR request] [10.255.0.17:14968] [GET] [500] [0.007s] [admin] [513.0B] /api/rgw/daemon
debug 2023-12-29T16:26:41.322+0000 7fb72a2e4700  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": "7e17494b-1f14-40fe-b487-a0e77cfec0a6"}                                                                                                                                                                                                                                                                                                                        ']

Environment

ceph version string: quincy (17.2.6)
Platform (OS/distro/release): Ubuntu 22.06
Cluster details (nodes, monitors, OSDs): 6 nodes, 4 monitors, 4 OSDs
Did it happen on a stable environment or after a migration/upgrade?: no
Browser used (e.g.: Version 86.0.4240.198 (Official Build) (64-bit)): Chrome Versione 120.0.6099.130 (Build ufficiale) (a 64 bit)

How reproducible

Steps:

Create 2 object gateway
enable SSL on the with a custom certificate
Open the dashboard
Go to Object Gateway tab from left sidebar

Actual results

I get this alert on dashboard

500 - Internal Server Error
The server encountered an unexpected condition which prevented it from fulfilling the request.

And this is the trace for python

debug 2023-12-29T16:26:41.322+0000 7fb72a2e4700  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.6/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 258, in inner
    ret = func(*args, **kwargs)
  File "/usr/share/ceph/mgr/dashboard/controllers/_rest_controller.py", line 190, in wrapper
    return func(*vpath, **params)
  File "/usr/share/ceph/mgr/dashboard/controllers/rgw.py", line 108, in list
    'port': int(metadata['frontend_config#0'].split('port=')[1])
ValueError: invalid literal for int() with base 10: '443 ssl_certificate=config://rgw/cert/rgw.cert'
debug 2023-12-29T16:26:41.322+0000 7fb72a2e4700  0 [dashboard ERROR request] [10.255.0.17:14968] [GET] [500] [0.007s] [admin] [513.0B] /api/rgw/daemon
debug 2023-12-29T16:26:41.322+0000 7fb72a2e4700  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": "7e17494b-1f14-40fe-b487-a0e77cfec0a6"}                                                                                                                                                                                                                                                                                                                        ']

Expected results

Not to see error
Additional info

Am I correct?
It seems that it expects to have the integer in line 'port': int(metadata['frontend_config#0'].split('port=')[1]) but it gets the value 8080 ssl_certificate=config://rgw/cert/rgw.rgw and this is the reason it failed

No data to display

Actions

Also available in: Atom PDF