]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/nfs: Update cluster qos_type from int to str
authorShweta Bhosale <Shweta.Bhosale1@ibm.com>
Mon, 16 Feb 2026 17:03:00 +0000 (22:33 +0530)
committerShweta Bhosale <Shweta.Bhosale1@ibm.com>
Mon, 27 Apr 2026 12:49:15 +0000 (18:19 +0530)
Fixes: https://tracker.ceph.com/issues/69861
Signed-off-by: Shweta Bhosale <Shweta.Bhosale1@ibm.com>
src/pybind/mgr/nfs/qos_conf.py
src/pybind/mgr/nfs/tests/test_nfs.py

index 1eb9eaaec471fb43ae94559cf20c0ac99d746956..dbebc11c60a74cad564a7f01497d47c0621ea96b 100644 (file)
@@ -34,9 +34,9 @@ class UserQoSType(Enum):
 
 
 class QOSType(Enum):
-    PerShare = 1
-    PerClient = 2
-    PerShare_PerClient = 3
+    PerShare = "Per_Export"
+    PerClient = "Per_Client"
+    PerShare_PerClient = "Per_Export_Per_Client"
 
 
 def _validate_qos_bw(bandwidth: str) -> int:
index b5b8645a9350b8ce0cef130ee486a1fabd3188cd..35e56224784af6a398a79e3f0402503916172dde 100644 (file)
@@ -150,7 +150,7 @@ QOS {
     enable_cluster_qos = true;
     enable_bw_control = true;
     combined_rw_bw_control = false;
-    qos_type = 3;
+    qos_type = "Per_Export_Per_Client";
     max_export_write_bw = 2000000;
     max_export_read_bw = 2000000;
     max_client_write_bw = 3000000;