Description of problem: Openstack keeps writing to the same log files and doesn't not archive them - thus creating huge files. Version-Release number of selected component (if applicable): How reproducible: Steps to Reproduce: 1. 2. 3. Actual results: Expected results: Additional info:
I'm not sure this is valid, as all services should have logrotate config in place. For example, nova's config is: /var/log/nova/*.log { weekly rotate 4 missingok compress minsize 100k } Do you mean that the config should be changed to be sized based? (noting the caveat that logrotate is usually a daily cronjob) /var/log/nova/*.log { rotate 4 missingok compress size 10M }
Padraig, Yogev opened this bug for me when I was away so please contact me for any further need info's. I think we should change logrotate for all services for max size + daily. Currently logs can reach very large sizes which makes debugging in QE env. extremely difficult and uploading logs to bugzilla is also a problem. we would also see the same issue in customer env. which means gss will have a hard time as well. I looked in my setup and we do have logrotate for services but its weekly and has no max size. so, the ideal for us would be to xz the logs daily and keep for a month, unless the log is over 2GB and than we should xz as well (I thin the max upload size in bugzilla is 2GB).
bug is verified for openstack-nova-compute-2013.2-9.el6ost.noarch [root@cougar06 ~(keystone_admin)]# ls -l /var/log/nova/ total 940764 -rw-r--r--. 1 nova nova 17546671 Dec 11 19:29 api.log -rw-r--r--. 1 nova nova 1685308 Dec 11 19:28 cert.log -rw-r--r--. 1 nova nova 247456778 Dec 11 19:29 compute.log -rw-r--r--. 1 nova nova 5900194 Dec 11 03:48 compute.log-20131211.gz -rw-r--r--. 1 nova nova 641882356 Dec 11 19:29 conductor.log -rw-r--r--. 1 nova nova 16069786 Dec 11 03:48 conductor.log-20131211.gz -rw-r--r--. 1 nova nova 2003009 Dec 11 19:29 consoleauth.log -rw-r--r--. 1 nova nova 295496 Dec 11 19:29 console.log -rw-r--r--. 1 nova nova 3520 Dec 11 17:40 metadata-api.log -rw-r--r--. 1 nova nova 23647377 Dec 11 19:29 network.log -rw-r--r--. 1 nova nova 451029 Dec 11 03:48 network.log-20131211.gz -rw-r--r--. 1 root root 82306 Dec 11 19:12 nova-dhcpbridge.log -rw-r--r--. 1 root root 64945 Dec 10 18:50 nova-manage.log -rw-r--r--. 1 nova nova 6115017 Dec 11 19:29 scheduler.log -rw-r--r--. 1 nova nova 76887 Dec 11 17:40 xvpvncproxy.log
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. http://rhn.redhat.com/errata/RHEA-2013-1859.html