Bug 1271676

Summary: don't rotate /var/log/dnf.rpm.log weekly
Product: [Fedora] Fedora Reporter: Harald Reindl <h.reindl>
Component: dnfAssignee: Packaging Maintenance Team <packaging-team-maint>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 22CC: h.reindl, jsilhan, mluscon, packaging-team-maint, pnemade, sergio, vmukhame
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-01-18 12:13:48 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Harald Reindl 2015-10-14 13:44:14 UTC
"/var/log/dnf.rpm.log" rotate weekly? 
seriously?

for many years "yum.log" was rotated *yearly* which is not a problem and gives a history especially on production servers, well, it was until someone touched it for fixing things which ain't broken (https://bugzilla.redhat.com/show_bug.cgi?id=1231977)

frankly there are people which need compressed logs not wasting any relevant space

[root@buildserver:~]$ cat /etc/logrotate.d/dnf
/var/log/dnf.log {
    missingok
    notifempty
    rotate 4
    weekly
    create 0600 root root
}

/var/log/dnf.librepo.log {
    missingok
    notifempty
    rotate 4
    weekly
    create 0600 root root
}

/var/log/dnf.rpm.log {
    missingok
    notifempty
    rotate 4
    weekly
    create 0600 root root
}

/var/log/dnf.plugin.log {
    missingok
    notifempty
    rotate 4
    weekly
    create 0600 root root
}

/var/log/hawkey.log {
    missingok
    notifempty
    rotate 4
    weekly
    create 0600 root root
}

Comment 1 Honza Silhan 2015-10-21 13:42:22 UTC
So what do you suggest? This just wastes resources of the development to always change unimportant parameters (bug 1247766).

Comment 2 Harald Reindl 2015-10-21 13:47:01 UTC
unimportant parameters?

it wastes also my ressoucres that i need to backup logs which where available for a whole year when i have to write twice a year a reporting about my admin activities

frankly you could have saved a lot of development ressources by not making so much uneeded behavior changes in DNF compare to YUM and to be honest from all what i see the whole DNF development time could have been saved when i permanently have to use yum-deprecated and yum-utils for my work because DNF obviously works only for the ordianry user confirming "yes install updates"

Comment 3 Sergio Basto 2015-11-07 19:59:13 UTC
I prefer  configuration of Fedora 20 with:
maxsize 30k 
and 
yearly

why you change to  rotate 4,weekly, this give us one month of logs , not good for me .

Comment 4 Harald Reindl 2015-11-07 20:17:26 UTC
why maxsize 30k?

that change fucked up having the whole year of update/install logs in yum
https://bugzilla.redhat.com/show_bug.cgi?id=1231977

Comment 5 Harald Reindl 2015-12-27 10:38:20 UTC
i prefer making it %config(noreplace) so i can fix it myself without get it overwritten everytime a random update comes and we are done here

Comment 6 Sergio Basto 2015-12-28 00:12:28 UTC
(In reply to Harald Reindl from comment #5)
> i prefer making it %config(noreplace) so i can fix it myself without get it
> overwritten everytime a random update comes and we are done here

I agree please use something like : 

https://pkgs.fedoraproject.org/cgit/logrotate.git/tree/logrotate.spec#n80

Comment 7 Honza Silhan 2016-01-18 12:13:48 UTC
Parameters of logs are subjective. You are able to change them but we have found the params that fit our needs - users can still attach logs to bug reports when we request them. This is a compromise so the logs don't not disappear before we request them in bug report and while not wasting so much space on the disk.

The spec already contains: `%config(noreplace) %{_sysconfdir}/logrotate.d/%{name}`