Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1380596

Summary: error: error creating state file /var/lib/logrotate.status: Read-only file system
Product: Red Hat Enterprise Virtualization Manager Reporter: Douglas Schilling Landgraf <dougsland>
Component: ovirt-nodeAssignee: Douglas Schilling Landgraf <dougsland>
Status: CLOSED ERRATA QA Contact: jianwu <jiawu>
Severity: high Docs Contact:
Priority: medium    
Version: 3.6.9CC: bmcclain, cshao, fdeutsch, gklein, lsurette, ycui, ykaul
Target Milestone: ovirt-3.6.10Keywords: ZStream
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: rhev-hypervisor7-7.3-20161021.0 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-01-17 18:04:44 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Node RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1381719    
Bug Blocks:    

Description Douglas Schilling Landgraf 2016-09-30 04:37:16 UTC
Description of problem:

/var/log/cron showing logrotate error:

Sep 29 20:40:01 localhost CROND[29472]: (root) CMDOUT (error: error creating state file /var/lib/logrotate.status: Read-only file system)

Version-Release number of selected component (if applicable):
rhev-hypervisor7-7.3-20160923.2

How reproducible:
- Install rhev-hypervisor7-7.3-20160923.2
- check /var/log/cron log

Comment 1 Ying Cui 2016-10-10 06:51:51 UTC
Chen, could you reproduce this issue on QE env.?

Comment 2 cshao 2016-10-10 09:50:31 UTC
(In reply to Ying Cui from comment #1)
> Chen, could you reproduce this issue on QE env.?

Yes, I can reproduce this issue.

Test version:
Red Hat Enterprise Virtualization Hypervisor release 7.3 (20160923.2.el7ev)
ovirt-node-3.6.1-20.0.el7ev.noarch


# tail -f /var/log/cron
Oct 10 09:40:01 dhcp-11-27 CROND[20963]: (root) CMD (/usr/sbin/logrotate /etc/logrotate.conf)
Oct 10 09:40:01 dhcp-11-27 CROND[20964]: (root) CMD (/usr/lib64/sa/sa1 1 1)
Oct 10 09:40:01 dhcp-11-27 CROND[20962]: (root) CMD (python < /usr/share/rhn/virtualization/poller.py)
Oct 10 09:40:01 dhcp-11-27 CROND[20905]: (root) CMDOUT (error: error creating state file /var/lib/logrotate.status: Read-only file system)

Comment 3 jianwu 2016-11-10 08:56:20 UTC
I have tested new version about this issue

Test version:
RHEV-H 7.3-20161028.1.e17ev
ovirt-node-3.6.1-34.0.el7ev.noarch

#tail -f /var/log/cron
Nov 10 08:20:01 dhcp-8-194 CROND[18135]: (root) CMD (/usr/sbin/logrotate -s /var/lib/logrotate/logrotate.status /etc/logrotate.conf)
Nov 10 08:22:01 dhcp-8-194 CROND[18158]: (root) CMD (python < /usr/share/rhn/virtualization/poller.py)
Nov 10 08:24:01 dhcp-8-194 CROND[18176]: (root) CMD (python < /usr/share/rhn/virtualization/poller.py)
Nov 10 08:26:01 dhcp-8-194 CROND[18194]: (root) CMD (python < /usr/share/rhn/virtualization/poller.py)
Nov 10 08:28:01 dhcp-8-194 CROND[18369]: (root) CMD (python < /usr/share/rhn/virtualization/poller.py)
Nov 10 08:29:25 dhcp-8-194 crond[2154]: (CRON) INFO (Shutting down)
Nov 10 16:30:27 dhcp-8-194 crond[2805]: (CRON) INFO (Syslog will be used instead of sendmail.)
Nov 10 16:30:27 dhcp-8-194 crond[2805]: (CRON) INFO (RANDOM_DELAY will be scaled with factor 14% if used.)
Nov 10 16:30:27 dhcp-8-194 crond[2805]: (CRON) INFO (running with inotify support)
Nov 10 08:32:01 dhcp-8-194 CROND[17745]: (root) CMD (python < /usr/share/rhn/virtualization/poller.py)
Nov 10 08:34:01 dhcp-8-194 CROND[17973]: (root) CMD (python < /usr/share/rhn/virtualization/poller.py)
Nov 10 08:36:01 dhcp-8-194 CROND[17991]: (root) CMD (python < /usr/share/rhn/virtualization/poller.py)
(......)

There is no error occur, this bug is fixed on new version, i will verify this bug.

Jian Wu
Thanks

Comment 5 errata-xmlrpc 2017-01-17 18:04:44 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHEA-2017-0108.html