Bug 531030

Summary: log file sized increased by "compression"
Product: [Fedora] Fedora Reporter: Ulrich Drepper <drepper>
Component: libvirtAssignee: Mark McLoughlin <markmc>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: rawhideCC: berrange, clalance, crobinso, itamar, jforbes, markmc, veillard, virt-maint
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: libvirt-0.7.1-15.fc12 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-10-30 16:37:31 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: 498969    

Description Ulrich Drepper 2009-10-26 15:20:55 UTC
Description of problem:
Many log files libvirt creates in /var/log/libvirt/qemu/ have no content.  Still libvirt (or its helpers) "compress" them.  The result are nonzero-sized files.  Just don't do this, test for empty files first.  This will also prevent triggering other bugs (less, for instance, currently has problems showing such files).

Version-Release number of selected component (if applicable):
libvirt-0.6.2-18

How reproducible:
always

Steps to Reproduce:
1.run domain without any action for a few days
2.
3.
  
Actual results:
compress empty files

Expected results:
leave empty files alone

Additional info:

Comment 1 Cole Robinson 2009-10-26 15:30:07 UTC
FYI this is already fixed upstream:

http://libvirt.org/git/?p=libvirt.git;a=commit;h=b03fe2d0aefb57a096a102bf23375f0a167ca189

Comment 2 Daniel Berrangé 2009-10-26 19:22:07 UTC
Switching to POST as per Cole's comment.

Comment 3 Mark McLoughlin 2009-10-29 17:27:41 UTC
Worth fixing for Fedora 12, but probably not worth the effort for Fedora 11.

Building now:

* Thu Oct 29 2009 Mark McLoughlin <markmc> - 0.7.1-15
- Avoid compressing small log files (#531030)

Will request tagging later

Comment 4 Mark McLoughlin 2009-10-30 15:46:01 UTC
tag request: https://fedorahosted.org/rel-eng/ticket/2927