Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 672488

Summary: [vdsm] [vdsm-hook-faqemu] unable to start libvirt service when vdsm-hook is installed with selinux=enforcing
Product: Red Hat Enterprise Linux 6 Reporter: Haim <hateya>
Component: vdsmAssignee: Federico Simoncelli <fsimonce>
Status: CLOSED CURRENTRELEASE QA Contact: yeylon <yeylon>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.1CC: abaron, bazulay, danken, dnaori, iheim, mgoldboi, srevivo, yeylon
Target Milestone: rcKeywords: Reopened
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-02-16 10:05:30 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Haim 2011-01-25 10:15:44 UTC
Description of problem:

libvirt service fail to start in case vdsm-hook-faqemu is installed, libvirt error says there is a problem with 'usr/bin/qemu' which is not an executable (or permission error). 
when removing (rpm -e) package, everything goes back to normal. 

10:36:01.632: 4293: debug : virCommandRun:1049 : Result stdout: '' stderr: 'Traceback (most recent call last):
  File "/usr/bin/qemu", line 13, in <module>
    os.execv(qemu_bin, qemu_argv)
OSError: [Errno 13] Permission denied
'
10:36:01.632: 4293: error : virStateInitialize:1022 : Initialization of QEMU state driver failed

[root@rhev-i32c-03 ~]# ls -l /usr/bin/qemu
ls: cannot access /usr/bin/qemu: No such file or directory

repro steps: 

1) make sure package is installed
2) stop libvirt 
3) start vdsm

Comment 1 Federico Simoncelli 2011-01-27 15:35:20 UTC
Could you provide the output for this command?
(with vdsm-hook-faqemu installed)

  rpm -V vdsm-hook-faqemu qemu-kvm

Thanks.

Comment 2 Ayal Baron 2011-02-01 13:04:37 UTC
Haim please provide above info.

Comment 3 Ayal Baron 2011-02-10 09:12:57 UTC
Cannot reproduce, and no comment for 2 weeks, closing.

Comment 4 Haim 2011-02-15 14:27:42 UTC
reproduced (again - easy to repro): 

output of the command is empty. 

its related to fact i'm working with selinux on:

[root@rhev-i32c-01 /]# getenforce
Enforcing

when moving selinux to permissive, it works, and libvirt starts. 



libvirt log: 

16:12:28.461: 11136: error : main:3305 : Driver state initialization failed

16:12:28.317: 11136: info : qemudSecurityInit:1420 : Initialized security driver selinux
16:12:28.326: 11136: debug : virCommandRunAsync:1148 : About to run LC_ALL=C PATH=/sbin:/usr/sbin:/bin:/usr/bin /usr/bin/qemu -M ?
16:12:28.326: 11136: debug : virExecWithHook:713 : LC_ALL=C PATH=/sbin:/usr/sbin:/bin:/usr/bin /usr/bin/qemu -M ?
16:12:28.327: 11136: debug : virCommandRunAsync:1164 : Command result 0, with PID 11245
16:12:28.383: 11136: debug : virCommandRun:1049 : Result stdout: '' stderr: 'Traceback (most recent call last):
  File "/usr/bin/qemu", line 13, in <module>
    os.execv(qemu_bin, qemu_argv)
OSError: [Errno 13] Permission denied
'
16:12:28.383: 11136: error : virStateInitialize:1022 : Initialization of QEMU state driver failed

Comment 5 Federico Simoncelli 2011-02-16 10:05:30 UTC
The problem is not reproducible with the latest selinux policy (3.7.19-70).