Skip to content

Commit 02bbd3c

Browse files
committed
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 <[email protected]>
1 parent 8b0f3a5 commit 02bbd3c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1315,6 +1315,7 @@ def __init__(self,
13151315
service_id: Optional[str] = None,
13161316
name: Optional[str] = None,
13171317
group: Optional[str] = None,
1318+
addr: Optional[str] = None,
13181319
port: Optional[int] = None,
13191320
pool: Optional[str] = None,
13201321
enable_auth: bool = False,
@@ -1347,6 +1348,7 @@ def __init__(self,
13471348
transport_tcp_options: Optional[Dict[str, int]] =
13481349
{"in_capsule_data_size": 8192, "max_io_qpairs_per_ctrlr": 7},
13491350
tgt_cmd_extra_args: Optional[str] = None,
1351+
discovery_addr: Optional[str] = None,
13501352
discovery_port: Optional[int] = None,
13511353
log_level: Optional[str] = 'INFO',
13521354
log_files_enabled: Optional[bool] = True,
@@ -1378,6 +1380,8 @@ def __init__(self,
13781380

13791381
#: RADOS pool where ceph-nvmeof config data is stored.
13801382
self.pool = pool
1383+
#: ``addr`` address of the nvmeof gateway
1384+
self.addr = addr or "0.0.0.0"
13811385
#: ``port`` port of the nvmeof gateway
13821386
self.port = port or 5500
13831387
#: ``name`` name of the nvmeof gateway
@@ -1442,6 +1446,8 @@ def __init__(self,
14421446
self.transport_tcp_options: Optional[Dict[str, int]] = transport_tcp_options
14431447
#: ``tgt_cmd_extra_args`` extra arguments for the nvmf_tgt process
14441448
self.tgt_cmd_extra_args = tgt_cmd_extra_args
1449+
#: ``discovery_addr`` address of the discovery service
1450+
self.discovery_addr = discovery_addr or "0.0.0.0"
14451451
#: ``discovery_port`` port of the discovery service
14461452
self.discovery_port = discovery_port or 8009
14471453
#: ``log_level`` the nvmeof gateway log level

0 commit comments

Comments
 (0)