Bug 1112621

Summary: log file is not limited
Product: Red Hat OpenStack Reporter: Amit Ugol <augol>
Component: python-django-horizonAssignee: Matthias Runge <mrunge>
Status: CLOSED ERRATA QA Contact: Ido Ovadia <iovadia>
Severity: medium Docs Contact:
Priority: medium    
Version: 5.0 (RHEL 7)CC: aberezin, ajeain, aortega, athomas, dnavale, iovadia, lyarwood, mrunge, yeylon
Target Milestone: z4Keywords: Triaged, ZStream
Target Release: 5.0 (RHEL 7)   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: python-django-horizon-2014.2.2-2.el7ost, python-django-horizon-2014.1.3-5.el7ost Doc Type: Bug Fix
Doc Text:
Previously, horizon.log was not truncated automatically, resulting in very large log files. With this update, files are now trimmed by logrotate, fixing this issue.
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-04-16 15:09:46 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:

Description Amit Ugol 2014-06-24 10:55:28 UTC
Description of problem:
horizon.log can grow quite considerably and currently there is no way to limit it from the configuration.
This should be limited for size and probably date as well.

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 1 Matthias Runge 2014-06-24 10:57:24 UTC
thank you, this is true.

Question is: is this something to be configured by packstack/puppet modules or via packaging?

Comment 3 Ido Ovadia 2014-06-26 11:45:13 UTC
Since the file can be huge, opening it from Horizon --> Redhat Access --> Logs 

can take very long time

Comment 4 Matthias Runge 2014-09-09 09:38:06 UTC
adding a file named openstack-dashboard to
/etc/logrotate.d containing:

/var/log/horizon/*.log /var/log/httpd/horizon_*.log {
    weekly
    rotate 4
    missingok
    compress
    minsize 100k
}


should fix this.

Comment 6 Matthias Runge 2015-02-16 08:34:13 UTC
a fix for this was added for rhos-6 release

Comment 7 Matthias Runge 2015-02-26 08:23:39 UTC
Um, clarifying here: A fix was added very early in RHOS-6 development cylce for  python-django-horizon package.

Esp. this is included in the version mentioned above.

Comment 8 Matthias Runge 2015-03-12 11:29:22 UTC
also backported to rhos 5: python-django-horizon-2014.1.3-5.el7ost

Comment 10 Ido Ovadia 2015-04-01 16:03:09 UTC
Verified
========
python-django-horizon-2014.1.4-1.el7ost.noarch

Comment 12 errata-xmlrpc 2015-04-16 15:09:46 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHSA-2015-0839.html