https://bugzilla.wikimedia.org/show_bug.cgi?id=41104

Antoine "hashar" Musso <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|FIXED                       |---

--- Comment #8 from Antoine "hashar" Musso <[email protected]> ---
Looks like like the logrotate does not work anymore:


root@deployment-bastion:/var/log/glusterfs# ll -rt
total 213956
-rw------- 1 root root         0 Feb 19 06:27 home.log
-rw------- 1 root root         0 Feb 19 06:27 data-project.log
-rw------- 1 root root 109185374 Mar  1 18:12 data-project.log.1
-rw------- 1 root root 109894887 Mar  1 18:17 home.log.1

I noticed the instance has two logrorate configuration files which are most
probably conflicting:

/etc/logrotate.d/glusterfs-common 


/var/log/glusterfs/*.log {
    daily
    rotate 7
    delaycompress
    compress
    notifempty
    missingok
}


And the puppet provided one:


cat glusterlogs 
#####################################################################
### THIS FILE IS MANAGED BY PUPPET
### puppet:///files/logrotate/glusterlogs
#####################################################################


# Rotate client logs
/var/log/glusterfs/*.log {
    missingok
    rotate 3
    weekly
    compress
    postrotate
        /usr/bin/killall -HUP glusterfs > /dev/null 2>&1 || true
        /usr/bin/killall -HUP glusterd > /dev/null 2>&1 || true
    endscript
}

# Rotate server brick logs
/var/log/glusterfs/bricks/*.log {
    missingok
    rotate 3
    weekly
    compress
    postrotate
        /usr/bin/killall -HUP glusterfsd > /dev/null 2>&1 || true
    endscript
}


The glusterfs-common package does provide /etc/logrotate.d/glustefs-common and
it is missing the HUP signaling :(

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to