Bug #22054
Duplicate logrotate scripts in ceph-base
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:
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:
- dpkg -S /etc/logrotate.d/ceph*
ceph-base: /etc/logrotate.d/ceph.logrotate
After the upgrade there are the following files:
- 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:
- diff ceph-common.logrotate ceph.logrotate
- echo $?
0
They look like this:
- 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