Project

General

Profile

Actions

Bug #58920

open

logrotate - delaycompress and duplicate entry errors

Added by Jan Horacek about 1 year ago. Updated 3 months ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
% Done:

0%

Source:
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

we get couple of logrotate errors and warning regarding open file during logrotate and duplicate entry error

actualy v16.2.10, containerized deployment, combination with ceph-common packages on the same host (for directly available ceph commands for management)

in ceph-common package (`/etc/logrotate.d/ceph-common`), there would be best to add glob `/var/log/ceph/ceph-*.log` instead of `/var/log/ceph/*.log`. this eliminates duplicate error, because of glob `/var/log/ceph/cephadm.log` from /etc/logrotate.d/cephadm (managed by containerized mgr)

adding `delaycompress` (could be added to all logrotate configurations without issues) eliminates errors caused by rotating file that is still open - this is usualy because of running ceph-disk logging to `/var/log/ceph/@fsid@/ceph-volume.log` and active connection from mgr to ceph node and logging to `/var/log/cephadm.log`

if i get some acknowledgement, i could try to prepare fix/pull request to fix these issues.

Actions

Also available in: Atom PDF