]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
mon/LogMonitor: Use generic cluster log level config
authorPrashant D <pdhange@redhat.com>
Mon, 8 Aug 2022 14:55:23 +0000 (10:55 -0400)
committerPrashant D <pdhange@redhat.com>
Thu, 16 May 2024 16:14:29 +0000 (12:14 -0400)
commit3378b78bca1dd9b85c48f9f335182e37cb42ae0e
treec1a14e0c366b0b87b4cd7e2757b8ac1c46118d98
parent4c76a11664e3e5427ac8f768a8bc759ccfa18bca
mon/LogMonitor: Use generic cluster log level config

We do not control the verbosity of the LogEntry
which is getting logged to stderr, graylog and
journald. This causes excessive flooding of logs
to /var/log, making a filesystem to fill up quickly.
Also we have different config variables namely
mon_cluster_log_file_level and mon_cluster_log_to_syslog_level
to control verbosity at cluster log file and
syslog level respectively. Add a generic cluster log
level config variable which controls cluster log
verbosity for all external entities.

Additionally, this patch addresses the regression of
`mon_cluster_log_file_level` option which doesn't take effect
because of code refactoring of LogMonitor::update_from_paxos
(commit : 7c84e06).

Fixes: https://tracker.ceph.com/issues/57061
Fixes: https://tracker.ceph.com/issues/57049
Signed-off-by: Prashant D <pdhange@redhat.com>
(cherry picked from commit cb0d4a57bd25d32919f7ed44815b4301f41e9508)
PendingReleaseNotes
qa/standalone/ceph-helpers.sh
qa/standalone/mon/mon-cluster-log.sh [new file with mode: 0755]
src/common/options/mon.yaml.in
src/mon/LogMonitor.cc
src/mon/LogMonitor.h