From: Shweta Bhosale Date: Fri, 30 May 2025 11:35:29 +0000 (+0530) Subject: mgr/nfs: update QOS minimum BandWidth value and IOPS max value X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=3cdfbdc4f765af70c7fa88e9c36e1f214793a1f1;p=ceph.git mgr/nfs: update QOS minimum BandWidth value and IOPS max value Fixes: https://tracker.ceph.com/issues/69458 Signed-off-by: Shweta Bhosale --- diff --git a/src/pybind/mgr/nfs/qos_conf.py b/src/pybind/mgr/nfs/qos_conf.py index ea2ccdd5a7ea..3626be025aa3 100644 --- a/src/pybind/mgr/nfs/qos_conf.py +++ b/src/pybind/mgr/nfs/qos_conf.py @@ -38,19 +38,19 @@ class QOSType(Enum): def _validate_qos_bw(bandwidth: str) -> int: - min_bw = 1024 * 1024 # 1MiB + min_bw = 128 * 1024 # 128KiB max_bw = 100 * 1024 * 1024 * 1024 # 100GiB bw_bytes = with_units_to_int(bandwidth) if bw_bytes != 0 and (bw_bytes < min_bw or bw_bytes > max_bw): raise Exception( - f"Provided bandwidth value is not in range, Please enter a value between {min_bw} (1MiB) and {max_bw} (100GiB) bytes per second." + f"Provided bandwidth value is not in range, Please enter a value between {min_bw} (128KiB) and {max_bw} (100GiB) bytes per second." ) return bw_bytes def _validate_qos_ops(count: int) -> int: min_cnt = 10 - max_cnt = 409600 + max_cnt = 1638400 if count != 0 and (count < min_cnt or count > max_cnt): raise Exception( f"Provided IOS count value is not in range, Please enter a value between {min_cnt} and {max_cnt} count per second."