duplicate logrotate files/entries
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
walinuxagent (Ubuntu) |
Fix Released
|
Undecided
|
Łukasz Zemczak | ||
Trusty |
Fix Released
|
Undecided
|
Unassigned | ||
Xenial |
Fix Released
|
Undecided
|
Unassigned | ||
Yakkety |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
[ Impact ]
We always keep all the supported series in sync, we want to SRU this change as well. In certain cases, when upgrading from a very old walinuxagent, the logrotate files are duplicate - which is never a good thing.
[ Test Case ]
Easiest way would be to install an ancient trusty walinuxagent package and then upgrade to the latest proposed one and check if the old logrotate configuration file is still present.
* Download walinuxagent 2.0.8-0ubuntu1~
* Install the package through dpkg (possibly dpkg --force-all -i since otherwise the old version will not install)
* Check if /etc/logrotate.
* Upgrade walinuxagent to 2.2.6
* Make sure that /etc/logrotate.
[ Regression Potential ]
The logrotate configuration can be lost or invalid - but if that would happen then the bug will fail verification.
Original description:
I am getting the following errors from cron after upgrading my VM to walinuxagent 2.2.2-0ubuntu0~
/etc/
error: waagent.logrotate:1 duplicate log entry for /var/log/
Indeed, there are two duplicate logrotate files that both appear to belong to the walinuxagent package:
$ dpkg -S /etc/logrotate.
walinuxagent: /etc/logrotate.
walinuxagent: /etc/logrotate.
$ cmp /etc/logrotate.
$ cat /etc/logrotate.
/var/
compress
monthly
rotate 6
notifempty
missingok
}
I'm on 14.04 LTS:
$ lsb_release -rd
Description: Ubuntu 14.04.5 LTS
Release: 14.04
description: | updated |
Changed in walinuxagent (Ubuntu): | |
assignee: | nobody → Łukasz Zemczak (sil2100) |
status: | New → Confirmed |
Changed in walinuxagent (Ubuntu): | |
status: | Confirmed → In Progress |
description: | updated |
description: | updated |
This bug was fixed in the package walinuxagent - 2.2.6-0ubuntu1
---------------
walinuxagent (2.2.6-0ubuntu1) zesty; urgency=medium
* New upstream release (LP: #1661750). disk-warning. sh to ephemeral- disk-warning (lintian error). patches/ disable- auto-update. patch:
* debian/control:
- Change the maintainer to Ubuntu Developers (LP: #1657528).
- Add the dependency of isc-dhcp-client as our maintainer scripts assume
it's installed.
- Add trailing commas to dependencies, add whitespaces.
* Rename ephemeral-
* debian/docs:
- Remove LICENSE.txt as it's redundant.
* debian/postinst:
- Stop checking for update-initramfs existence using the absolute path, use
the 'command' command instead to make lintian happy.
* Remove debian/
- We now ship with auto-updates enabled (LP: #1650522).
* debian/maintscript:
- Add a maintscript to rename the old logrotate file on upgrade from an
ancient version of walinuxagent (LP: #1673152).
-- Łukasz 'sil2100' Zemczak <email address hidden> Wed, 15 Mar 2017 10:19:34 +0100