Comment 3 for bug 1349809

Revision history for this message
Alexey 'Armenelruth' V.A. (armenelruth) wrote :

This is my /etc/logrotate.d/10-fuel-docker.conf (MOS 5.0, fresh install):
==========================================
# managed by puppet

"/var/log/kern.log"
"/var/log/debug"
"/var/log/syslog"
"/var/log/daemon.log"
"/var/log/auth.log"
"/var/log/audit/audit.log"
"/var/log/user.log"
"/var/log/mail.log"
"/var/log/cron.log"
"/var/log/docker"
"/var/log/docker-*.log"
"/var/log/lxc/*.log"
"/var/log/fuelmenu.log"
"/var/log/nailgun-agent.log"
"/var/log/nailgun/*.log"
"/var/log/astute/*.log"
"/var/log/ostf*.log"
"/var/log/httpd/*"
"/var/log/nginx/*.log"
"/var/log/rabbitmq/*"
"/var/log/cobbler/*.log"
"/var/log/supervisor/*.log"
"/var/log/dump.log"
{
# This file is used for daily log rotations, do not use size options here
  sharedscripts
  weekly
  # rotate only if 30M size or bigger
  minsize 30M
  # truncate file, do not delete & recreate
  copytruncate
  # keep logs for 4 rotations
  rotate 4
  # compression will be postponed to the next rotation, if uncommented
  # delaycompress
  compress
  # ignore missing files
  missingok
  # do not rotate empty files
  notifempty
  postrotate
      # issue HUPing for all rsyslog pids including ones in the docker containers, if any.
      /usr/bin/pkill -HUP rsyslogd 2> /dev/null 2> /dev/null || true
      reload rsyslog >/dev/null 2>&1 || true
  endscript
}

==========================================

this is your steps on my master node:

============================================
[root@fuel dockerctl]# find /var/log/remote/ -name "*.log.*"
[root@fuel dockerctl]# logrotate -f /etc/logrotate.d/10-fuel-docker.conf
[root@fuel dockerctl]# find /var/log/remote/ -name "*.log.*" | wc -l
0
============================================

I do not have logs rotated but "disk full".