diff options
author | Gil Bregman <gbregman@il.ibm.com> | 2024-09-11 16:05:43 +0200 |
---|---|---|
committer | Gil Bregman <gbregman@il.ibm.com> | 2024-09-11 16:05:43 +0200 |
commit | 02bbd3cf3c1106ff0682c7e84281f205b52174df (patch) | |
tree | 8a22dc963df2a3ba9e5f053d0b8cdf2a5251830e /src/python-common/ceph/deployment/service_spec.py | |
parent | Merge pull request #59635 from zdover23/wip-doc-2024-09-06-rados-ops-health-c... (diff) | |
download | ceph-02bbd3cf3c1106ff0682c7e84281f205b52174df.tar.xz ceph-02bbd3cf3c1106ff0682c7e84281f205b52174df.zip |
python-common/ceph/deployment: Make the discovery and gateway IPs configurable in NVMEof configuration
Fixes https://tracker.ceph.com/issues/68030
Signed-off-by: Gil Bregman <gbregman@il.ibm.com>
Diffstat (limited to '')
-rw-r--r-- | src/python-common/ceph/deployment/service_spec.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/python-common/ceph/deployment/service_spec.py b/src/python-common/ceph/deployment/service_spec.py index 0efd10545c6..75b1ac75573 100644 --- a/src/python-common/ceph/deployment/service_spec.py +++ b/src/python-common/ceph/deployment/service_spec.py @@ -1315,6 +1315,7 @@ class NvmeofServiceSpec(ServiceSpec): service_id: Optional[str] = None, name: Optional[str] = None, group: Optional[str] = None, + addr: Optional[str] = None, port: Optional[int] = None, pool: Optional[str] = None, enable_auth: bool = False, @@ -1347,6 +1348,7 @@ class NvmeofServiceSpec(ServiceSpec): transport_tcp_options: Optional[Dict[str, int]] = {"in_capsule_data_size": 8192, "max_io_qpairs_per_ctrlr": 7}, tgt_cmd_extra_args: Optional[str] = None, + discovery_addr: Optional[str] = None, discovery_port: Optional[int] = None, log_level: Optional[str] = 'INFO', log_files_enabled: Optional[bool] = True, @@ -1378,6 +1380,8 @@ class NvmeofServiceSpec(ServiceSpec): #: RADOS pool where ceph-nvmeof config data is stored. self.pool = pool + #: ``addr`` address of the nvmeof gateway + self.addr = addr or "0.0.0.0" #: ``port`` port of the nvmeof gateway self.port = port or 5500 #: ``name`` name of the nvmeof gateway @@ -1442,6 +1446,8 @@ class NvmeofServiceSpec(ServiceSpec): self.transport_tcp_options: Optional[Dict[str, int]] = transport_tcp_options #: ``tgt_cmd_extra_args`` extra arguments for the nvmf_tgt process self.tgt_cmd_extra_args = tgt_cmd_extra_args + #: ``discovery_addr`` address of the discovery service + self.discovery_addr = discovery_addr or "0.0.0.0" #: ``discovery_port`` port of the discovery service self.discovery_port = discovery_port or 8009 #: ``log_level`` the nvmeof gateway log level |