Bug 836806

Summary: cleanup fails because The directory "/var/log/ovirt-engine" is not owned by user "ovirt", but by "root" - which is caused by rhevm-cleanup
Product: Red Hat Enterprise Virtualization Manager Reporter: Yaniv Kaul <ykaul>
Component: ovirt-engine-setupAssignee: Alex Lourie <alourie>
Status: CLOSED CURRENTRELEASE QA Contact: Yaniv Kaul <ykaul>
Severity: medium Docs Contact:
Priority: high    
Version: 3.1.0CC: acathrow, bazulay, dyasny, hateya, iheim, jkt, mgoldboi, Rhev-m-bugs, ykaul
Target Milestone: ---Keywords: Reopened
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard: integration
Fixed In Version: si11 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-12-04 20:02:33 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Yaniv Kaul 2012-07-01 14:56:33 UTC
Description of problem:
On a relatively clean machine (hand-cleaned), rhevm-cleanup creates /var/log/ovirt-engine with ownership of root:root.
This causes rhevm-setup to fail:

2012-07-01 17:49:42::DEBUG::common_utils::335::root:: output = The directory "/var/log/ovirt-engine" is not owned by user "ovirt", but by "root".

2012-07-01 17:49:42::DEBUG::common_utils::336::root:: stderr = 
2012-07-01 17:49:42::DEBUG::common_utils::337::root:: retcode = 1

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

How reproducible:


Steps to Reproduce:
1. Run rhevm-cleanup
2. Run rhevm-setup
3.
  
Actual results:


Expected results:


Additional info:

Comment 1 Alex Lourie 2012-07-17 08:57:20 UTC
Fix posted for review; http://gerrit.ovirt.org/#/c/6363/

Comment 2 Alex Lourie 2012-07-18 17:04:43 UTC
The new rpms installation handle the creation of the log path with correct ownership.

Comment 3 Yaniv Kaul 2012-07-18 20:54:13 UTC
Please allow QE to test the fix, unless you feel it's not needed.

Comment 4 Alex Lourie 2012-07-19 06:41:27 UTC
Sure.

Comment 6 Haim 2012-08-07 06:32:52 UTC
verified on si13:

executed engine-cleanup && engine-setup:


[root@hateya-rhevm ~]# ls -ld /var/log/ovirt-engine/
drwxr-xr-x. 3 ovirt ovirt 4096 Aug  7 12:52 /var/log/ovirt-engine/