Skip to content

Commit e680d5c

Browse files
authored
Merge pull request ceph#64477 from gbregman/main
mgr/cephadm/nvmeof: Increase the default limit of max_namespaces
2 parents be41017 + 4b638e7 commit e680d5c

File tree

7 files changed

+10
-10
lines changed

7 files changed

+10
-10
lines changed

src/pybind/mgr/cephadm/tests/test_services.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -387,8 +387,8 @@ def test_nvmeof_config(self, _get_name, _run_cephadm, cephadm_module: CephadmOrc
387387
max_namespaces_with_netmask = 1000
388388
max_subsystems = 128
389389
max_hosts = 2048
390-
max_namespaces = 2048
391-
max_namespaces_per_subsystem = 256
390+
max_namespaces = 4096
391+
max_namespaces_per_subsystem = 512
392392
max_hosts_per_subsystem = 128
393393
subsystem_cache_expiration = 5
394394

src/pybind/mgr/dashboard/controllers/nvmeof.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ def get(self, nqn: str, gw_group: Optional[str] = None, traddr: Optional[str] =
179179
"Create a new NVMeoF subsystem",
180180
parameters={
181181
"nqn": Param(str, "NVMeoF subsystem NQN"),
182-
"max_namespaces": Param(int, "Maximum number of namespaces", True, 1024),
182+
"max_namespaces": Param(int, "Maximum number of namespaces", True, 4096),
183183
"enable_ha": Param(bool, "Enable high availability"),
184184
"gw_group": Param(str, "NVMeoF gateway group", True, None),
185185
},
@@ -188,7 +188,7 @@ def get(self, nqn: str, gw_group: Optional[str] = None, traddr: Optional[str] =
188188
@NvmeofCLICommand("nvmeof subsystem add", model.RequestStatus)
189189
@convert_to_model(model.SubsystemStatus)
190190
@handle_nvmeof_error
191-
def create(self, nqn: str, enable_ha: bool = True, max_namespaces: int = 1024,
191+
def create(self, nqn: str, enable_ha: bool = True, max_namespaces: int = 4096,
192192
gw_group: Optional[str] = None, traddr: Optional[str] = None):
193193
return NVMeoFClient(gw_group=gw_group, traddr=traddr).stub.create_subsystem(
194194
NVMeoFClient.pb2.create_subsystem_req(

src/pybind/mgr/dashboard/frontend/src/app/ceph/block/nvmeof-subsystems-details/nvmeof-subsystems-details.component.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ describe('NvmeofSubsystemsDetailsComponent', () => {
2727
subtype: 'NVMe',
2828
nqn: 'nqn.2001-07.com.ceph:1720603703820',
2929
namespace_count: 1,
30-
max_namespaces: 256
30+
max_namespaces: 4096
3131
};
3232
component.permissions = new Permissions({
3333
grafana: ['read']

src/pybind/mgr/dashboard/frontend/src/app/ceph/block/nvmeof-subsystems-form/nvmeof-subsystems-form.component.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ describe('NvmeofSubsystemsFormComponent', () => {
8080
});
8181

8282
it(`should give error on max_namespaces greater than ${MAX_NAMESPACE}`, () => {
83-
formHelper.setValue('max_namespaces', 2000);
83+
formHelper.setValue('max_namespaces', 6000);
8484
component.onSubmit();
8585
formHelper.expectError('max_namespaces', 'max');
8686
});

src/pybind/mgr/dashboard/frontend/src/app/shared/api/nvmeof.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { Observable, of as observableOf } from 'rxjs';
66
import { catchError, mapTo } from 'rxjs/operators';
77
import { CephServiceSpec } from '../models/service.interface';
88

9-
export const MAX_NAMESPACE = 1024;
9+
export const MAX_NAMESPACE = 4096;
1010

1111
export type GatewayGroup = CephServiceSpec;
1212

src/pybind/mgr/dashboard/openapi.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8559,7 +8559,7 @@ paths:
85598559
description: NVMeoF gateway group
85608560
type: string
85618561
max_namespaces:
8562-
default: 1024
8562+
default: 4096
85638563
description: Maximum number of namespaces
85648564
type: integer
85658565
nqn:

src/python-common/ceph/deployment/service_spec.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1407,8 +1407,8 @@ def __init__(self,
14071407
max_namespaces_with_netmask: Optional[int] = 1000,
14081408
max_subsystems: Optional[int] = 128,
14091409
max_hosts: Optional[int] = 2048,
1410-
max_namespaces: Optional[int] = 2048,
1411-
max_namespaces_per_subsystem: Optional[int] = 256,
1410+
max_namespaces: Optional[int] = 4096,
1411+
max_namespaces_per_subsystem: Optional[int] = 512,
14121412
max_hosts_per_subsystem: Optional[int] = 128,
14131413
subsystem_cache_expiration: Optional[int] = 5,
14141414
server_key: Optional[str] = None,

0 commit comments

Comments
 (0)