Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1170814

Summary: GlusterFS logrotate config complains about missing files
Product: [Community] GlusterFS Reporter: Jan-Hendrik Zab <zab>
Component: loggingAssignee: bugs <bugs>
Status: CLOSED DUPLICATE QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 3.6.1CC: bugs, gluster-bugs, lmohanty, ndevos
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1170825 (view as bug list) Environment:
Last Closed: 2014-12-11 07:39:55 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:
Bug Depends On: 1170825    
Bug Blocks: 1163723    

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 ***