Project

General

Profile

Bug #22054

Duplicate logrotate scripts in ceph-base

Added by Karol Babioch over 6 years ago. Updated almost 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
common
Target version:
-
% Done:

0%

Source:
Community (user)
Tags:
regression, logrotate, duplicate
Backport:
Regression:
Yes
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

While upgrading our Ceph cluster (jewel running on Debian) from 10.2.7 (10.2.7-1~bpo80+1) to 10.2.10 (10.2.10-1~bpo80+1) a second logrotate script (ceph-common) was created within /etc/logrotate.d, which is identical to the first one (ceph.logrotate). This leads to error messages being triggered by logrotate:

/etc/cron.daily/logrotate:
error: ceph.logrotate:1 duplicate log entry for /var/log/ceph/ceph-mon.XXX.log

The situation before the upgrade was this:

  1. dpkg -S /etc/logrotate.d/ceph*
    ceph-base: /etc/logrotate.d/ceph.logrotate

After the upgrade there are the following files:

  1. dpkg -S /etc/logrotate.d/ceph*
    ceph-base: /etc/logrotate.d/ceph-common.logrotate
    ceph-base: /etc/logrotate.d/ceph.logrotate

Both files are identical:

  1. diff ceph-common.logrotate ceph.logrotate
  2. echo $?
    0

They look like this:

  1. cat ceph.logrotate
    /var/log/ceph/*.log {
    rotate 7
    daily
    compress
    sharedscripts
    postrotate
    killall -q -1 ceph-mon ceph-mds ceph-osd ceph-fuse radosgw || true
    endscript
    missingok
    notifempty
    su root ceph
    }

It seems that similar issues have been reported in the past, see (#15569)[1] and (#19938)[2]. As far as I can tell, the symptoms are similar, but the root cause is different.

[1]: http://tracker.ceph.com/issues/15569
[2]: http://tracker.ceph.com/issues/19938

History

#1 Updated by Sage Weil almost 3 years ago

  • Status changed from New to Closed

Also available in: Atom PDF