From: Markos Chandras Date: Wed, 16 Aug 2017 05:19:34 +0000 (+0100) Subject: bifrost: scripts: Disable selinux on Centos7 X-Git-Tag: 6.0.0~344^2 X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F85%2F39385%2F1;p=releng-xci.git bifrost: scripts: Disable selinux on Centos7 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 --- diff --git a/bifrost/scripts/bifrost-provision.sh b/bifrost/scripts/bifrost-provision.sh index 2b902152..ad028070 100755 --- a/bifrost/scripts/bifrost-provision.sh +++ b/bifrost/scripts/bifrost-provision.sh @@ -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 \