Bug 1157457 - Bad /etc/logrotate.d file installed by glusterfs
Summary: Bad /etc/logrotate.d file installed by glusterfs
Keywords:
Status: CLOSED DUPLICATE of bug 1126802
Alias: None
Product: GlusterFS
Classification: Community
Component: logging
Version: mainline
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: bugs@gluster.org
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks: 1157160
TreeView+ depends on / blocked
 
Reported: 2014-10-27 09:54 UTC by Niels de Vos
Modified: 2014-10-27 10:15 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-10-27 10:15:19 UTC
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Embargoed:


Attachments (Terms of Use)

Description Niels de Vos 2014-10-27 09:54:10 UTC
+++ This bug was initially created as a clone of Bug #1157160 +++
+++ Bug #1157160 was filed for the Fedora packages, use this  +++
+++ bug to post patches to the GlusterFS Gerrit instance.     +++
+++                                                           +++
+++ Once this bug has been closed, the Fedora package bug     +++
+++ should get closed as well.                                +++

Description of problem:

The glusterfs package installs an /etc/logrotate.d file that changes the global logrotate configuration that impacts all log files systemwide, not just glusterfs's.

Version-Release number of selected component (if applicable):

glusterfs-3.5.2-1.fc20

How reproducible:

Always

Steps to Reproduce:
1. Install Fedora without glusterfs or any other package that pulls in glusterfs, like libvirt/qemu, etc...
2. After a month, or so, observe that various log files are rotated out after four log rotation intervals
3. Install glusterfs, or any package that pulls in glusterfs

Actual results:

Suddenly, all system log files will now be rotated out after 52 log rotation intervals. /var/log won't be purged for at least a year, now.

Expected results:

Installing glusterfs should not affact any other packages' log rotation policies.

Additional info:

The "rotate 52" directive in /etc/logrotate.d/glusterfs-georep, and the other four directives in that file, take effect globally. They apply not only to the log files listed in this specific logrotate configuration file, but to all logrotate files.

Those four directives need to be manually moved inside each individually config file entry, in this file.

Comment 1 Niels de Vos 2014-10-27 09:56:34 UTC
There should not be any global configuration options in the logrotate configuration files that GlusterFS ships. These files need to be modified:

- extras/glusterfs-logrotate
- extras/glusterfs-georep-logrotate

Please make sure to remove the global options from the files, and place them inside each specific log-definition.

Comment 2 Niels de Vos 2014-10-27 10:15:19 UTC

*** This bug has been marked as a duplicate of bug 1126802 ***


Note You need to log in before you can comment on or make changes to this bug.