Bug 2267909

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: Akash Raj <akraj>
Priority: unspecified    
Version: 6.1CC: afrahman, akraj, asriram, ceph-eng-bugs, cephqe-warriors, ckulal, saraut, shivgupt, tserlin, vereddy, vpapnoi
Target Milestone: ---   
Target Release: 6.1z5   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ceph-17.2.6-201.el9cp Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: 2260835 Environment:
Last Closed: 2024-04-01 10:20:28 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    
Bug Blocks: 2265328, 2267617    

Description Afreen 2024-03-05 14:21:45 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.

--- Additional comment from  on 2024-03-05 07:18:58 UTC ---

Hello all,

This BZ is merged in 7.1 downstream.
Here is the PR link: https://gitlab.cee.redhat.com/ceph/ceph/-/merge_requests/497/commits
Here are the commit IDs:
83150de4e108c4d496fdaec1ef48a72d441614e0
42f964b42cafd29e5bf51dcec0781d8de73a8acd

Hence moving this BZ to MODIFIED.

Thanks!

Comment 9 errata-xmlrpc 2024-04-01 10:20:28 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 6.1 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:1580