Bug 630009 - external yum repo sync logs not under logrotate control
Summary: external yum repo sync logs not under logrotate control
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Satellite 5
Classification: Red Hat
Component: Server
Version: 540
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Shannon Hughes
QA Contact: Martin Minar
URL:
Whiteboard:
Depends On:
Blocks: sat540-canfix
TreeView+ depends on / blocked
 
Reported: 2010-09-03 13:57 UTC by Jan Hutař
Modified: 2016-07-04 00:55 UTC (History)
4 users (show)

Fixed In Version: spacewalk-backend-1.2.13-7-sat
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-10-28 15:02:32 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Jan Hutař 2010-09-03 13:57:28 UTC
Description of problem:
While checking that logs in /var/log/rhn/reposync/ are under logrotate control, I have found only rule indicating that they are not - but I'm not completely sure and I'll check later if they really do not get rotated.


Version-Release number of selected component (if applicable):
Galactica: Satellite-5.4.0-RHEL5-re20100827.0-x86_64-embedded-oracle.iso
spacewalk-backend-tools-1.2.8-1.el5sat


How reproducible:
see on 1 satellite


Steps to Reproduce:
1. # ls /var/log/rhn/reposync/
   pok-aaa-2010.09.03-08:08:32.log
   pok-aaa-2010.09.03-08:42:24.log
   pok-aaa-2010.09.03-09:00:09.log
2. # grep -R reposync /etc/logrotate.d/*
   /etc/logrotate.d/spacewalk-backend-tools:/var/log/rhn/reposync/reposync.log {


Actual results:
It looks like only /var/log/rhn/reposync/reposync.log (which do not exist) is rotated.


Expected results:
Maybe this should be in the config:
- /var/log/rhn/reposync/reposync.log {
+ /var/log/rhn/reposync/*.log {

Comment 1 Jan Hutař 2010-09-20 10:41:20 UTC
Please note this might be important if somebody would be syncing lot of repositories often. On my test Galactica I already have thet directory 6.7 MB big:

# du -hs /var/log/rhn/reposync/
6.7M	/var/log/rhn/reposync/

Comment 2 Shannon Hughes 2010-09-23 20:01:28 UTC
i added the wildcard *.log to catch the new log files based off our changes: 

 log_filename = options.channel_label + '-' +  datestr + '.log'

we might want to tweak the rotate values. currently we are rotating after 5 iterations or when the file gets to 10M. Open for suggestions.

Comment 7 Clifford Perry 2010-10-28 14:57:10 UTC
The 5.4.0 RHN Satellite and RHN Proxy release has occurred. This issue has been resolved with this release. 


RHEA-2010:0801 - RHN Satellite Server 5.4.0 Upgrade
https://rhn.redhat.com/rhn/errata/details/Details.do?eid=10332

RHEA-2010:0803 - RHN Tools enhancement update
https://rhn.redhat.com/rhn/errata/details/Details.do?eid=10333

RHEA-2010:0802 - RHN Proxy Server 5.4.0 bug fix update
https://rhn.redhat.com/rhn/errata/details/Details.do?eid=10334

RHEA-2010:0800 - RHN Satellite Server 5.4.0
https://rhn.redhat.com/rhn/errata/details/Details.do?eid=10335

Docs are available:

http://docs.redhat.com/docs/en-US/Red_Hat_Network_Satellite/index.html 

Regards,
Clifford


Note You need to log in before you can comment on or make changes to this bug.