Bug 51505 - duplicated logrotate conf for wtmp and btmp
duplicated logrotate conf for wtmp and btmp
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: logrotate
UCS 5.0
Other Linux
: P5 normal (vote)
: UCS 5.0
Assigned To: Philipp Hahn
Florian Best
:
Depends on:
Blocks: 46120
  Show dependency treegraph
 
Reported: 2020-06-16 16:47 CEST by Florian Best
Modified: 2021-05-25 16:03 CEST (History)
1 user (show)

See Also:
What kind of report is it?: Development Internal
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:
best: Patch_Available+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Florian Best univentionstaff 2020-06-16 16:47:12 CEST
stderr: + rotate_logfiles
16:37:10 + test -x /usr/sbin/logrotate
16:37:10 + logrotate -f /etc/logrotate.conf
16:37:10 error: /etc/logrotate.conf:31 duplicate log entry for /var/log/wtmp
16:37:10 error: /etc/logrotate.conf:38 duplicate log entry for /var/log/btmp
16:37:10
16:37:10 fail: return code 1

/etc/univention/templates/files/etc/logrotate.conf defines:
# no packages own wtmp, or btmp -- we'll rotate them here
/var/log/wtmp {
    missingok
    monthly
    create 0664 root utmp
    rotate 12
}

/var/log/btmp {
    missingok
    monthly
    create 0660 root utmp
    rotate 12
}

and:
# dpkg -S /etc/logrotate.d/{w,b}tmp
logrotate: /etc/logrotate.d/wtmp
logrotate: /etc/logrotate.d/btmp

# cat /etc/logrotate.d/wtmp 
# no packages own wtmp -- we'll rotate it here
/var/log/wtmp {
    missingok
    monthly
    create 0664 root utmp
    minsize 1M
    rotate 1
}
# cat /etc/logrotate.d/btmp 
# no packages own btmp -- we'll rotate it here
/var/log/btmp {
    missingok
    monthly
    create 0660 root utmp
    rotate 1
}
Comment 1 Florian Best univentionstaff 2020-06-16 23:49:07 CEST
The configuration differs.
Do we need to make a UCR template out of etc/logrotate.d/{w,b}tmp?
I don't think so.
So removing this from template is done in git:feature/ucs5.
Comment 2 Philipp Hahn univentionstaff 2020-06-17 11:13:12 CEST
[feature/ucs5] 2bae7a2df2 Bug #51505,Bug #32509 base: Update UCR template [WIP]
 .../conffiles/etc/bash.bashrc                      |   9 +-
 .../conffiles/etc/default/ssh                      |   6 -
 .../conffiles/etc/init.d/networking                |  45 ++++---
 .../conffiles/etc/init.d/nscd                      | 143 ---------------------
 .../conffiles/etc/init.d/rdate                     |  53 --------
 .../conffiles/etc/init.d/rpcbind                   | 109 ----------------
 base/univention-base-files/conffiles/etc/inputrc   |   4 +-
 base/univention-base-files/conffiles/etc/issue     |  27 ++--
 base/univention-base-files/conffiles/etc/issue.net |  22 ++--
 .../conffiles/etc/logrotate.conf                   |   5 +
 ...
 26 files changed, 144 insertions(+), 436 deletions(-)

Package: univention-base-files
Version: 9.0.0-6A~5.0.0.202006171058
Comment 3 Florian Best univentionstaff 2020-07-06 17:34:33 CEST
OK: rebase of config files
OK: changelog entry
Comment 4 Florian Best univentionstaff 2021-05-25 16:03:17 CEST
UCS 5.0 has been released:
 https://docs.software-univention.de/release-notes-5.0-0-en.html
 https://docs.software-univention.de/release-notes-5.0-0-de.html

If this error occurs again, please use "Clone This Bug".