Bug 1144465
| Summary: | /etc/logrotate.d/syslog causes 'No such file or directory' error | |||
|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | Nils Breunese <nils> | |
| Component: | rsyslog | Assignee: | Tomas Heinrich <theinric> | |
| Status: | CLOSED ERRATA | QA Contact: | Marek Marusic <mmarusic> | |
| Severity: | unspecified | Docs Contact: | ||
| Priority: | unspecified | |||
| Version: | 7.0 | CC: | bgoncalv, dennisf, Jan.van.Eldik, matthias.schroder, mmarusic, mschuppe, myllynen, pvrabec, shane.voss | |
| Target Milestone: | rc | |||
| Target Release: | --- | |||
| Hardware: | Unspecified | |||
| OS: | Unspecified | |||
| Whiteboard: | ||||
| Fixed In Version: | Doc Type: | Bug Fix | ||
| Doc Text: | Story Points: | --- | ||
| Clone Of: | ||||
| : | 1252909 1252910 (view as bug list) | Environment: | ||
| Last Closed: | 2015-11-19 14:29:57 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: | ||||
| Bug Blocks: | 1133060 | |||
|
Description
Nils Breunese
2014-09-19 13:02:26 UTC
When hitting this problem /var/log/messages does not get rotated. Adding "missingok" solves the problem. This issue is quite nasty for VMs from images on which /var/log/spooler had been removed to clean the image. (In reply to Matthias Schroder from comment #3) > This issue is quite nasty for VMs from images on which /var/log/spooler had > been removed to clean the image. In our case, virt-sysprep (from libguestfs-tools-c-1.20.11-11.el6) indeed removes /var/log/spooler* by default. (In reply to Nils Breunese from comment #0) > Both /etc/logrotate.d/syslog and /etc/rsyslog.conf refer to > /var/log/spooler, the rsyslog package does not provide/create this > directory. > I think it should either exist, or the /etc/logrotate.d/syslog > should use 'missingok'. Actually, the rsyslog package creates this file in it's %post script. (In reply to Jan van Eldik from comment #5) > (In reply to Matthias Schroder from comment #3) > > This issue is quite nasty for VMs from images on which /var/log/spooler had > > been removed to clean the image. > > In our case, virt-sysprep (from libguestfs-tools-c-1.20.11-11.el6) indeed > removes /var/log/spooler* by default. Then this looks like a bug in libguestfs-tools - they should truncate the files instead of removing them, or adjust the logrotate scripts accordingly. I'll add 'missingok' to the logrorate script nevertheless just to make it more robust. Hi Thomas, (In reply to Tomas Heinrich from comment #6) > > Then this looks like a bug in libguestfs-tools - they should truncate the > files instead of removing them, or adjust the logrotate scripts accordingly. Shall we file a bug against libguestfs-tools then, or can this be handled internally? I anyhow like the idea the add the missingok to the logrotate script to make it more robust. Matthias (In reply to Matthias Schroder from comment #7) > (In reply to Tomas Heinrich from comment #6) > > Then this looks like a bug in libguestfs-tools - they should truncate the > > files instead of removing them, or adjust the logrotate scripts accordingly. > > Shall we file a bug against libguestfs-tools then, or can this be handled > internally? I'm not familiar with virt-sysprep and its goals. If you think this behavior is bogus, file another bug for libguestfs. > I anyhow like the idea the add the missingok to the logrotate script to make > it more robust. Yes, I'll do that anyway. 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-2173.html *** Bug 1319835 has been marked as a duplicate of this bug. *** |