Bug 1383655 - Logrotate on rhev-h 7.2 cant write state file to /var/lib/ as it is read only
Summary: Logrotate on rhev-h 7.2 cant write state file to /var/lib/ as it is read only
Keywords:
Status: CLOSED DUPLICATE of bug 1272236
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: logrotate
Version: 7.2
Hardware: All
OS: Linux
unspecified
medium
Target Milestone: rc
: ---
Assignee: Kamil Dudka
QA Contact: qe-baseos-daemons
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-10-11 11:27 UTC by Marian Jankular
Modified: 2020-02-14 17:59 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-10-11 11:40:52 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description Marian Jankular 2016-10-11 11:27:35 UTC
Description of problem:
Logrotate on rhev-h 7.2 produces error in cron.log

Version-Release number of selected component (if applicable):
logrotate-3.8.6-7.el7_2.x86_64

How reproducible:
everytime on 7.2

Steps to Reproduce:
1.install rhevh 7.2 any version
2.connect to manager and leave running for some time (couple of hours)
3.check /var/log/cron.log for error messages
4. or just run logrotate manually instead of waiting

Actual results:
Oct  6 13:00:01 hv01 CROND[11797]: (root) CMDOUT (error: error creating output
file /var/lib/logrotate.status.tmp: Read-only file system


Expected results:
no error in syslog/cronlog

Additional info:
workaround:

modify /etc/cron.hourly/vdsm-logrotate line 
"/usr/sbin/logrotate /etc/vdsm/logrotate/vdsm"
to
"/usr/sbin/logrotate --state /tmp/vdsm_logrotate.state /etc/vdsm/logrotate/vdsm"

Comment 1 Kamil Dudka 2016-10-11 11:40:52 UTC
I believe this is a duplicate of bug #1272236.

*** This bug has been marked as a duplicate of bug 1272236 ***


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