logrotate config file matches the wrong files

Bug #1522772 reported by xens
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
glance (Ubuntu)
Invalid
Undecided
Bhargavi

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

Tags: patch
Revision history for this message
xens (r-aviolat) wrote :
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "Glance logrotate patch" seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]

tags: added: patch
Revision history for this message
Palanivel Duraisamy (palanivel-duraisamy1) wrote :

The config file /etc/logrotate.d/glance-common has the following entry.
Looks there should not be any log rotation issue as file name is "*.log"

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

Changed in glance (Ubuntu):
assignee: nobody → Mohammed Ashraf (mohammed-asharaf)
Changed in glance (Ubuntu):
assignee: Mohammed Ashraf (mohammed-asharaf) → Bhargavi (challa-bhargavi1)
Revision history for this message
Bhargavi (challa-bhargavi1) wrote :

I am using Kilo on Ubuntu 14.04.

glance-api and glance-registry log files are getting rotated on a daily basis and also old files are getting compressed.

below configuration I found in "/etc/logrotate.d/glance-common" file :

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

looks like it's working as expected

please verify your config files (/etc/logrotate.d/glance-common ) and (/etc/cron.daily/logrotate )

Bhargavi (bhargavi-c81)
Changed in glance (Ubuntu):
assignee: Bhargavi (challa-bhargavi1) → Bhargavi (bhargavi-c81)
Revision history for this message
Bhargavi (bhargavi-c81) wrote :

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
status: In Progress → Invalid
Revision history for this message
xens (r-aviolat) wrote :

Hi, thanks for your answer, it was certainly an upgrade issue from Juno to Kilo then !

we can close this bug

Romain

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.