Actions
Bug #65506
closedrgw roles e2e tests failure
% Done:
100%
Source:
Tags:
backport_processed
Backport:
squid
Regression:
No
Severity:
3 - minor
Reviewed:
Description
Rgw roles tests failing with 500 internal server error:
{"status": "500 Internal Server Error", "detail": "The server encountered an unexpected condition which prevented it from fulfilling the request.", "request_id": "551af890-eb9c-4bc9-9f7f-bd481952ac06"}
The mgr logs says:
2024-04-16T06:53:05.932+0000 7fce667ff640 0 [dashboard ERROR exception] Internal Server Error
Traceback (most recent call last):
File "/home/jenkins-build/build/workspace/ceph-dashboard-pull-requests/src/pybind/mgr/dashboard/services/exception.py", line 47, in dashboard_exception_handler
return handler(*args, **kwargs)
File "/usr/lib/python3/dist-packages/cherrypy/_cpdispatch.py", line 54, in __call__
return self.callable(*self.args, **self.kwargs)
File "/home/jenkins-build/build/workspace/ceph-dashboard-pull-requests/src/pybind/mgr/dashboard/controllers/_base_controller.py", line 263, in inner
ret = func(*args, **kwargs)
File "/home/jenkins-build/build/workspace/ceph-dashboard-pull-requests/src/pybind/mgr/dashboard/controllers/_rest_controller.py", line 193, in wrapper
return func(*vpath, **params)
File "/home/jenkins-build/build/workspace/ceph-dashboard-pull-requests/src/pybind/mgr/dashboard/controllers/_crud.py", line 381, in _list
items.append(serialize(cls(**item)))
TypeError: RgwUserRole.__new__() got an unexpected keyword argument 'Description'
Looks like new field coming in which dashboard does not support:
{
"RoleId": "68824d36-8415-4966-aa3b-07028d8446d5",
"RoleName": "dnkjd",
"Path": "/",
"Arn": "arn:aws:iam:::role/dnkjd",
"CreateDate": "2024-04-16T10:42:04.462Z",
"Description": "",
"MaxSessionDuration": 3600,
"AssumeRolePolicyDocument": "{}",
"AccountId": ""
}
Fix:
Need to support both "Description" and "AccountId" in dashboard.
Actions