Bug 422271
| Summary: | Drop in support for logrotate | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 5 | Reporter: | Adam Stokes <astokes> | ||||||||
| Component: | xen | Assignee: | Daniel Berrangé <berrange> | ||||||||
| Status: | CLOSED ERRATA | QA Contact: | Gurhan Ozen <gozen> | ||||||||
| Severity: | low | Docs Contact: | |||||||||
| Priority: | low | ||||||||||
| Version: | 5.1 | CC: | gozen, jburke, k.georgiou, tao, xen-maint | ||||||||
| Target Milestone: | --- | ||||||||||
| Target Release: | --- | ||||||||||
| Hardware: | All | ||||||||||
| OS: | Linux | ||||||||||
| Whiteboard: | |||||||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||||||
| Doc Text: | Story Points: | --- | |||||||||
| Clone Of: | Environment: | ||||||||||
| Last Closed: | 2009-01-20 21:15:17 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: | 391501, 409971, 449772 | ||||||||||
| Attachments: |
|
||||||||||
|
Description
Adam Stokes
2007-12-12 18:42:16 UTC
Created attachment 286001 [details]
Spec file patch for logrotate support
Created attachment 286011 [details]
logrotate config
See bug #234594 on why we went with: /var/log/xen/xend-debug.log /var/log/xen/xen-hotplug.log /var/log/xen/domain-builder-ng.log { notifempty missingok copytruncate } in Fedora, in particular that we didn't do *.log since xend.log is already rotated by xend. RHEL-5.3 doesn't even exist yet, changing component version to more a sensible 5.1 We previously punted on this issue for 5.1, but we should consider it for 5.2 since it is an easy change to make and solves a real problem. Equivalent change is already in Fedora 8 and later. This request was evaluated by Red Hat Product Management for inclusion in a Red Hat Enterprise Linux maintenance release. Product Management has requested further review of this request by Red Hat Engineering, for potential inclusion in a Red Hat Enterprise Linux Update release for currently deployed products. This request is not yet committed for inclusion in an Update release. From Fujitsu: 1)/var/log/xen/qemu-dm.*.log should be fixed by logrotate 2)/var/log/xen/xen-hotplug.log should be fixed by logrotate 3)/var/log/xen/xend-debug.log same as 5) 4)/var/log/xen/console/*.log should be fixed by logrotate 5)/var/log/xen/domain-builder-ng.log > How is to restart the xend daemon after this logfile is rotated by logrotate? > We should be able to use "postrotate ... endscript" in the logrotate configuration. It is impossible because of the same reason as 3)/var/log/xen/xend-debug.log. Xend does not close this file. We consider that xend needs to be modified or restarted. This event sent from IssueTracker by mmatsuya issue 138413 There is no need to restart Xend after rotating the xend-debug.log - the 'copytruncate' directive in the logrotate file deals with the issue of XenD not closing the file by truncating it to 0 bytes after it has been rotated. This request was evaluated by Red Hat Product Management for inclusion in a Red Hat Enterprise Linux maintenance release. Product Management has requested further review of this request by Red Hat Engineering, for potential inclusion in a Red Hat Enterprise Linux Update release for currently deployed products. This request is not yet committed for inclusion in an Update release. Created attachment 311474 [details]
Proposed logrotate config
Built into xen-3.0.3-68.el5 An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on therefore solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHBA-2009-0118.html |