Bug 2267909 - Dashboard gives 500 error when attaching the policy to rgw roles
Summary: Dashboard gives 500 error when attaching the policy to rgw roles
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Ceph Storage
Classification: Red Hat Storage
Component: Ceph-Dashboard
Version: 6.1
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
: 6.1z5
Assignee: Afreen
QA Contact: Chaithra
Akash Raj
URL:
Whiteboard:
Depends On: 2260835
Blocks: 2265328 2267617
TreeView+ depends on / blocked
 
Reported: 2024-03-05 14:21 UTC by Afreen
Modified: 2024-04-01 10:20 UTC (History)
11 users (show)

Fixed In Version: ceph-17.2.6-201.el9cp
Doc Type: No Doc Update
Doc Text:
Clone Of: 2260835
Environment:
Last Closed: 2024-04-01 10:20:28 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github ceph ceph pull 55516 0 None Merged quincy: mgr/dashboard: fix error while accessing roles tab when policy attached 2024-03-05 14:25:02 UTC
Red Hat Issue Tracker RHCEPH-8434 0 None None None 2024-03-05 14:24:12 UTC
Red Hat Issue Tracker RHCSDASH-1287 0 None None None 2024-03-05 14:24:21 UTC
Red Hat Product Errata RHBA-2024:1580 0 None None None 2024-04-01 10:20:38 UTC

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


Note You need to log in before you can comment on or make changes to this bug.