Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1112621 - log file is not limited
log file is not limited
Status: CLOSED ERRATA
Product: Red Hat OpenStack
Classification: Red Hat
Component: python-django-horizon (Show other bugs)
5.0 (RHEL 7)
x86_64 Linux
medium Severity medium
: z4
: 5.0 (RHEL 7)
Assigned To: Matthias Runge
Ido Ovadia
: Triaged, ZStream
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2014-06-24 06:55 EDT by Amit Ugol
Modified: 2018-02-08 05:18 EST (History)
10 users (show)

See Also:
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 11:09:46 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2015:0839 normal SHIPPED_LIVE Moderate: python-django-horizon and python-django-openstack-auth update 2015-04-16 15:08:45 EDT

  None (edit)
Description Amit Ugol 2014-06-24 06:55:28 EDT
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 06:57:24 EDT
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 07:45:13 EDT
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 05:38:06 EDT
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 03:34:13 EST
a fix for this was added for rhos-6 release
Comment 7 Matthias Runge 2015-02-26 03:23:39 EST
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 07:29:22 EDT
also backported to rhos 5: python-django-horizon-2014.1.3-5.el7ost
Comment 10 Ido Ovadia 2015-04-01 12:03:09 EDT
Verified
========
python-django-horizon-2014.1.4-1.el7ost.noarch
Comment 12 errata-xmlrpc 2015-04-16 11:09:46 EDT
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

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