glusterd does not reopen log files after logrotate

Bug #1078657 reported by Calin Don
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
glusterfs (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

glusterd does not reopen it's log files after logrotate.

Tags: patch
Revision history for this message
Calin Don (calind) wrote :
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "logrotate-glusterd.patch" of this bug report has been identified as being a patch. The ubuntu-reviewers team has been subscribed to the bug report so that they can review the patch. In the event that this is in fact not a patch you can resolve this situation by removing the tag 'patch' from the bug report and editing the attachment so that it is not flagged as a patch. Additionally, if you are member of the ubuntu-reviewers team please also unsubscribe the team from this bug report.

[This is an automated message performed by a Launchpad user owned by Brian Murray. Please contact him regarding any issues with the action taken in this bug report.]

tags: added: patch
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in glusterfs (Ubuntu):
status: New → Confirmed
Revision history for this message
Toby Corkindale (tjc-wintrmute) wrote :

I am still seeing this issue on version 3.3.1-1 of the glusterfs-server packages.

Revision history for this message
Toby Corkindale (tjc-wintrmute) wrote :

Also, please note that the patch above from Calin Don *does not* resolve this issue. This is because other Gluster daemons that are running, with their own logfiles, also need to be HUPed in order to rotate their logs, such as glustershd.

Also, I note that the log files in /var/log/glusterfs/bricks/ are not listed in the logrotate file at all, and as such are not being rotated either.

Revision history for this message
Toby Corkindale (tjc-wintrmute) wrote :

Likewise on the clients, all the logs created by the FUSE clients are not going to get HUPed. These don't create anything in /var/run so I'm not sure what the best method to find their PIDs would be?

Revision history for this message
Toby Corkindale (tjc-wintrmute) wrote :

Hi,
I've found this script in the glusterfs source, which appears to be better than the patch given above:
https://raw.github.com/gluster/glusterfs/master/extras/glusterfs-logrotate

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.