Bug 1397054 - httpd log rotation doesn't match service's ones
Summary: httpd log rotation doesn't match service's ones
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-keystone
Version: 10.0 (Newton)
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: John Dennis
QA Contact: Prasanth Anbalagan
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-11-21 13:59 UTC by Rodrigo Duarte
Modified: 2018-11-01 19:53 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-11-01 19:53:08 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description Rodrigo Duarte 2016-11-21 13:59:40 UTC
For OpenStack services, we have the following example of log rotation settings:

[root@controller-0 ~]# cat /etc/logrotate.d/openstack-keystone
/var/log/keystone/*.log {
    rotate 14
    size 10M
    missingok
    compress
}

But, some of these services (e.g. keystone), runs on httpd and have logs also created by it:

[root@controller-0 ~]# cat /etc/logrotate.d/httpd 
/var/log/httpd/*log {
    missingok
    notifempty
    sharedscripts
    delaycompress
    postrotate
        /bin/systemctl reload httpd.service > /dev/null 2>/dev/null || true
    endscript
}


[root@controller-0 ~]# ls -lh /var/log/httpd/ | grep keystone
-rw-r--r--. 1 root root 740K Nov 21 13:56 keystone_wsgi_admin_access.log
-rw-r--r--. 1 root root 2,8M Nov 13 03:19 keystone_wsgi_admin_access.log-20161113
-rw-r--r--. 1 root root 3,6M Nov 20 03:38 keystone_wsgi_admin_access.log-20161120
-rw-r--r--. 1 root root    0 Nov 13 03:19 keystone_wsgi_admin_error.log
-rw-r--r--. 1 root root 7,0K Nov 11 19:54 keystone_wsgi_admin_error.log-20161113
-rw-r--r--. 1 root root 163K Nov 21 13:50 keystone_wsgi_main_access.log
-rw-r--r--. 1 root root 605K Nov 13 03:18 keystone_wsgi_main_access.log-20161113
-rw-r--r--. 1 root root 800K Nov 20 03:33 keystone_wsgi_main_access.log-20161120
-rw-r--r--. 1 root root    0 Nov 13 03:19 keystone_wsgi_main_error.log
-rw-r--r--. 1 root root 5,2K Nov 13 03:19 keystone_wsgi_main_error.log-20161113

The problem is that we have duplicated logs that rotate differently so we might have the same issues as we did at https://bugzilla.redhat.com/show_bug.cgi?id=1212482.


Note You need to log in before you can comment on or make changes to this bug.