Bug 1170814 - GlusterFS logrotate config complains about missing files
Summary: GlusterFS logrotate config complains about missing files
Keywords:
Status: CLOSED DUPLICATE of bug 1165133
Alias: None
Product: GlusterFS
Classification: Community
Component: logging
Version: 3.6.1
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: bugs@gluster.org
QA Contact:
URL:
Whiteboard:
Depends On: 1170825
Blocks: glusterfs-3.6.2
TreeView+ depends on / blocked
 
Reported: 2014-12-04 22:40 UTC by Jan-Hendrik Zab
Modified: 2014-12-11 07:39 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 1170825 (view as bug list)
Environment:
Last Closed: 2014-12-11 07:39:55 UTC
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Embargoed:


Attachments (Terms of Use)

Description Jan-Hendrik Zab 2014-12-04 22:40:50 UTC
Description of problem:
The supplied logrotate configuration in extras/glusterfs-georep-logrotate causes errors for every logrotate execution due to the definition of "/var/log/glusterfs/geo-replication-slaves/*/*.log".

The missingok directive is inbetween postrotate and endscript, it needs to be mmoved before the postrotate directive.

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

How reproducible:
Every time.

Steps to Reproduce:
Call `logrotate /etc/logrotate.conf' with glusterfs logrotate config from: extras/glusterfs-georep-logrotate in "/etc/logrotate.d/".

Actual results:
error: glusterfs-georep:31 glob failed for /var/log/glusterfs/geo-replication-slaves/*/*.log: No such file or directory
error: found error in file glusterfs-georep, skipping

Expected results:
No error message at all.

Additional info:

Comment 1 Anand Avati 2014-12-04 22:46:39 UTC
REVIEW: http://review.gluster.org/9239 (Stop logrotate from complaining about missing files.) posted (#1) for review on release-3.6 by Jan-Hendrik Zab (zab)

Comment 2 Niels de Vos 2014-12-04 22:57:22 UTC
Bug 1170825 has been filed to get the patch in the master branch too.

Comment 3 Anand Avati 2014-12-10 14:19:19 UTC
REVIEW: http://review.gluster.org/9239 (Stop logrotate from complaining about missing files.) posted (#2) for review on release-3.6 by Jan-Hendrik Zab (zab)

Comment 4 Lalatendu Mohanty 2014-12-11 07:39:55 UTC

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


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