Description of problem: Dnf's currently shipped /etc/logrotate.d/dnf specifies 'maxsize 30k'. In many cases this causes *daily* rotation of DNF logfiles (because dnf logs a lot of debugging information to eg /var/log/dnf.log). However the dnf logrotate leaves the /etc/logrotate.conf 'rotate 4' setting unchanged, resulting in effectively keeping only four days of logs. The standard /etc/logrotate.conf settings of 'weekly' plus 'rotate 4' is intended to keep four weeks of logs around. Dnf should respect these settings one way or another, either by removing its own 'maxsize' and 'yearly' settings and relying on logrotate.conf for weekly rotation, or by expicitly specifying long enough 'rotate N' settings so that it keeps four weeks of logs with the de facto daily log rotation. My personal view is that dnf should take the first option. I don't see why dnf has a particularly strong reason to override the normal logrotate.conf settings, especially since local system administrators may want to change them to eg lengthen all log retention times. Version-Release number of selected component (if applicable): dnf-1.0.1-2.fc22.noarch dnf-conf-1.0.1-2.fc22.noarch
Thanks for the report. We can do that.
commit: https://github.com/rpm-software-management/dnf/commit/a7528ea334e70aa31f6a6d93ce0568b7cde9c59e
dnf-plugins-core-0.1.11-1.fc23 dnf-1.1.1-1.fc23 has been submitted as an update to Fedora 23. https://bodhi.fedoraproject.org/updates/FEDORA-2015-14743
dnf-1.1.1-1.fc23, dnf-plugins-core-0.1.11-1.fc23 has been pushed to the Fedora 23 testing repository. If problems still persist, please make note of it in this bug report.\nIf you want to test the update, you can install it with \n su -c 'yum --enablerepo=updates-testing update dnf dnf-plugins-core'. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2015-14743
dnf-1.1.1-2.fc22 dnf-plugins-core-0.1.11-1.fc22 has been submitted as an update to Fedora 22. https://bodhi.fedoraproject.org/updates/FEDORA-2015-14744
dnf-1.1.1-2.fc23 dnf-plugins-core-0.1.11-1.fc23 has been submitted as an update to Fedora 23. https://bodhi.fedoraproject.org/updates/FEDORA-2015-14743
dnf-1.1.1-2.fc23, dnf-plugins-core-0.1.11-1.fc23 has been pushed to the Fedora 23 testing repository. If problems still persist, please make note of it in this bug report.\nIf you want to test the update, you can install it with \n su -c 'yum --enablerepo=updates-testing update dnf dnf-plugins-core'. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2015-14743
dnf-1.1.1-2.fc22, dnf-plugins-core-0.1.11-1.fc22 has been pushed to the Fedora 22 testing repository. If problems still persist, please make note of it in this bug report.\nIf you want to test the update, you can install it with \n su -c 'yum --enablerepo=updates-testing update dnf-plugins-core dnf'. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2015-14744
dnf-1.1.1-2.fc22, dnf-plugins-core-0.1.11-1.fc22 has been pushed to the Fedora 22 stable repository. If problems still persist, please make note of it in this bug report.
dnf-1.1.1-2.fc23, dnf-plugins-core-0.1.11-1.fc23 has been pushed to the Fedora 23 stable repository. If problems still persist, please make note of it in this bug report.