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
Chen, could you reproduce this issue on QE env.?
(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)
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
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