Bug 1814744

Summary: glustereventsd log file isn't reopened after rotation
Product: [Red Hat Storage] Red Hat Gluster Storage Reporter: Daniel Milewski <daniel.milewski>
Component: eventsapiAssignee: Srijan Sivakumar <ssivakum>
Status: CLOSED ERRATA QA Contact: Leela Venkaiah Gangavarapu <lgangava>
Severity: low Docs Contact:
Priority: medium    
Version: unspecifiedCC: amenon, asakthiv, pprakash, puebele, ravishankar, rbobek, rhs-bugs, rkothiya, sabose, sheggodu, ssivakum, tshacked
Target Milestone: ---Keywords: ZStream
Target Release: RHGS 3.5.z Batch Update 4   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: glusterfs-6.0-53; glusterfs-selinux-1.0-3 Doc Type: Bug Fix
Doc Text:
Previously, log file objects did not update the file handle after `logrotate` as the log file kept growing indefinitely. With this update, a different class is used to create the log file object which modifies the file handle after `logrotate` and the logs are written into the new file after logrotate operation. NOTE: The SELinux policies state that the default port requires elevated permissions. Therefore the default port used for the`eventsd` service is now 55555 which is in the ephemeral range. Users upgrading to the latest version must change to port number 55555 or any other port that is within the ephemeral range.
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-04-29 07:20:36 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 Daniel Milewski 2020-03-18 15:29:05 UTC
Description of problem:
/var/log/glusterfs/events.log file written by the glustereventsd service isn't reopened after being rotated by logrotate. This obviously makes the log file grow indefinitely. I've looked through the code a little bit and apparently there is no way to make the service reopen the log file other than by restarting it. The log file is rotated by the configuration file /etc/logrotate.d/glusterfs provided in the glusterfs-fuse package.

Comment 3 Srijan Sivakumar 2020-07-17 20:41:35 UTC

  Hi Daniel,

  Could you please specify the version of glusterfs being used ?

  Thanks and Regards

Comment 4 Daniel Milewski 2020-07-29 09:56:34 UTC
We are using version 6.9.

Comment 5 Srijan Sivakumar 2020-08-07 09:43:31 UTC
 Patch in Upstream : https://review.gluster.org/c/glusterfs/+/24820

Comment 36 errata-xmlrpc 2021-04-29 07:20:36 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (glusterfs bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2021:1462