bifrost: scripts: Disable selinux on Centos7 85/39385/1
authorMarkos Chandras <mchandras@suse.de>
Wed, 16 Aug 2017 05:19:34 +0000 (06:19 +0100)
committerMarkos Chandras <mchandras@suse.de>
Wed, 16 Aug 2017 05:23:51 +0000 (06:23 +0100)
We are seeing issues with selinux enabled from time to time. Having
selinux enabled has proven to be rather unstable and Centos7 not being
a gate on upstream bifrost does not help in fully testing this scenario.
As such, the best we can do right now is to disable selinux until Centos7
becomes a gate upstream.

Change-Id: I93a3414cfebc3c3ef4ac063c8e623f36f615455f
Signed-off-by: Markos Chandras <mchandras@suse.de>
bifrost/scripts/bifrost-provision.sh

index 2b90215..ad02807 100755 (executable)
@@ -94,6 +94,16 @@ for task in syntax-check list-tasks; do
            -e testing_user=${TESTING_USER}
 done
 
+# NOTE(hwoarang): Disable selinux as we are hitting issues with it from time to
+# time. Remove this when Centos7 is a proper gate on bifrost so we know that
+# selinux works as expected.
+if [[ -e /etc/centos-release ]]; then
+    echo "*************************************"
+    echo "WARNING: Disabling selinux on CentOS7"
+    echo "*************************************"
+    sudo setenforce 0
+fi
+
 # Create the VMS
 ${ANSIBLE} ${ANSIBLE_VERBOSITY} \
        -i inventory/localhost \