Skip to content

squid: mon/LogMonitor: Use generic cluster log level config#61069

Merged
SrinivasaBharath merged 1 commit intoceph:squidfrom
shraddhaag:wip-68690-squid
Jan 14, 2025
Merged

squid: mon/LogMonitor: Use generic cluster log level config#61069
SrinivasaBharath merged 1 commit intoceph:squidfrom
shraddhaag:wip-68690-squid

Conversation

@shraddhaag
Copy link
Copy Markdown
Contributor

backport tracker: https://tracker.ceph.com/issues/68690


backport of #47502
parent tracker: https://tracker.ceph.com/issues/57061

this backport was staged using ceph-backport.sh version 16.0.0.6848
find the latest version at https://github.com/ceph/ceph/blob/main/src/script/ceph-backport.sh

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 cb0d4a5)
@shraddhaag shraddhaag requested a review from a team as a code owner December 12, 2024 17:10
@shraddhaag shraddhaag added this to the squid milestone Dec 12, 2024
@yaarith yaarith requested a review from pdvian December 12, 2024 18:44
Copy link
Copy Markdown
Contributor

@pdvian pdvian left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thank you @shraddhaag.

@Naveenaidu
Copy link
Copy Markdown
Contributor

Rados approved: https://tracker.ceph.com/issues/69323#note-3

@SrinivasaBharath
Copy link
Copy Markdown
Contributor

jenkins test api

@SrinivasaBharath
Copy link
Copy Markdown
Contributor

jenkins test make check

@SrinivasaBharath SrinivasaBharath merged commit c58f72a into ceph:squid Jan 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants