]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/tasks/cephadm: enable mon_cluster_log_to_file 55429/head
authorDan van der Ster <dan.vanderster@clyso.com>
Thu, 2 Nov 2023 23:47:48 +0000 (16:47 -0700)
committerAdam King <adking@redhat.com>
Fri, 2 Feb 2024 19:43:41 +0000 (14:43 -0500)
Without cluster_log_to_file we have nothing to grep for errors:

2023-10-27T16:06:59.111 DEBUG:teuthology.orchestra.run.smithi150:> sudo egrep '\[ERR\]|\[WRN\]|\[SEC\]' /var/log/ceph/38cc7fce-74d9-11ee-8db9-212e2dc638e7/ceph.log | egrep -v '\(MDS_ALL_DOWN\)' | egrep -v '\(MDS_UP_LESS_THAN_MAX\)' | head -n 1
2023-10-27T16:06:59.141 INFO:teuthology.orchestra.run.smithi150.stderr:grep: /var/log/ceph/38cc7fce-74d9-11ee-8db9-212e2dc638e7/ceph.log: No such file or directory

Set mon_cluster_log_to_file = true.

Fixes: https://tracker.ceph.com/issues/63425
Signed-off-by: Dan van der Ster <dan.vanderster@clyso.com>
(cherry picked from commit 822e6b01f909dff79b336bb2fc029de4663b428a)

qa/tasks/cephadm.conf

index bd1ab821eca526c565e1b4e0a1863bf9d1b00baa..2a83b083de3f8a6a3930b1d05745b1208fec2116 100644 (file)
@@ -2,6 +2,8 @@
 # make logging friendly to teuthology
 log_to_file = true
 log_to_stderr = false
+log to journald = false
+mon cluster log to file = true
 mon cluster log file level = debug
 
 mon clock drift allowed = 1.000