Bug 1382833 - RHV-H 4.0 does not enable and automatically start the crond service
Summary: RHV-H 4.0 does not enable and automatically start the crond service
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-node-ng
Version: 4.0.3
Hardware: Unspecified
OS: Linux
high
urgent
Target Milestone: ovirt-4.1.0-beta
: ---
Assignee: Ryan Barry
QA Contact: jianwu
URL:
Whiteboard:
: 1382600 1383259 1387637 (view as bug list)
Depends On:
Blocks: 1386135
TreeView+ depends on / blocked
 
Reported: 2016-10-07 20:33 UTC by Gordon Watson
Modified: 2020-04-15 14:43 UTC (History)
18 users (show)

Fixed In Version: redhat-release-virtualization-host-4.0-5.1.el7
Doc Type: Bug Fix
Doc Text:
Previously, the crond service was not enabled in the default configuration of Red Hat Virtualization Host (RHVH) 4.x. As a result, the log rotation functionality was not triggered, resulting in very large log files which could potentially fill the disk. In this release, the bug was fixed. As a result, the crond service is now enabled in the default configuration and log rotation functions as required.
Clone Of:
: 1386135 (view as bug list)
Environment:
Last Closed: 2017-04-20 18:59:58 UTC
oVirt Team: Node
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Knowledge Base (Solution) 2690541 0 None None None 2016-10-10 15:57:13 UTC
Red Hat Product Errata RHEA-2017:1114 0 normal SHIPPED_LIVE redhat-virtualization-host bug fix and enhancement update 2017-04-20 22:57:46 UTC

Description Gordon Watson 2016-10-07 20:33:41 UTC
Description of problem:

RHV-H 4.0 does not have 'crond' enabled, and so it does not start automatically. The result of this is that 'logrotate' doesn't run and files such as 'vdsm.log' and '/var/log/messages' just grow and grow, potentially filling up '/var'.

This is a regression of functionality from RHEV-H 3.6, in which 'crond' was started automatically.


Version-Release number of selected component (if applicable):

RVH_4.0 20160919.0.el7


How reproducible:

100%.


Steps to Reproduce:

1. Run 'ps -ef | grep cron'.
2. Run 'systemctl status crond.service'.
3. Observe '/var/log/vdsm' and see only one (large) vdsm log file.


Actual results:

No log rotation.


Expected results:

Log rotation.


Additional info:

Comment 4 Yaniv Kaul 2016-10-10 13:25:11 UTC
*** Bug 1383259 has been marked as a duplicate of this bug. ***

Comment 5 Fabian Deutsch 2016-10-10 19:52:59 UTC
An easy workaround is to use "systemctl enable crond".

Comment 7 cshao 2016-10-11 02:36:22 UTC
Hi yzhao,

Could you reproduce this issue on QE env.?

Comment 8 Yihui Zhao 2016-10-11 03:42:22 UTC
Hi,all
   i reproduce the bug on rhvh-4.0-0.20160919.0+1.

Here is my steps:
#1.install RHVH4.0-0.20160919
#2.Run 'ps -ef | grep cron'.
#3.Run 'systemctl status crond.service'.
#4.add host to engine




Result:
1.crond service inactive
2.Before add host to engine,the vdsm.log is  empty,but after add host to engine,
such as  "vdsm.log" just grow and grow.

Thanks,
Yihui

Comment 9 Dan Kenigsberg 2016-10-11 09:38:09 UTC
*** Bug 1382600 has been marked as a duplicate of this bug. ***

Comment 12 Ryan Barry 2016-10-24 09:18:56 UTC
*** Bug 1387637 has been marked as a duplicate of this bug. ***

Comment 14 jianwu 2017-01-17 06:44:41 UTC
Hi, all 

I have verified this bug on redhat-virtualization-host-4.1-20170116.0 as follows:

Test version:
redhat-virtualization-host-4.1-0.20170116.0

#1.Install RHVH new build
#2.Run 'ps -ef | grep cron'
#3.Run 'systemctl status crond.service'
#4.add host to engine

Actual Results
1. After step 2, # ps -ef|grep cron
root      1402     1  0 14:08 ?        00:00:00 /usr/sbin/crond -n
root     21870 20370  0 14:28 pts/0    00:00:00 grep --color=auto cron
2. After step 3, # systemctl status crond.service
● crond.service - Command Scheduler
   Loaded: loaded (/usr/lib/systemd/system/crond.service; enabled; vendor preset: disabled)
   Active: active (running) since Tue 2017-01-17 14:08:24 CST; 21min ago
 Main PID: 1402 (crond)
   CGroup: /system.slice/crond.service
           └─1402 /usr/sbin/crond -n
3. After step 4, "vdsm.log" just grow normally

So I think this bug is fixed in this version. I will change status to Verified.

Comment 15 cshao 2017-01-17 06:47:07 UTC
Please ignore #c13 due to a typo.

Comment 16 errata-xmlrpc 2017-04-20 18:59:58 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://access.redhat.com/errata/RHEA-2017:1114


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