Bug 633919
Summary: | Adding log rotation to /var/log/brcm-iscsi.log | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux 5 | Reporter: | Alan Pevec <apevec> | ||||||
Component: | ovirt-node | Assignee: | Mike Burns <mburns> | ||||||
Status: | CLOSED ERRATA | QA Contact: | Virtualization Bugs <virt-bugs> | ||||||
Severity: | medium | Docs Contact: | |||||||
Priority: | urgent | ||||||||
Version: | 5.6 | CC: | apevec, cpelland, gouyang, jbrier, mburns, mchristi, mshao, ovirt-maint, yeylon | ||||||
Target Milestone: | rc | Keywords: | ZStream | ||||||
Target Release: | 5.6 | ||||||||
Hardware: | All | ||||||||
OS: | Linux | ||||||||
Whiteboard: | |||||||||
Fixed In Version: | ovirt-node-1.0-58.el5 | Doc Type: | Bug Fix | ||||||
Doc Text: |
Prior to this update, "/var/log/brcm-iscsi.log" file was not log-rotated by default. With this update, log rotation of the "/var/log/brcm-iscsi.log" file is enabled to prevent it from growing indefinitely. Additionally, a previously existing bug was discovered that prevented the "/var/log/ovirt.log" file from being rotated. This update fixes this issue, and log rotatation for the "/var/log/ovirt.log" file works as expected.
|
Story Points: | --- | ||||||
Clone Of: | 602959 | Environment: | |||||||
Last Closed: | 2011-07-27 14:41:15 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: | 703995 | ||||||||
Attachments: |
|
Description
Alan Pevec
2010-09-14 16:53:53 UTC
Created attachment 498067 [details]
Patch
Added brcm-iscsi.log to list of logs to be rotated.
Currently set to be same options as ovirt.log.
Created attachment 499343 [details] Follow-up patch See bug 703995 comment 5 for details Patch fixes ovirt log rotation Technical note added. If any revisions are required, please edit the "Technical Notes" field accordingly. All revisions will be proofread by the Engineering Content Services team. New Contents: Prior to this update, "/var/log/brcm-iscsi.log" file was not log-rotated by default. With this update, log rotation of the "/var/log/brcm-iscsi.log" file is enabled to prevent it from growing indefinitely. Additionally, a previously existing bug was discovered that prevented the "/var/log/ovirt.log" file from being rotated. This update fixes this issue, and log rotatation for the "/var/log/ovirt.log" file works as expected. Verified on rhev-hypervisor-5.7-20110622.0.el5, brcm-iscsi.log is rotated and compressed while it got big: # ll brcm* -rw-r--r-- 1 root root 0 Jun 24 04:00 brcm-iscsi.log -rw-r--r-- 1 root root 561495 Jun 24 04:00 brcm-iscsi.log.1.gz it's configured in /etc/logrotate.d/ovirt-node: # cat /etc/logrotate.d/ovirt-node /var/log/ovirt*.log /var/log/mcelog /var/log/brcm-iscsi.log { rotate 3 compress missingok size 1M create } ovirt.log is also rotated when it got big: # cd /var/log [root@localhost log]# ll ovirt* -rw-r--r-- 1 root root 1126 Jun 24 05:11 ovirt.log -rw-r--r-- 1 root root 18450 Jun 24 2011 ovirt.log-tmp -rw-r--r-- 1 root root 34558 Jun 24 05:10 ovirt.log.1.gz 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/RHSA-2011-1090.html It seems to me the log rotation of brcm-iscsi.log should have been fixed in iscsi-initiator-utils instead of in ovirt-node. I have a customer on plain RHEL 5 libvirt/kvm which does not use ovirt-node so I opened a separate bug on RHEL. https://bugzilla.redhat.com/show_bug.cgi?id=729355 (In reply to comment #8) > It seems to me the log rotation of brcm-iscsi.log should have been fixed in > iscsi-initiator-utils instead of in ovirt-node. Agreed, but as comment 0 says, original bug 602959 was targeted to be fixed in 6.x only so we fixed where we could. I thought we had a bz for iscsi-initiator-utils in rhel 5 too. I will try to find it. (In reply to comment #10) > I thought we had a bz for iscsi-initiator-utils in rhel 5 too. I will try to > find it. I searched before I opened the one above.. didn't see anything but maybe there is one. |