From: Guillaume Abrioux Date: Wed, 24 Jan 2024 15:08:14 +0000 (+0000) Subject: mgr/cephadm: add a new config option 'oob_default_addr' X-Git-Tag: v19.1.0~384^2~3 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=51bda540d63059bc8053a1c0f6f7a4315291f46f;p=ceph.git mgr/cephadm: add a new config option 'oob_default_addr' So there's a default value (169.254.1.1) which is the default address for the 'OS to iDrac pass-through' interface. Given that node-proxy will reach the RedFish API through this interface, we can make users avoid to pass that addr when providing the host spec at bootstrap time. Signed-off-by: Guillaume Abrioux --- diff --git a/src/pybind/mgr/cephadm/module.py b/src/pybind/mgr/cephadm/module.py index 5c5e602e944fc..1451943ab28aa 100644 --- a/src/pybind/mgr/cephadm/module.py +++ b/src/pybind/mgr/cephadm/module.py @@ -495,6 +495,12 @@ class CephadmOrchestrator(orchestrator.Orchestrator, MgrModule, desc="Destination for cephadm command's persistent logging", enum_allowed=['file', 'syslog', 'file,syslog'], ), + Option( + 'oob_default_addr', + type='str', + default='169.254.1.1', + desc="Default address for RedFish API (oob management)." + ), ] def __init__(self, *args: Any, **kwargs: Any): @@ -579,6 +585,7 @@ class CephadmOrchestrator(orchestrator.Orchestrator, MgrModule, self.log_refresh_metadata = False self.default_cephadm_command_timeout = 0 self.cephadm_log_destination = '' + self.oob_default_addr = '' self.notify(NotifyType.mon_map, None) self.config_notify() @@ -1631,7 +1638,7 @@ Then run the following: if spec.oob: if not spec.oob.get('addr'): - spec.oob['addr'] = spec.hostname + spec.oob['addr'] = self.oob_default_addr if not spec.oob.get('port'): spec.oob['port'] = '443' host_oob_info = dict()