Bug 1725114

Summary: Logrotate error for OSA dispatcher logs on CentOS 7
Product: [Community] Spacewalk Reporter: Stefan Kutzke <skutzke>
Component: ServerAssignee: Michael Mráka <mmraka>
Status: CLOSED CURRENTRELEASE QA Contact: Red Hat Satellite QA List <satqe-list>
Severity: low Docs Contact:
Priority: unspecified    
Version: 2.9   
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: osad-5.11.110.1-1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-03-19 12:16:44 UTC Type: Bug
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: 1802137    

Description Stefan Kutzke 2019-06-28 13:15:31 UTC
Description of problem:

File /etc/logrotate.d/osa-dispatcher has bad file mode 0664.

# logrotate -f /etc/logrotate.d/osa-dispatcher 
error: Ignoring /etc/logrotate.d/osa-dispatcher because of bad file mode - must be 0644 or 0444.

Version-Release number of selected component (if applicable):
osa-dispatcher-5.11.107-1.el7.noarch
logrotate-3.8.6-17.el7.x86_64

How reproducible:
Always on CentOS 7 with logrotate v3.8

Steps to Reproduce:
1. Simply run: logrotate -f /etc/logrotate.d/osa-dispatcher 
2.
3.

Actual results:
Logrotate does not rotate osa-dispatcher logs.

Expected results:
Logrotate rotates osa-dispatcher logs

Additional info:
Similiar to https://bugzilla.redhat.com/show_bug.cgi?id=1589668

Comment 1 Michael Mráka 2020-03-11 09:36:25 UTC
Fixed in spacewalk git by
commit cceba8258babced140a8cff4072f58ed08e64918
    1725114 - set proper file permissions

Comment 2 Michael Mráka 2020-03-19 12:16:44 UTC
Spacewalk 2.10 has been released.
https://github.com/spacewalkproject/spacewalk/wiki/ReleaseNotes210