Description of problem: With selinux in the required targeted enforcing mode the KVM fv_* tests will fail to run, in the permissive mode errors about invalid access from qemu to the guest images will be reported. Version-Release number of selected component (if applicable): rhel-5.4 GA (hwcert -xen KS installed; followed by rhnregister then yum update kvm-tools) v7-1.1-10 How reproducible: Every time. Steps to Reproduce: 1.Run the fv_* tests from BM kernel
Created attachment 398131 [details] patch to address image installation location for KVM Also adds the restorecon which seemed to be needed and changes an os.system to command. Niether of these have been tested yet. Changing the environment and performing the restorecon have been proven to work.
Created attachment 398528 [details] fvtest.py patch - adds restorecon, leaves wget via os.system Compared to the prior patch, this patch leaves the call to "wget" in os.system. The reason is that v7's Command class doesn't display wget's progress through to the test output, so that feedback would be lost if the test is being monitored. Also, the logic of the test is to try multiple locations, and the "if" condition on line 186 is sufficient. The restorecon call is added per the above patch, with a syntax correction.
Committed patch to R14
This bug is verified PASS with v7-1.1-22.el5 on RHEL5 i386 xen/ x86_64 kvm.
An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on therefore solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHBA-2010-0365.html