Bug 722209
Summary: | /etc/cron.daily/logrotate should not suppress messages and is not marked as a configuration file | |||
---|---|---|---|---|
Product: | Red Hat Enterprise Linux 6 | Reporter: | Robert Vogelgesang <vogel> | |
Component: | logrotate | Assignee: | Jan Kaluža <jkaluza> | |
Status: | CLOSED ERRATA | QA Contact: | Tomas Dolezal <todoleza> | |
Severity: | high | Docs Contact: | ||
Priority: | medium | |||
Version: | 6.1 | CC: | dnovotny_bugzilla, ejtr, jorton, mmaslano, moshiro, ovasik, pchavan, psklenar | |
Target Milestone: | rc | |||
Target Release: | --- | |||
Hardware: | All | |||
OS: | Linux | |||
Whiteboard: | ||||
Fixed In Version: | logrotate-3.7.8-18.el6 | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | ||
Clone Of: | ||||
: | 722825 1174207 (view as bug list) | Environment: | ||
Last Closed: | 2015-07-22 06:19:32 UTC | Type: | --- | |
Regression: | --- | Mount Type: | --- | |
Documentation: | --- | CRM: | ||
Verified Versions: | Category: | --- | ||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | ||
Cloudforms Team: | --- | Target Upstream Version: | ||
Embargoed: | ||||
Bug Depends On: | ||||
Bug Blocks: | 722825, 782183, 994246, 1075802, 1174207 |
Description
Robert Vogelgesang
2011-07-14 16:01:47 UTC
This request was evaluated by Red Hat Product Management for inclusion in the current release of Red Hat Enterprise Linux. Because the affected component is not scheduled to be updated in the current release, Red Hat is unfortunately unable to address this request at this time. Red Hat invites you to ask your support representative to propose this request, if appropriate and relevant, in the next release of Red Hat Enterprise Linux. If you would like it considered as an exception in the current release, please ask your support representative. You are right, it's upstream change. I really don't understand why he changed it in https://fedorahosted.org/logrotate/changeset/268/trunk/examples/logrotate.cron . Thanks for report. Hello, The redirection change was in order to solve Bug 517321 Another instance of this behavior is Bug 542538 Thanks for info Dan. I will check those bugs. (In reply to comment #4) > Hello, > > The redirection change was in order to solve Bug 517321 > Another instance of this behavior is Bug 542538 IMHO, these bugs are bugs of run-parts (in the crontabs package) and not of logrotate. Instead of using the pipe to awk in run-parts, the output of each command could be redirected to a temporary file, and if that is not empty after the command finished, run-parts would print the command name followed by the contents of the temporary file, and the temporary file should then be removed. To avoid issues with output from longer running processes started by logrotate, a new temporary file should be created for each command started by run-parts. run-parts should be fixed, because other scripts in /etc/cron.* could expose the same behaviour as logrotate, i. e. starting long-running processes that keep open stderr and/or stdout. I've submitted Bug #742206 for the crontabs package, referencing this Bug here. Ok, it looks we have two options how to "fix" it in logrotate and none of them look right: 1. Keep the output redirection as it is now, and suppress error messages. 2. Remove the redirection and wait for someone with the same problem as in Bug 517321 to find out which daemon is causing run-parts to freeze. This will probably cause a regression in the future, but hopefully we would be able to find out which daemon is broken. I will try to ask reporter of Bug 517321 if he remembers which services he ran or if he still have that machine and can provide us list of config files in /etc/logrotate.d directory to have at least some tips for packages which could be broken this way. (In reply to comment #8) > Ok, it looks we have two options how to "fix" it in logrotate and none of them > look right: > > 1. Keep the output redirection as it is now, and suppress error messages. > 2. Remove the redirection and wait for someone with the same problem as in Bug > 517321 to find out which daemon is causing run-parts to freeze. This will > probably cause a regression in the future, but hopefully we would be able to > find out which daemon is broken. I'd certainly go with the second option, We are running all of our important RHEL-6 machines this way. run-parts does not freeze, and the only messages we get from the logrotate daily cronjob are all coming from postrotate scripts that we hacked ourselves (which is good, IMHO). So, either we don't have the "misbehaving" package installed on our machines, or the original issue is fixed already. > I will try to ask reporter of Bug 517321 if he remembers which services he ran > or if he still have that machine and can provide us list of config files in > /etc/logrotate.d directory to have at least some tips for packages which could > be broken this way. Additionally you could mark /etc/cron.daily/logrotate with %config(noreplace) in the spec file, to make it easier for local system admins to "fix" such issues in a way they see as appropriate. This request was evaluated by Red Hat Product Management for inclusion in the current release of Red Hat Enterprise Linux. Because the affected component is not scheduled to be updated in the current release, Red Hat is unable to address this request at this time. Red Hat invites you to ask your support representative to propose this request, if appropriate, in the next release of Red Hat Enterprise Linux. *** Bug 878032 has been marked as a duplicate of this bug. *** This request was evaluated by Red Hat Product Management for inclusion in the current release of Red Hat Enterprise Linux. Because the affected component is not scheduled to be updated in the current release, Red Hat is unable to address this request at this time. Red Hat invites you to ask your support representative to propose this request, if appropriate, in the next release of Red Hat Enterprise Linux. (In reply to RHEL Product and Program Management from comment #21) > This request was evaluated by Red Hat Product Management for > inclusion in the current release of Red Hat Enterprise Linux. > Because the affected component is not scheduled to be updated > in the current release, Red Hat is unable to address this > request at this time. Apparently, the Red Hat Product Management doesn't really know what their engineering does. The logrotate package actually was updated just now, together with the RHEL-6.5 update, and is now at version 3.7.8-17.el6. But a fix for this simple but annoying issue was not included. Why? Fedora has it fixed since ages now. 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/RHBA-2015-1293.html |