Bug 2307337 - Ceph 7: CephDashboard: "500 Internal Server Error" IndexError: list index out of range
Summary: Ceph 7: CephDashboard: "500 Internal Server Error" IndexError: list index ou...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Ceph Storage
Classification: Red Hat Storage
Component: Ceph-Dashboard
Version: 7.0
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
: 7.1z3
Assignee: Nizamudeen
QA Contact: Vinayak Papnoi
Anjana Suparna Sriram
URL:
Whiteboard:
Depends On:
Blocks: 2307504
TreeView+ depends on / blocked
 
Reported: 2024-08-22 18:05 UTC by Justin
Modified: 2024-12-23 07:16 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 2307504 (view as bug list)
Environment:
Last Closed: 2024-12-23 07:16:58 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHCEPH-9520 0 None None None 2024-08-22 18:05:43 UTC
Red Hat Issue Tracker RHCSDASH-1555 0 None None None 2024-08-22 18:05:53 UTC

Description Justin 2024-08-22 18:05:29 UTC
Description of problem:

Customer is getting 500 errors on the latest release when accessing the Ceph Dashboard. 
Errata https://access.redhat.com/errata/RHBA-2023:7780 fixes the exact same error 
in BZ 2238470 https://bugzilla.redhat.com/show_bug.cgi?id=2238470

```
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 153, in list
    'port': int(re.findall(r'port=(\d+)', metadata['frontend_config#0'])[0])
IndexError: list index out of range
[::ffff:10.160.104.12:52722] [GET] [500] [0.032s] [admin] [513.0B] /api/rgw/daemon
[b'{"status": "500 Internal Server Error", "detail": "The server encountered an unexpected condition which prevented it from fulfilling the request.", "request_id": "472de92d-3ed5-4a2c-8e51-2c65306a1107"} 
```

Version-Release number of selected component (if applicable):
```
{
    "mon": {
        "ceph version 18.2.1-229.el9cp (ef652b206f2487adfc86613646a4cac946f6b4e0) reef (stable)": 5
    },
    "mgr": {
        "ceph version 18.2.1-229.el9cp (ef652b206f2487adfc86613646a4cac946f6b4e0) reef (stable)": 4
    },
    "osd": {
        "ceph version 18.2.1-229.el9cp (ef652b206f2487adfc86613646a4cac946f6b4e0) reef (stable)": 24
    },
    "mds": {
        "ceph version 18.2.1-229.el9cp (ef652b206f2487adfc86613646a4cac946f6b4e0) reef (stable)": 12
    },
    "rgw": {
        "ceph version 18.2.1-229.el9cp (ef652b206f2487adfc86613646a4cac946f6b4e0) reef (stable)": 15
    },
    "overall": {
        "ceph version 18.2.1-229.el9cp (ef652b206f2487adfc86613646a4cac946f6b4e0) reef (stable)": 60
    }
}
```
Expected results: No 500 errors

Comment 4 Justin 2024-09-04 13:43:37 UTC
Nizamudeen,

Sorry haven't been able to review the mentioned pull request to provide an opinion on it. But,
forwarding this request along from the consultant who works with the customer a lot. 

```
Do we have any guestimate on when the next .z1 release will arrive ?

We have users who are looking forward to be able to manage more of rgw via the webui

/Heðin
```

Comment 6 Justin 2024-10-30 14:49:03 UTC
Nizamudeen, 

Are are we close to this being fixed? 

/jherron


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