Bug 2265328

Summary: Dashboard gives 500 error when attaching the policy to rgw roles
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: Afreen <afrahman>
Component: Ceph-DashboardAssignee: Afreen <afrahman>
Status: CLOSED ERRATA QA Contact: Chaithra <ckulal>
Severity: high Docs Contact: Disha Walvekar <dwalveka>
Priority: unspecified    
Version: 6.1CC: afrahman, asriram, ceph-eng-bugs, cephqe-warriors, ckulal, dwalveka, rpollack, saraut, shivgupt, tserlin
Target Milestone: ---   
Target Release: 7.0z2   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ceph-18.2.0-154.el9cp Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: 2260835 Environment:
Last Closed: 2024-05-07 12:10:51 UTC Type: ---
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: 2260835, 2267909    
Bug Blocks: 2270485    

Description Afreen 2024-02-21 14:06:43 UTC
+++ This bug was initially created as a clone of Bug #2260835 +++

Description of problem:
Ceph dashboard throws 500 Internal Server Error while accessing the RGW roles tab when policy are attached to roles

Version-Release number of selected component (if applicable):
RHCS 6.1, RHCS 7

How reproducible:
100%

Steps to Reproduce:
Create role:
# radosgw-admin role create --role-name=S3token1 --path=/ --assume-role-policy-doc=\{\"Statement\":\[\{\"Effect\":\"Allow\",\"Principal\":\{\"AWS\":\[\"arn:aws:iam:::user/test\"\]\},\"Action\":\[\"sts:AssumeRole\"\]\}\]\}

# attach policy to it:

#radosgw-admin role-policy put --role-name=S3token1 --policy-name=test --policy-doc="{\"Statement\":{\"Effect\":\"Allow\",\"Action\":\"s3:*\",\"Resource\":\"arn:aws:s3:::*\"}}"

and access the same from rgw user tab.

Actual results:
Accessing RGW roles tab throws 500 Internal Server Error

Expected results:
RGW roles tab should show the information correctly.

Comment 8 errata-xmlrpc 2024-05-07 12:10:51 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Red Hat Ceph Storage 7.0 Bug Fix update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2024:2743