desc='Default timeout applied to cephadm commands run directly on '
'the host (in seconds)'
),
+ Option(
+ 'cephadm_log_destination',
+ type='str',
+ default='',
+ desc="Destination for cephadm command's persistent logging",
+ enum_allowed=['file', 'syslog', 'file,syslog'],
+ ),
]
def __init__(self, *args: Any, **kwargs: Any):
self.cgroups_split = True
self.log_refresh_metadata = False
self.default_cephadm_command_timeout = 0
+ self.cephadm_log_destination = ''
self.notify(NotifyType.mon_map, None)
self.config_notify()
timeout -= 5
final_args += ['--timeout', str(timeout)]
+ if self.mgr.cephadm_log_destination:
+ values = self.mgr.cephadm_log_destination.split(',')
+ for value in values:
+ final_args.append(f'--log-dest={value}')
+
# subcommand
if isinstance(command, list):
final_args.extend([str(v) for v in command])