Project

General

Profile

Actions

Bug #63698

open

mgr/dashboard: 500 - Internal Server Error for RGW

Added by Morteza Bashsiz 5 months ago. Updated 5 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:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

Description of problem

While opening Object Gateway tab from left sidebar I get the error

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

Environment

  • ceph version string: Reef (18.2.0)
  • Platform (OS/distro/release): Linux/Ubuntu/Focal
  • Cluster details (nodes, monitors, OSDs): 7 nodes, 6 monitors, 144 OSDs
  • Did it happen on a stable environment or after a migration/upgrade?: Yes, it happened after upgrading from Quincy to Reef
  • Browser used (e.g.: Version 86.0.4240.198 (Official Build) (64-bit)):

How reproducible

Steps:

  1. Upgrade ceph from Quincy to Reef
  2. Open dashboard
  3. 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

[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 263, in inner
                                                ret = func(*args, **kwargs)
                                              File "/usr/share/ceph/mgr/dashboard/controllers/_rest_controller.py", line 191, 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: '8080 ssl_certificate=config://rgw/cert/rgw.rgw'
[dashboard ERROR request] [10.33.48.28:44640] [GET] [500] [0.003s] [admin] [513.0B] /api/rgw/daemon
[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": "fd82351a-7846-4481-9d00-294b278a52fe"}

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

Actions #1

Updated by Nizamudeen A 5 months ago

Hi Morteza,

We have fixed this bug in our code https://github.com/ceph/ceph/pull/53323, but its still waiting for a release to b made. But in 18.2.1, the fix for this issue will be there!

Actions #2

Updated by Morteza Bashsiz 5 months ago

Nizamudeen A wrote:

Hi Morteza,

We have fixed this bug in our code https://github.com/ceph/ceph/pull/53323, but its still waiting for a release to b made. But in 18.2.1, the fix for this issue will be there!

Hi Nizamudeen
Thanks a lot for your answer

Actions

Also available in: Atom PDF