Bug 2019878

Summary: [cee/sd][rgw][rfe] add method to modify role max_session_duration for existing role
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: Tomas Petr <tpetr>
Component: RGWAssignee: Matt Benjamin (redhat) <mbenjamin>
Status: CLOSED ERRATA QA Contact: Madhavi Kasturi <mkasturi>
Severity: medium Docs Contact:
Priority: medium    
Version: 4.2CC: cbodley, ceph-eng-bugs, kbader, mbenjamin, mkasturi, mmuench, prsrivas, tserlin, vereddy, vimishra
Target Milestone: ---Keywords: FutureFeature
Target Release: 4.3z1   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ceph-14.2.22-128.el8cp, ceph-14.2.22-128.el7cp Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: 2019870 Environment:
Last Closed: 2022-09-22 11:21:04 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:

Description Tomas Petr 2021-11-03 14:25:33 UTC
+++ This bug was initially created as a clone of Bug #2019870 +++

Description of problem:
Currently there is no option to modify max_session_duration for existing roles, such attempt returns: "MethodNotAllowed", HTTP status 405.  

----
Example of boto3 code is:
iam_client.update_role(
RoleName=myrole,
MaxSessionDuration=43200
)
----

Using "radosgw-admin role modify" does not work either:
# radosgw-admin role modify --role-name=S3Access1 --max-session-duration=7200
ERROR: invalid flag --max-session-duration=7200


Version-Release number of selected component (if applicable):
RHCS 4

How reproducible:
always

Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 20 errata-xmlrpc 2022-09-22 11:21:04 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 4.3 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-2022:6684