Project

General

Profile

Bug #65506

Updated by Afreen Misbah about 1 month ago

*Rgw roles tests failing with 500 internal server error:* 

 <pre><code class="javascript"> 
 {"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"}                                                                                                                                                                                                                                                                                                                        
 </code></pre> 

 *The mgr logs says:* 

 <pre><code class="python"> 
 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' 
 </code></pre> 


 *Looks like new field coming in which dashboard does not support:* 
 <pre><code class="javascript"> 

     { 
         "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": "" 
     } 

 </code></pre> 

 Fix: 

 Need to support both "Description" and "AccountId" in dashboard.

Back