Bug 1177970
| Summary: | logrotate Fails if File is Removed During Rotation Process | |||
|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 6 | Reporter: | Jamie Duncan <jduncan> | |
| Component: | logrotate | Assignee: | Kamil Dudka <kdudka> | |
| Status: | CLOSED WONTFIX | QA Contact: | qe-baseos-daemons | |
| Severity: | high | Docs Contact: | ||
| Priority: | high | |||
| Version: | 6.6 | CC: | bgoncalv, cww, dsirrine, jkaluza, jorton, psklenar, todoleza | |
| Target Milestone: | rc | |||
| Target Release: | --- | |||
| Hardware: | All | |||
| OS: | Linux | |||
| Whiteboard: | ||||
| Fixed In Version: | logrotate-3.7.8-21.el6 | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | ||
| Clone Of: | ||||
| : | 1196583 (view as bug list) | Environment: | ||
| Last Closed: | 2017-05-31 19:58:50 UTC | Type: | Bug | |
| 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: | 1196583 | |||
| Bug Blocks: | 1075802, 1172231, 1269194 | |||
|
Description
Jamie Duncan
2014-12-31 20:46:03 UTC
I can't think of a valid reason for logrotate to totally error out if sharedscripts is enabled, and to not totally error out if it's not. Is there some logic there that I'm missing? If so, please let me know so I can better inform the customer. If there isn't, then I'd like to still have this considered as a bug and have logrotate fail gracefully if an anticipated file is gone whether or not sharedscripts is enabled. Thanks, Jamie Duncan (In reply to Jamie Duncan from comment #4) > I can't think of a valid reason for logrotate to totally error out if > sharedscripts is enabled, and to not totally error out if it's not. > > Is there some logic there that I'm missing? > > If so, please let me know so I can better inform the customer. > > If there isn't, then I'd like to still have this considered as a bug and > have logrotate fail gracefully if an anticipated file is gone whether or not > sharedscripts is enabled. I think this behaviour is bad and should be fixed. "sharedscripts" should have impact only on postrotate/prerotate script execution. When rotation of single log file fails, it should print an error, but continue with another log no matter if there's "sharedscripts" or not. However, if you use "sharedscripts" and the postrotate or prerotate script returns an error, no logs should be rotated (That's mentioned in manpage). I presume it would be acceptable fix for the customer to print an error and do not rotate the missing/removed log, but continue rotating other logs from the log set. *** Bug 1199504 has been marked as a duplicate of this bug. *** Red Hat Enterprise Linux 6 transitioned to the Production 3 Phase on May 10, 2017. During the Production 3 Phase, Critical impact Security Advisories (RHSAs) and selected Urgent Priority Bug Fix Advisories (RHBAs) may be released as they become available. The official life cycle policy can be reviewed here: http://redhat.com/rhel/lifecycle This issue does not appear to meet the inclusion criteria for the Production Phase 3 and will be marked as CLOSED/WONTFIX. If this remains a critical requirement, please contact Red Hat Customer Support to request a re-evaluation of the issue, citing a clear business justification. Red Hat Customer Support can be contacted via the Red Hat Customer Portal at the following URL: https://access.redhat.com |