Bug 1271816 - keystone logrotate configuration should use size configuration
Summary: keystone logrotate configuration should use size configuration
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-keystone
Version: 7.0 (Kilo)
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: 8.0 (Liberty)
Assignee: John Dennis
QA Contact: Shai Revivo
URL:
Whiteboard:
Depends On:
Blocks: 1341332
TreeView+ depends on / blocked
 
Reported: 2015-10-14 19:41 UTC by James Slagle
Modified: 2017-02-24 18:44 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 1341332 (view as bug list)
Environment:
Last Closed: 2017-02-24 18:44:41 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
proposed openstack-keystone.logrotate file (82 bytes, text/plain)
2016-03-25 15:11 UTC, Adam Young
no flags Details

Description James Slagle 2015-10-14 19:41:03 UTC
The keystone logrotate configuration should use a "size" configuration in /etc/logrotate.d/openstack-keystone instead of the "weekly" configuration. Without the size config, the logs can grow quite big, and are only rotated once per week.

We're getting osp-director bug reports (bug 1267957) of /var/log/keystone growing to over 1GB in size.

Note that heat and nova are both configured with configured with:
rotate 14
size 10M

Comment 2 Adam Young 2016-03-25 15:11:19 UTC
Created attachment 1140320 [details]
proposed openstack-keystone.logrotate file

Please confirm that this is the desired values for openstack-keystone.logrotate

Comment 3 Adam Young 2016-03-25 15:12:27 UTC
Please confirm that the attached file represents what should be in the logrotate configuration.

Comment 6 Adam Young 2016-09-07 22:32:15 UTC
How do we want to proceed with this issue?

Comment 7 James Slagle 2016-09-12 23:48:05 UTC
(In reply to Adam Young from comment #3)
> Please confirm that the attached file represents what should be in the
> logrotate configuration.

it's up to the keystone team to determine the correct logrotate configuration for keystone

Comment 8 Rob Crittenden 2017-02-24 18:44:41 UTC
Fixed in at least Ocata. My pre-OSP11-based undercloud config includes the proposed size:

/var/log/keystone/*.log {
    rotate 14
    size 10M
    missingok
    compress
}


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