Bug 1725114 - Logrotate error for OSA dispatcher logs on CentOS 7
Summary: Logrotate error for OSA dispatcher logs on CentOS 7
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Spacewalk
Classification: Community
Component: Server
Version: 2.9
Hardware: x86_64
OS: Linux
unspecified
low
Target Milestone: ---
Assignee: Michael Mráka
QA Contact: Red Hat Satellite QA List
URL:
Whiteboard:
Depends On:
Blocks: space210
TreeView+ depends on / blocked
 
Reported: 2019-06-28 13:15 UTC by Stefan Kutzke
Modified: 2020-03-19 12:16 UTC (History)
0 users

Fixed In Version: osad-5.11.110.1-1
Clone Of:
Environment:
Last Closed: 2020-03-19 12:16:44 UTC
Embargoed:


Attachments (Terms of Use)

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


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