]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/cephadm/nvmeof: Increase the default limit of max_namespaces 64477/head
authorGil Bregman <gbregman@il.ibm.com>
Mon, 14 Jul 2025 12:28:48 +0000 (15:28 +0300)
committerGil Bregman <gbregman@il.ibm.com>
Tue, 15 Jul 2025 07:50:31 +0000 (10:50 +0300)
Fixes https://tracker.ceph.com/issues/72108

Signed-off-by: Gil Bregman <gbregman@il.ibm.com>
src/pybind/mgr/cephadm/tests/test_services.py
src/pybind/mgr/dashboard/controllers/nvmeof.py
src/pybind/mgr/dashboard/frontend/src/app/ceph/block/nvmeof-subsystems-details/nvmeof-subsystems-details.component.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/block/nvmeof-subsystems-form/nvmeof-subsystems-form.component.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/shared/api/nvmeof.service.ts
src/pybind/mgr/dashboard/openapi.yaml
src/python-common/ceph/deployment/service_spec.py

index 46cc2033b6538633bc4dc1fe210bcc28a83f6b62..e552c0e93c915443c5e5a7df9857d951de42e260 100644 (file)
@@ -387,8 +387,8 @@ max_hosts_per_namespace = 8
 max_namespaces_with_netmask = 1000
 max_subsystems = 128
 max_hosts = 2048
-max_namespaces = 2048
-max_namespaces_per_subsystem = 256
+max_namespaces = 4096
+max_namespaces_per_subsystem = 512
 max_hosts_per_subsystem = 128
 subsystem_cache_expiration = 5
 
index c7d5d320d95eb671520af45e53b938ce9726680a..34517159533a2e93635760921365b867659f00dd 100644 (file)
@@ -179,7 +179,7 @@ else:
             "Create a new NVMeoF subsystem",
             parameters={
                 "nqn": Param(str, "NVMeoF subsystem NQN"),
-                "max_namespaces": Param(int, "Maximum number of namespaces", True, 1024),
+                "max_namespaces": Param(int, "Maximum number of namespaces", True, 4096),
                 "enable_ha": Param(bool, "Enable high availability"),
                 "gw_group": Param(str, "NVMeoF gateway group", True, None),
             },
@@ -188,7 +188,7 @@ else:
         @NvmeofCLICommand("nvmeof subsystem add", model.RequestStatus)
         @convert_to_model(model.SubsystemStatus)
         @handle_nvmeof_error
-        def create(self, nqn: str, enable_ha: bool = True, max_namespaces: int = 1024,
+        def create(self, nqn: str, enable_ha: bool = True, max_namespaces: int = 4096,
                    gw_group: Optional[str] = None, traddr: Optional[str] = None):
             return NVMeoFClient(gw_group=gw_group, traddr=traddr).stub.create_subsystem(
                 NVMeoFClient.pb2.create_subsystem_req(
index 90817e13f9eadd7fc4fdf155aeb13493232b6973..563ef314386fb6ff23f6f7956a4d31328f0ef401 100644 (file)
@@ -27,7 +27,7 @@ describe('NvmeofSubsystemsDetailsComponent', () => {
       subtype: 'NVMe',
       nqn: 'nqn.2001-07.com.ceph:1720603703820',
       namespace_count: 1,
-      max_namespaces: 256
+      max_namespaces: 4096
     };
     component.permissions = new Permissions({
       grafana: ['read']
index 0f34803b7efb1919516c4fa73e95cc97a777fcef..af178560b30caf0157dedee27f300b617037eaa8 100644 (file)
@@ -80,7 +80,7 @@ describe('NvmeofSubsystemsFormComponent', () => {
     });
 
     it(`should give error on max_namespaces greater than ${MAX_NAMESPACE}`, () => {
-      formHelper.setValue('max_namespaces', 2000);
+      formHelper.setValue('max_namespaces', 6000);
       component.onSubmit();
       formHelper.expectError('max_namespaces', 'max');
     });
index 3c6a75d26aeeeac61f1dc964011928517049f371..02d0030d6cff56c980dd753afb6760eeecbd4162 100644 (file)
@@ -6,7 +6,7 @@ import { Observable, of as observableOf } from 'rxjs';
 import { catchError, mapTo } from 'rxjs/operators';
 import { CephServiceSpec } from '../models/service.interface';
 
-export const MAX_NAMESPACE = 1024;
+export const MAX_NAMESPACE = 4096;
 
 export type GatewayGroup = CephServiceSpec;
 
index 2facd7f22d88eae79963d4eda45af52083f4ce55..be1ff6b5af12f987a1c8cc018d3eda7e68216d2b 100755 (executable)
@@ -8559,7 +8559,7 @@ paths:
                   description: NVMeoF gateway group
                   type: string
                 max_namespaces:
-                  default: 1024
+                  default: 4096
                   description: Maximum number of namespaces
                   type: integer
                 nqn:
index ced9018a58d20325a9ed9f414b936f4da03dfdc0..c75139b7b454acf0e69b5677dbc408b098b5541d 100644 (file)
@@ -1407,8 +1407,8 @@ class NvmeofServiceSpec(ServiceSpec):
                  max_namespaces_with_netmask: Optional[int] = 1000,
                  max_subsystems: Optional[int] = 128,
                  max_hosts: Optional[int] = 2048,
-                 max_namespaces: Optional[int] = 2048,
-                 max_namespaces_per_subsystem: Optional[int] = 256,
+                 max_namespaces: Optional[int] = 4096,
+                 max_namespaces_per_subsystem: Optional[int] = 512,
                  max_hosts_per_subsystem: Optional[int] = 128,
                  subsystem_cache_expiration: Optional[int] = 5,
                  server_key: Optional[str] = None,