Hide Forgot
Description of problem: rgmanager can't run KVM virtual machine if: 1. selinux is on 2. service is definied as: <rm> <vm name="app1" path="/srv/shared/vm" /> </rm> 3. /srv/shared is gfs2 fs Because: 1. rgmanager uses /usr/share/cluster/vm.sh to start kvm 2. path is used then vm.sh uses: virsh create /srv/shared/vm/app1.xml in unconfined_u:system_r:rgmanager_t:s0 3. But virsh generate: error: Failed to open file '/srv/shared/vm/app1.xml': Permission denied 4. And vm is not started. Of course "virsh create /srv/shared/vm/app1.xml" is working from shell. Version-Release number of selected component (if applicable): rgmanager-3.0.12.1-5 resource-agents-3.9.2-7 Additional info: /var/log/audit is empty
Is auditd running? $ service auditd status Does it work in permissive mode? $ setenforce 0 If yes, then please execute $ semodule -DB re-test it and run $ ausearch -m avc -ts recent
audit.log is empty. It was very strange for me. If SeLINUX is off, vm is created without any problem! I had modified vm.sh and created extra log file for "virsh create". Then I captured "error: Failed to open file '/srv/shared/vm/app1.xml': Permission denied" This problem was at production cluster and I can't easly turn on selinux, now.
Of course if you do not use path argument, then vm.sh will use "virsh start". "virsh start" is working correctly. Only "virsh create" generates error.
What is your version of policy?
Cluster folks, could we test it?
selinux-policy-targeted.noarch-3.7.19-126.el6_2.10 (and full upgrade)
IMHO I am providing the requested information for you... Please, escalate this bug.
This request was not resolved in time for the current release. Red Hat invites you to ask your support representative to propose this request, if still desired, for consideration in the next release of Red Hat Enterprise Linux.
Is this still a problem? I am doubtful there is anything to be done to fix this in the resource-agents package.
I can´t reproduce this problem in RHEL6.7. Please feel free to reopen the bug in case it is still an issue.