Bug 729348

Summary: [vdsm] vdsm log directory is created with root owner on vdsm startup
Product: [Retired] oVirt Reporter: Jakub Libosvar <jlibosva>
Component: vdsmAssignee: Dan Kenigsberg <danken>
Severity: low Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: abaron, bazulay, iheim, ryanh, ykaul
Target Milestone: ---Keywords: EasyFix
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard: infra
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-10-30 13:55:46 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Jakub Libosvar 2011-08-09 16:10:12 UTC
Description of problem:
During my clean-up I deleted /var/log/vdsm directory. I didn't installed or updated vdsm. After I restarted vdsm, it could not start cause /var/log/vdsm has root owner insted of qemu:kvm

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

How reproducible:

Steps to Reproduce:
On host:
1. service vdsmd stop
2. rm -rf /var/log/vdsm
3. service vdsmd start
Actual results:
/var/log/vdsm has owner root:root

Expected results:
owner is 36:36 (qemu:kvm)

Additional info:
Note that start of service says that vdsm started OK but actually it immediately exits due to logging issues.

Comment 2 Dan Kenigsberg 2011-08-10 07:24:36 UTC
It is interesting to see how vdsm behaves if you

rm -rf /

instead of your original step 2. </evil grin>

(yeah, it would be nice to chown /var/log/vdsm when we recreate /var/log/vdsm/backup/)

Comment 3 Ryan Harper 2012-09-12 15:42:15 UTC
Potential fix posted: