Bug 1112621 - log file is not limited
Summary: log file is not limited
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: python-django-horizon
Version: 5.0 (RHEL 7)
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: z4
: 5.0 (RHEL 7)
Assignee: Matthias Runge
QA Contact: Ido Ovadia
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-06-24 10:55 UTC by Amit Ugol
Modified: 2023-02-22 23:02 UTC (History)
9 users (show)

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.
Clone Of:
Environment:
Last Closed: 2015-04-16 15:09:46 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker OSP-16621 0 None None None 2022-07-09 07:26:58 UTC
Red Hat Product Errata RHSA-2015:0839 0 normal SHIPPED_LIVE Moderate: python-django-horizon and python-django-openstack-auth update 2015-04-16 19:08:45 UTC

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


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