| Summary: | httpd log rotation doesn't match service's ones | ||
|---|---|---|---|
| Product: | Red Hat OpenStack | Reporter: | Rodrigo Duarte <rduartes> |
| Component: | openstack-keystone | Assignee: | John Dennis <jdennis> |
| Status: | CLOSED WONTFIX | QA Contact: | Prasanth Anbalagan <panbalag> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 10.0 (Newton) | CC: | hrybacki, jdennis, kbasil, nkinder, rcritten, srevivo |
| Target Milestone: | --- | Keywords: | Triaged |
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2018-11-01 19:53:08 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
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.