Bug 630009
| Summary: | external yum repo sync logs not under logrotate control | ||
|---|---|---|---|
| Product: | Red Hat Satellite 5 | Reporter: | Jan Hutař <jhutar> |
| Component: | Server | Assignee: | Shannon Hughes <shughes> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Martin Minar <mminar> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 540 | CC: | cperry, mkoci, mminar, psklenar |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | spacewalk-backend-1.2.13-7-sat | Doc Type: | Bug Fix |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2010-10-28 15:02:32 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: | 608752 | ||
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/ 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. 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 |
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 {