Bug 1271816

Summary: keystone logrotate configuration should use size configuration
Product: Red Hat OpenStack Reporter: James Slagle <jslagle>
Component: openstack-keystoneAssignee: John Dennis <jdennis>
Status: CLOSED CURRENTRELEASE QA Contact: Shai Revivo <srevivo>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.0 (Kilo)CC: jslagle, nkinder, rcritten, srevivo
Target Milestone: ---Keywords: ZStream
Target Release: 8.0 (Liberty)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1341332 (view as bug list) Environment:
Last Closed: 2017-02-24 18:44:41 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:
Embargoed:
Bug Depends On:    
Bug Blocks: 1341332    
Attachments:
Description Flags
proposed openstack-keystone.logrotate file none

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
}