Bug 2299816 - ceph.quota.max_bytes accepting Values like TG, GT, KT [NEEDINFO]
Summary: ceph.quota.max_bytes accepting Values like TG, GT, KT
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Ceph Storage
Classification: Red Hat Storage
Component: CephFS
Version: 7.1
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
: 7.1z3
Assignee: Neeraj Pratap Singh
QA Contact: Hemanth Kumar
URL:
Whiteboard:
Depends On:
Blocks: 2345288 2345555 2344791
TreeView+ depends on / blocked
 
Reported: 2024-07-25 10:01 UTC by Amarnath
Modified: 2025-02-24 15:42 UTC (History)
8 users (show)

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.
Clone Of:
: 2344791 2345288 2345555 (view as bug list)
Environment:
Last Closed: 2025-02-24 15:42:32 UTC
Embargoed:
hyelloji: needinfo? (neesingh)


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Ceph Project Bug Tracker 67169 0 None None None 2024-08-06 15:24:39 UTC
Red Hat Issue Tracker RHCEPH-9407 0 None None None 2024-07-25 10:01:44 UTC
Red Hat Product Errata RHBA-2025:1770 0 None None None 2025-02-24 15:42:48 UTC

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


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