Project

General

Profile

Actions

Bug #4026

closed

The logrotate configuration file from Debian/Ubuntu rudder-server-root is duplicate between the old (rudder-server-root) and the new one (rudder)

Added by Nicolas PERRON over 10 years ago. Updated about 9 years ago.

Status:
Released
Priority:
1
Category:
Packaging
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
Name check:
Fix check:
Regression:

Description

After an upgrade to Rudder 2.4.9, 2.6.6, 2.7.3 or later the configuration file (managed by Debian packaging) /etc/logrotate.d/rudder-server-root will continue to be managed even if the new one is installed /etc/logrotate.d/rudder-server-root. In fact, this is a renaming but the both of them still present.

An error will be display during the use of logrotate:


reading config file rudder
[...]
reading config file rudder-server-root
error: rudder-server-root:1 duplicate log entry for /var/log/rudder/apache2/access.log
error: found error in /var/log/rudder/apache2/*.log , skipping
removing last 1 log configs
error: rudder-server-root:20 duplicate log entry for /var/log/rudder/ldap/slapd.log
error: found error in /var/log/rudder/ldap/slapd.log , skipping
removing last 1 log configs
error: rudder-server-root:36 duplicate log entry for /var/log/rudder/reports/all.log
error: found error in /var/log/rudder/reports/*.log , skipping
removing last 1 log configs
error: rudder-server-root:53 duplicate log entry for /var/log/rudder/core/rudder-webapp.log
error: found error in /var/log/rudder/core/*.log , skipping
[...]

Actions #1

Updated by Nicolas PERRON over 10 years ago

This is due to #3981

Actions #3

Updated by Nicolas PERRON over 10 years ago

logrotate does not return an error:

root@server:~# echo $?
0

Actions #4

Updated by Nicolas PERRON over 10 years ago

The packages does not manage the same filename:

root@server:/tmp# dpkg -c rudder-server-root_2.4.8-squeeze0_all.deb | grep logrotate
drwxr-xr-x root/root         0 2013-09-02 18:31 ./etc/logrotate.d/
-rw-r--r-- root/root      1386 2013-09-02 18:31 ./etc/logrotate.d/rudder-server-root
root@server:/tmp# dpkg -c rudder-server-root_2.6.8~rc1~git201310081553-squeeze0_all.deb | grep logrotate
drwxr-xr-x root/root         0 2013-10-08 16:12 ./etc/logrotate.d/
-rw-r--r-- root/root      1603 2013-10-08 16:12 ./etc/logrotate.d/rudder
Actions #5

Updated by Nicolas PERRON over 10 years ago

  • Status changed from New to Pending technical review
  • Assignee changed from Nicolas PERRON to Jonathan CLARKE
  • % Done changed from 0 to 100

Pull Request URL added: https://github.com/Normation/rudder-packages/pull/152

Jon, could you review it please ?

Actions #6

Updated by Jonathan CLARKE over 10 years ago

  • Status changed from Pending technical review to Discussion
  • Assignee changed from Jonathan CLARKE to Nicolas PERRON
Actions #7

Updated by Nicolas PERRON over 10 years ago

  • Status changed from Discussion to Pending release

Applied in changeset commit:533fd6535545bb8c35334a137e4bfa2c0459adb2.

Actions #8

Updated by Nicolas PERRON over 10 years ago

Applied in changeset commit:1ef6731d3cbd2c2668ae4fb489c6d5a93d418ff2.

Actions #9

Updated by Nicolas PERRON over 10 years ago

  • Status changed from Pending release to Pending technical review
  • Assignee changed from Nicolas PERRON to Jonathan CLARKE

The fix does not work with Debian Lenny. A ticket has been created for this: #4031

Actions #10

Updated by Nicolas PERRON over 10 years ago

  • Subject changed from The logrotate configuration file from Debian rudder-server-root is duplicate between the old (rudder-server-root) and the new one (rudder) to The logrotate configuration file from Debian/Ubuntu rudder-server-root is duplicate between the old (rudder-server-root) and the new one (rudder)
Actions #11

Updated by Nicolas PERRON over 10 years ago

  • Status changed from Pending technical review to Pending release
Actions #12

Updated by Nicolas PERRON over 10 years ago

  • Status changed from Pending release to Released

This bug has been fixed in Rudder 2.4.11, which was released today.
Check out:

Actions #13

Updated by Benoît PECCATTE about 9 years ago

  • Project changed from 34 to Rudder
  • Category set to Packaging
Actions

Also available in: Atom PDF