]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
cephadm: enable logging to stderr in ceph-iscsi
authorMatthew Oliver <moliver@suse.com>
Tue, 12 May 2020 04:02:40 +0000 (14:02 +1000)
committerMatthew Oliver <moliver@suse.com>
Wed, 13 May 2020 04:27:28 +0000 (14:27 +1000)
All the other ceph servies when deployed are deployed with:

  --default-log-to-stderr=true --default-log-stderr-prefix=debug
  --default-log-to-file=false

Ceph-iscsi doesn't have these as commandline params but once
https://github.com/ceph/ceph-iscsi/pull/186 lands it'll have something
similar as config options. This patch sets these options

Signed-off-by: Matthew Oliver <moliver@suse.com>
src/pybind/mgr/cephadm/services/cephadmservice.py

index c230be389b9095db6c3ddf2d4d79756577446bb2..cd236827691f35175a43e9243dff40eeb76f97ad 100644 (file)
@@ -234,6 +234,9 @@ class IscsiService(CephadmService):
         api_user = {spec.api_user or ''}
         api_password = {spec.api_password or ''}
         api_secure = {api_secure}
+        log_to_stderr = True
+        log_to_stderr_prefix = debug
+        log_to_file = False
         """
         extra_config = {'iscsi-gateway.cfg': igw_conf}
         return self.mgr._create_daemon('iscsi', igw_id, host, keyring=keyring,