mirror of
https://github.com/ceph/ceph
synced 2025-03-25 11:48:05 +00:00
mgr/cephadm: Expose nvmeof gateway configuration parameters through specifications
- min_controller_id, max_controller_id: Enable the specification of minimum and maximum controller IDs utilized by the SPDK. Having distinct controller IDs is vital for configuring multipath setups. - enable_spdk_discovery_controller: Manage whether the SPDK or ceph-nvmeof discovery service is employed. The default value is set to False. Signed-off-by: Alexander Indenbaum <aindenba@redhat.com>
This commit is contained in:
parent
7325a8d317
commit
ea3f155d90
@ -7,6 +7,9 @@ port = {{ port }}
|
||||
enable_auth = {{ spec.enable_auth }}
|
||||
state_update_notify = True
|
||||
state_update_interval_sec = 5
|
||||
min_controller_id = {{ spec.min_controller_id }}
|
||||
max_controller_id = {{ spec.max_controller_id }}
|
||||
enable_spdk_discovery_controller = {{ spec.enable_spdk_discovery_controller }}
|
||||
|
||||
[ceph]
|
||||
pool = {{ spec.pool }}
|
||||
|
@ -390,6 +390,9 @@ port = {default_port}
|
||||
enable_auth = False
|
||||
state_update_notify = True
|
||||
state_update_interval_sec = 5
|
||||
min_controller_id = 1
|
||||
max_controller_id = 65519
|
||||
enable_spdk_discovery_controller = False
|
||||
|
||||
[ceph]
|
||||
pool = {pool}
|
||||
|
@ -1131,6 +1131,9 @@ class NvmeofServiceSpec(ServiceSpec):
|
||||
port: Optional[int] = None,
|
||||
pool: Optional[str] = None,
|
||||
enable_auth: bool = False,
|
||||
min_controller_id: Optional[str] = '1',
|
||||
max_controller_id: Optional[str] = '65519',
|
||||
enable_spdk_discovery_controller: Optional[bool] = False,
|
||||
server_key: Optional[str] = None,
|
||||
server_cert: Optional[str] = None,
|
||||
client_key: Optional[str] = None,
|
||||
@ -1171,6 +1174,12 @@ class NvmeofServiceSpec(ServiceSpec):
|
||||
self.group = group
|
||||
#: ``enable_auth`` enables user authentication on nvmeof gateway
|
||||
self.enable_auth = enable_auth
|
||||
#: ``min_controller_id`` minimum controller id used by SPDK, essential for multipath
|
||||
self.min_controller_id = min_controller_id
|
||||
#: ``max_controller_id`` maximum controller id used by SPDK, essential for multipath
|
||||
self.max_controller_id = max_controller_id
|
||||
#: ``enable_spdk_discovery_controller`` SPDK or ceph-nvmeof discovery service
|
||||
self.enable_spdk_discovery_controller = enable_spdk_discovery_controller
|
||||
#: ``server_key`` gateway server key
|
||||
self.server_key = server_key or './server.key'
|
||||
#: ``server_cert`` gateway server certificate
|
||||
|
Loading…
Reference in New Issue
Block a user