Project

General

Profile

Actions

Bug #65506

closed

rgw roles e2e tests failure

Added by Afreen Misbah 14 days ago. Updated 12 days ago.

Status:
Resolved
Priority:
High
Assignee:
Category:
Component - RGW
Target version:
-
% Done:

100%

Source:
Tags:
backport_processed
Backport:
squid
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

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.


Related issues 1 (0 open1 closed)

Copied to Dashboard - Backport #65542: squid: rgw roles e2e tests failure ResolvedAfreen MisbahActions
Actions #1

Updated by Afreen Misbah 14 days ago

  • Description updated (diff)
Actions #2

Updated by Afreen Misbah 14 days ago

  • % Done changed from 0 to 100
  • Pull request ID set to 56919
Actions #3

Updated by Afreen Misbah 14 days ago

  • Status changed from In Progress to Fix Under Review
Actions #4

Updated by Afreen Misbah 14 days ago

  • Backport set to squid

Same issue happening on squid hence adding backport

Actions #5

Updated by Afreen Misbah 13 days ago

  • Status changed from Fix Under Review to Pending Backport
Actions #6

Updated by Backport Bot 13 days ago

Actions #7

Updated by Backport Bot 13 days ago

  • Tags set to backport_processed
Actions #8

Updated by Nizamudeen A 12 days ago

  • Status changed from Pending Backport to Resolved
Actions

Also available in: Atom PDF