Bug 1311053
Summary: | core dumps in /var/log/core cannot be rotated. | ||
---|---|---|---|
Product: | Red Hat Enterprise Virtualization Manager | Reporter: | Olimp Bockowski <obockows> |
Component: | rhev-hypervisor | Assignee: | Douglas Schilling Landgraf <dougsland> |
Status: | CLOSED DUPLICATE | QA Contact: | Huijuan Zhao <huzhao> |
Severity: | medium | Docs Contact: | |
Priority: | high | ||
Version: | 3.6.0 | CC: | agkesos, cshao, dougsland, fdeutsch, gklein, huiwa, huzhao, lsurette, mgoldboi, obockows, pstehlik, ycui, yeylon, ykaul |
Target Milestone: | ovirt-3.6.6 | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2016-04-11 19:37:01 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: |
Description
Olimp Bockowski
2016-02-23 09:33:09 UTC
Reproduced this bug in RHEV-H 7.2-20160219.0.el7ev. Test version: RHEV-H 7.2-20160219.0.el7ev ovirt-node-3.2.3-31.el7.noarch Test steps: 1. Install RHEV-H 7.2-20160219.0.el7ev 2. Drop to Rescue: #echo c > /proc/sysrq-trigger 3. Create dumps in step2, rename dumps: #cp /var/log/core/127.0.0.1-2016-03-09-09:27:40/vmcore /var/log/core/core.13731.1455545439.dump 4. change rules in /etc/vdsm/logrotate/vdsm (changed size) 5. #/usr/sbin/logrotate --debug --force /etc/vdsm/logrotate/vdsm Actual results: error: error opening /var/log/core/core.13731.1455545439.dump: Permission denied Additional info: /etc/vdsm/logrotate/vdsm has additional line: su vdsm kvm core dumps belongs to root removing 'su vdsm kvm' from /etc/vdsm/logrotate/vdsm, #/usr/sbin/logrotate --debug --force /etc/vdsm/logrotate/vdsm gives error: error: skipping "/var/log/core/core.13731.1455545439.dump" because parent directory has insecure permissions (It's world writable or writable by group which is not "root") Set "su" directive in config file to tell logrotate which user/group should be used for rotation. Olimp, are my test steps right? Hi, This report is a dup of bz#1265547. If you would like to test the fix in this specific version of rhev-h change qemu kvm user/group in /etc/vdsm/logrotate to root root: /var/log/core/*.dump <snip> su root root </snip> Additionally, recent rhev-h builds should contain such fix. *** This bug has been marked as a duplicate of bug 1265547 *** |