RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
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:
Embargoed:


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.