Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Description of problem:
A vanilla install of RHEL 6 with RHEV 3.5 will eventually consume all available space in /var/logs because the httpd logs are not compressed or removed.
Version-Release number of selected component (if applicable):
RHEL 6.7 with RHEV 3.5.X
How reproducible:
Install RHEL, and install RHEV. Allow it to run for X number of days/weeks/months and /var/log will be 100%.
Steps to Reproduce:
1. Install RHEL
2. Install RHEV
3. Wait
Actual results:
# cat /etc/logrotate.d/httpd
/var/log/httpd/*log {
missingok
notifempty
sharedscripts
postrotate
/bin/kill -HUP `cat /var/run/httpd/httpd.pid 2>/dev/null` 2> /dev/null || true
endscript
}
Expected results:
# cat /etc/logrotate.d/httpd
/var/log/httpd/*log {
missingok
notifempty
sharedscripts
compress
rotate 5
postrotate
/bin/kill -HUP `cat /var/run/httpd/httpd.pid 2>/dev/null` 2> /dev/null || true
endscript
}
Additional info:
Rotate 5 worked for me, but it probably doesn't even need to be that much. Default configs only keep the ovirt-engine logs for 20 days and http is set by default to rotate weekly.
If there is some concern that we would be overwritting customer configurations you could make this change only when 'Set application as default page' is set as True during engine-setup.
Comment 2Yedidyah Bar David
2016-06-02 10:09:12 UTC
(In reply to Yaniv Dary from comment #1)
> Isn't this a httpd bug? not a RHEV bug?
If at all, it's an httpd bug.
The httpd-specific file [1] has neither 'compress' nor 'nocompress'.
The system-wide file [2] has:
# uncomment this if you want your log files compressed
#compress
One might claim it should be enabled by default, which then makes it a logrotate bug.
[1] /etc/logrotate.d/httpd
[2] /etc/logrotate.conf
What's your /etc/logrotate.conf?
[root@virt-el7 ~]# grep ^rotate /etc/logrotate.conf
rotate 4
[root@virt-el7 ~]# rpm -V logrotate
[root@virt-el7 ~]# rpm -q logrotate
logrotate-3.8.6-7.el7_2.x86_64
httpd does not override the global default of "rotate 4", so it applies to httpd logs.
Description of problem: A vanilla install of RHEL 6 with RHEV 3.5 will eventually consume all available space in /var/logs because the httpd logs are not compressed or removed. Version-Release number of selected component (if applicable): RHEL 6.7 with RHEV 3.5.X How reproducible: Install RHEL, and install RHEV. Allow it to run for X number of days/weeks/months and /var/log will be 100%. Steps to Reproduce: 1. Install RHEL 2. Install RHEV 3. Wait Actual results: # cat /etc/logrotate.d/httpd /var/log/httpd/*log { missingok notifempty sharedscripts postrotate /bin/kill -HUP `cat /var/run/httpd/httpd.pid 2>/dev/null` 2> /dev/null || true endscript } Expected results: # cat /etc/logrotate.d/httpd /var/log/httpd/*log { missingok notifempty sharedscripts compress rotate 5 postrotate /bin/kill -HUP `cat /var/run/httpd/httpd.pid 2>/dev/null` 2> /dev/null || true endscript } Additional info: Rotate 5 worked for me, but it probably doesn't even need to be that much. Default configs only keep the ovirt-engine logs for 20 days and http is set by default to rotate weekly. If there is some concern that we would be overwritting customer configurations you could make this change only when 'Set application as default page' is set as True during engine-setup.