1
0
mirror of https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git synced 2024-11-22 05:53:09 +00:00

Disable SELinux in _support_server

tgtd is failing to start due to an SELinux denial; I'm filing a
bug now.
This commit is contained in:
Adam Williamson 2017-09-16 17:04:32 -07:00
parent e434eacb40
commit 14c1bae747

View File

@ -23,6 +23,8 @@ sub run {
assert_script_run "printf '<target iqn.2016-06.local.domain:support.target1>\n backing-store /dev/vdb\n incominguser test weakpassword\n</target>' > /etc/tgt/conf.d/openqa.conf"; assert_script_run "printf '<target iqn.2016-06.local.domain:support.target1>\n backing-store /dev/vdb\n incominguser test weakpassword\n</target>' > /etc/tgt/conf.d/openqa.conf";
# open firewall port # open firewall port
assert_script_run "firewall-cmd --add-service=iscsi-target"; assert_script_run "firewall-cmd --add-service=iscsi-target";
# tgtd currently fails to run on f26 with SELinux enforcing
assert_script_run "setenforce Permissive";
assert_script_run "systemctl restart tgtd.service"; assert_script_run "systemctl restart tgtd.service";
assert_script_run "systemctl is-active tgtd.service"; assert_script_run "systemctl is-active tgtd.service";