Bug 2358641

Summary: [Ceph-Dashboard] 500 Internal Server Error - On Setting RGW Rate limit on Bucket and Verifying the changes
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: sohan singh <sohsingh>
Component: Ceph-DashboardAssignee: naman munet <nmunet>
Status: CLOSED ERRATA QA Contact: sohan singh <sohsingh>
Severity: urgent Docs Contact: Rivka Pollack <rpollack>
Priority: urgent    
Version: 8.1CC: afrahman, ceph-eng-bugs, cephqe-warriors, dwalveka, mkasturi, nmunet, tserlin
Target Milestone: ---Keywords: TestBlocker
Target Release: 8.1   
Hardware: Unspecified   
OS: Other   
Whiteboard:
Fixed In Version: ceph-19.2.1-132.el9cp Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2025-06-26 12:23:25 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
500 Internal Error none

Description sohan singh 2025-04-09 15:11:18 UTC
Created attachment 2084083 [details]
500 Internal Error

Created attachment 2084083 [details]
500 Internal Error

Created attachment 2084083 [details]
500 Internal Error

Created attachment 2084083 [details]
500 Internal Error

Description of problem:
Unable to set rate limit

CEPH VERSION :

ceph version 19.2.1-107.el9cp (7f273f378fa32c1ed8914aa40dd568291b21003d) squid (stable)

[ceph: root@ceph-sohan-8-1-usu0pp-node1-installer /]# ceph -s
  cluster:
    id:     9de7e068-1548-11f0-b9e6-fa163e4d99a9
    health: HEALTH_OK

  services:
    mon: 3 daemons, quorum ceph-sohan-8-1-usu0pp-node1-installer,ceph-sohan-8-1-usu0pp-node3,ceph-sohan-8-1-usu0pp-node2 (age 84m)
    mgr: ceph-sohan-8-1-usu0pp-node1-installer.yurcbv(active, since 88m), standbys: ceph-sohan-8-1-usu0pp-node2.oilsqw
    osd: 16 osds: 16 up (since 79m), 16 in (since 80m)
    rgw: 1 daemon active (1 hosts, 1 zones)

  data:
    pools:   7 pools, 673 pgs
    objects: 229 objects, 456 KiB
    usage:   1.1 GiB used, 319 GiB / 320 GiB avail
    pgs:     673 active+clean

  io:
    client:   2.9 KiB/s rd, 0 B/s wr, 2 op/s rd, 1 op/s wr



MGR LOGS 
===========

025-04-09T15:06:07.116+0000 7fd835f63640  0 [dashboard INFO rgw_client] Found RGW daemon with configuration: host=10.0.67.85, port=80, ssl=False
2025-04-09T15:06:07.139+0000 7fd835f63640  0 [dashboard INFO request] [::ffff:10.74.16.13:52253] [GET] [200] [0.026s] [admin] [526.0B] /api/rgw/bucket
2025-04-09T15:06:07.946+0000 7fd834f61640  0 [dashboard ERROR exception] Dashboard Exception
Traceback (most recent call last):
  File "/usr/share/ceph/mgr/dashboard/services/exception.py", line 48, in dashboard_exception_handler
    return handler(*args, **kwargs)
  File "/lib/python3.9/site-packages/cherrypy/_cpdispatch.py", line 54, in __call__
    return self.callable(*self.args, **self.kwargs)
  File "/usr/share/ceph/mgr/dashboard/controllers/_base_controller.py", line 263, in inner
    ret = func(*args, **kwargs)
  File "/usr/share/ceph/mgr/dashboard/controllers/rgw.py", line 763, in set_rate_limit
    return rgwBucketRateLimit_instance.set_rateLimit('bucket', enabled, uid,
  File "/usr/share/ceph/mgr/dashboard/services/rgw_client.py", line 1501, in set_rateLimit
    raise DashboardException(f'Unable to set rate limit: {err}',
dashboard.exceptions.DashboardException: Unable to set rate limit: 2025-04-09T15:06:07.773+0000 7fedd1d488c0 20 rados->read ofs=0 len=0
2025-04-09T15:06:07.777+0000 7fedd1d488c0 20 rados_obj.operate() r=-2 bl.length=0
2025-04-09T15:06:07.777+0000 7fedd1d488c0 20 realm

====================

LOGS :  http://magna002.ceph.redhat.com/ceph-qe-logs/sohan/logs/BZ-2358641/


On Creating the Bucket and Setting the Rate limit for the bucket ,

On Verifying by checking on Buckets -> Advanced : observed the 500 Internal Server Errors. Couldn't check the rate limits on dashboard

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

ceph version 19.2.1-107.el9cp (7f273f378fa32c1ed8914aa40dd568291b21003d) squid (stable)

How reproducible:
 YES 

Steps to Reproduce:
On Creating the Bucket and Setting the Rate limit for the bucket ,

On Verifying by checking on Buckets -> Advanced : observed the 500 Internal Server Errors. Couldn't check the rate limits on dashboard


Actual results:

500 Internal Server Error

Expected results:

 Should be able to fetch the details on dashboard

Additional info:

Comment 8 errata-xmlrpc 2025-06-26 12:23:25 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 (Important: Red Hat Ceph Storage 8.1 security, bug fix, and enhancement updates), 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/RHSA-2025:9775