/etc/logrotate.d/ceph and /etc/logrotate.d/ceph-base both manage /var/log/ceph/ which causes "error: ceph-base:1 duplicate log entry for /var/log/ceph/ceph-mon.[hostname].log" during hourly logrotate
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ceph (Ubuntu) |
Fix Released
|
Medium
|
James Page | ||
Yakkety |
Fix Released
|
Medium
|
Unassigned |
Bug Description
[Impact]
Multiple log rotate configs attempt to manage the same set of log files
[Test Case]
apt install ceph-mon ceph-osd (xenial)
upgrade to yakkety
<error message below will be seen>
[Regression Potential]
Minimal - logrotate configuration will be correctly removed on upgrades from the ceph package (although its now in the ceph-common, not ceph-base package with the proposed update to cover radosgw as well)
[Original Bug Report]
/etc/logrotate.
ProblemType: Bug
DistroRelease: Ubuntu 16.10
Package: ceph 10.2.3-0ubuntu2
Uname: Linux 4.8.0-040800-
NonfreeKernelMo
ApportVersion: 2.20.3-0ubuntu8
Architecture: amd64
Date: Sat Oct 22 16:32:23 2016
InstallationDate: Installed on 2015-04-20 (550 days ago)
InstallationMedia: Ubuntu-Server 14.10 "Utopic Unicorn" - Release amd64 (20141022.2)
ProcEnviron:
TERM=screen.
PATH=(custom, no user)
XDG_RUNTIME_
LANG=de_DE.UTF-8
SHELL=/bin/bash
SourcePackage: ceph
UpgradeStatus: Upgraded to yakkety on 2016-10-19 (2 days ago)
Changed in ceph (Ubuntu): | |
status: | Triaged → Fix Committed |
Changed in ceph (Ubuntu): | |
assignee: | nobody → James Page (james-page) |
description: | updated |
description: | updated |
Changed in ceph (Ubuntu Yakkety): | |
status: | New → Triaged |
importance: | Undecided → Medium |
I suspect this is a problem with upgrades from pre-yakkety versions of ceph, not purging the old logrotate configuration file from the ceph package.