[Bug 1522772] Re: logrotate config file matches the wrong files

Bhargavi bhargavi.c81 at wipro.com
Thu Mar 17 06:52:24 UTC 2016


I’ve tested this on Kilo release ( on Ubuntu Trusty server 14.04) and observed that glance-api.log and  glance-registry log files are getting rotated on a daily basis .
And also old files are getting compressed.

Checked the default configuration in "/etc/logrotate.d/glance-common"
file and that has the below entry. This seems to be correct.

/var/log/glance/*.log {
    daily
    missingok
    compress
    delaycompress
    copytruncate
    notifempty
}

looks like it's working as expected.


** Changed in: glance (Ubuntu)
       Status: New => In Progress

** Changed in: glance (Ubuntu)
       Status: In Progress => Invalid

-- 
You received this bug notification because you are a member of Ubuntu
OpenStack, which is subscribed to glance in Ubuntu.
https://bugs.launchpad.net/bugs/1522772

Title:
  logrotate config file matches the wrong files

Status in glance package in Ubuntu:
  Invalid

Bug description:
  Since Kilo the glance-api and glance-registry logfiles have ben
  renamed from api.log to glance-api.log and from registry.log to
  glance-registry.log:

  # ls -lah /var/log/glance/*
  -rw-r--r-- 1 glance adm  23G Dec  4 11:14 /var/log/glance/glance-api.log
  -rw-r--r-- 1 glance adm 4.2M Dec  4 10:53 /var/log/glance/glance-registry.log

  But the logrotate config files are still rotating the old logfiles
  api.log and registry.log

  The attached patches correct those issues.

  We're running Ubuntu 14.04 LTS 64 and are using ubuntu-cloud archives

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/glance/+bug/1522772/+subscriptions



More information about the Ubuntu-openstack-bugs mailing list