Bug 836806 - cleanup fails because The directory "/var/log/ovirt-engine" is not owned by user "ovirt", but by "root" - which is caused by rhevm-cleanup
Summary: cleanup fails because The directory "/var/log/ovirt-engine" is not owned by ...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-engine-setup
Version: 3.1.0
Hardware: x86_64
OS: Linux
high
medium
Target Milestone: ---
: ---
Assignee: Alex Lourie
QA Contact: Yaniv Kaul
URL:
Whiteboard: integration
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-07-01 14:56 UTC by Yaniv Kaul
Modified: 2013-07-04 02:47 UTC (History)
9 users (show)

Fixed In Version: si11
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-12-04 20:02:33 UTC
oVirt Team: ---
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

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/


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