Bug 2299816

Summary: ceph.quota.max_bytes accepting Values like TG, GT, KT
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: Amarnath <amk>
Component: CephFSAssignee: Neeraj Pratap Singh <neesingh>
Status: CLOSED ERRATA QA Contact: Hemanth Kumar <hyelloji>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 7.1CC: ceph-eng-bugs, cephqe-warriors, dwalveka, gfarnum, neesingh, ngangadh, tserlin, vshankar
Target Milestone: ---   
Target Release: 7.1z3   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ceph-18.2.1-294.el9cp Doc Type: Enhancement
Doc Text:
.`quota.max_bytes` is now set in more understandable size values Previously, the `quota.max_bytes` value was set in bytes, resulting in often very large size values, which were hard to set or change. With this enhancement, the `quota.max_bytes` values can now be set with human-friendly values, such as M/Mi, G/Gi, or T/Ti. For example, 10GiB or 100K.
Story Points: ---
Clone Of:
: 2344791 2345288 2345555 (view as bug list) Environment:
Last Closed: 2025-02-24 15:42:32 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:
Bug Depends On:    
Bug Blocks: 2345555, 2344791, 2345288    

Description Amarnath 2024-07-25 10:01:00 UTC
Description of problem:
ceph.quota.max_bytes accepting Values like TG, GT, KT 

The negative case is failing because it accepts Values like TG, GT, KT and setting the values to first letter
[root@ceph-amk-verify-y5cb3c-node7 /]# setfattr -n ceph.quota.max_bytes -v 1TG /mnt/ceph-fuse/test_quota/
[root@ceph-amk-verify-y5cb3c-node7 /]# setfattr -n ceph.quota.max_bytes -v 1GT /mnt/ceph-fuse/test_quota/
[root@ceph-amk-verify-y5cb3c-node7 /]# setfattr -n ceph.quota.max_bytes -v 1KT /mnt/ceph-fuse/test_quota/
[root@ceph-amk-verify-y5cb3c-node7 /]# getfattr -n ceph.quota.max_bytes /mnt/ceph-fuse/test_quota/
getfattr: Removing leading '/' from absolute path names
# file: mnt/ceph-fuse/test_quota/
ceph.quota.max_bytes="1024"

Please refer : https://bugzilla.redhat.com/show_bug.cgi?id=2294244#c19 

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


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 1 Storage PM bot 2024-07-25 10:01:10 UTC
Please specify the severity of this bug. Severity is defined here:
https://bugzilla.redhat.com/page.cgi?id=fields.html#bug_severity.

Comment 12 errata-xmlrpc 2025-02-24 15:42:32 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.1 security, bug fix, enhancement, and known issue 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/RHBA-2025:1770

Comment 13 Red Hat Bugzilla 2025-06-25 04:25:06 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 120 days