Bug 2307337

Summary: Ceph 7: CephDashboard: "500 Internal Server Error" IndexError: list index out of range
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: Justin <jherron>
Component: Ceph-DashboardAssignee: Nizamudeen <nia>
Status: CLOSED CURRENTRELEASE QA Contact: Vinayak Papnoi <vpapnoi>
Severity: medium Docs Contact: Anjana Suparna Sriram <asriram>
Priority: unspecified    
Version: 7.0CC: afrahman, ceph-eng-bugs, cephqe-warriors
Target Milestone: ---   
Target Release: 7.1z3   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 2307504 (view as bug list) Environment:
Last Closed: 2024-12-23 07:16:58 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2307504    

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