Bug 1382600 - [RHVH] vdsm logs not rotating
Summary: [RHVH] vdsm logs not rotating
Keywords:
Status: CLOSED DUPLICATE of bug 1382833
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: vdsm
Version: 4.0.3
Hardware: All
OS: Linux
unspecified
medium
Target Milestone: ---
: ---
Assignee: Dan Kenigsberg
QA Contact: Virtualization Bugs
URL:
Whiteboard: Node
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-10-07 07:02 UTC by Marcus West
Modified: 2016-10-11 09:38 UTC (History)
9 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-10-11 09:38:09 UTC
oVirt Team: Node
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Marcus West 2016-10-07 07:02:18 UTC
## Description of problem:

vdsm.log is not being rotated.  This host is a day old and currently at 1.8Gb

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

vdsm-4.18.13-1.el7ev.x86_64
rhvh-4.0-0.20160919.0

## How reproducible:

seems to be always

## Steps to Reproduce:
1. update to latest rhvh (4.0
2. check if vdsm.log is rotation

## Actual results:

vdsm.log never rotates

## Expected results:

vdsm.log should rotate same as before (every 4 hours?)

## Additional info:

The logrotate config is there, but doesn't seem to be doing anything.  I noticed that crond.service is disabled by default.  Is this required, or are logs rotated differently now?

Comment 2 Jiri Belka 2016-10-07 12:03:03 UTC
It seems crond is not active on RHVH.

~~~
# systemctl status crond
● crond.service - Command Scheduler
   Loaded: loaded (/usr/lib/systemd/system/crond.service; disabled; vendor preset: disabled)
   Active: inactive (dead)
# cat /etc/os-release 
NAME="Red Hat Enterprise Linux"
VERSION="7.2"
VERSION_ID="7.2"
ID="rhel"
ID_LIKE="fedora"
VARIANT="Red Hat Virtualization Host"
VARIANT_ID="ovirt-node"
PRETTY_NAME="Red Hat Virtualization Host 4.0 (el7.2)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:redhat:enterprise_linux:7.2:GA:hypervisor"
HOME_URL="https://www.redhat.com/"
BUG_REPORT_URL="https://bugzilla.redhat.com/"

# FIXME
REDHAT_BUGZILLA_PRODUCT="Red Hat Virtualization"
REDHAT_BUGZILLA_PRODUCT_VERSION=7.2
REDHAT_SUPPORT_PRODUCT="Red Hat Virtualization"
REDHAT_SUPPORT_PRODUCT_VERSION=7.2
# ls -l /etc/cron.hourly/vdsm-logrotate ; cat /etc/cron.d/0hourly
-rwxr-xr-x. 1 root root 477 Aug 10 19:48 /etc/cron.hourly/vdsm-logrotate
# Run the hourly jobs
SHELL=/bin/bash
PATH=/sbin:/bin:/usr/sbin:/usr/bin
MAILTO=root
01 * * * * root run-parts /etc/cron.hourly
# ls -lthr /var/log/vdsm/vdsm.log*
-rw-r--r--. 1 vdsm kvm 190M Oct  7 14:00 /var/log/vdsm/vdsm.log
[root@dell-r210ii-04 ~]# rpm -qf `which crond`
cronie-1.4.11-14.el7_2.1.x86_64
~~~

Comment 4 Dan Kenigsberg 2016-10-11 09:38:09 UTC

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


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