X-Git-Url: https://review.fuel-infra.org/gitweb?a=blobdiff_plain;f=tests%2Fruntests.sh;h=372e4add2e67067bdafe23189b2035acc5b33a15;hb=f434d0b4aa31eaa1e6bad0a670c1cb0d08acc64c;hp=a15a6e40ca3ac4401013bfdfcfef2dc419c3e27f;hpb=33f494780fed13daabda23be6ceef83210e1d403;p=openstack-build%2Fneutron-build.git diff --git a/tests/runtests.sh b/tests/runtests.sh index a15a6e40c..372e4add2 100755 --- a/tests/runtests.sh +++ b/tests/runtests.sh @@ -13,7 +13,13 @@ AUTH="--os-auth-url http://127.0.0.1:35357 --os-token $TOKEN --os-endpoint http: NEUTRON_AUTH="--os-username neutron --os-password neutron --os-tenant-name neutron --os-auth-url http://127.0.0.1:35357/v2.0" CORE_PLUGIN="neutron.plugins.ml2.plugin.Ml2Plugin" -if [[ $PLATFORM =~ Ubuntu ]]; then UBUNTU=true; fi +if [[ $PLATFORM =~ Ubuntu ]] +then + UBUNTU=true +else + setenforce 0 +fi + if [ -z $PACKAGE ]; then echo "Package for testing is not specified"; exit 1; fi echo "127.0.10.1 $(hostname)" >> /etc/hosts @@ -23,7 +29,7 @@ install_packages() { then echo "mysql-server mysql-server/root_password select $MYSQL_PASS" | debconf-set-selections echo "mysql-server mysql-server/root_password_again select $MYSQL_PASS" | debconf-set-selections - apt-get install -y --force-yes rabbitmq-server mysql-server mysql-client-core-5.5 python-mysqldb keystone + DEBIAN_FRONTEND=noninteractive apt-get install -y --force-yes rabbitmq-server mysql-server mysql-client-core-5.5 python-mysqldb keystone else #yum install -y openstack-keystone rabbitmq-server mysql-server MySQL-client python-oslo-utils yum install -y openstack-keystone rabbitmq-server python-oslo-utils @@ -40,7 +46,7 @@ install_packages() { install_neutron_server () { if $UBUNTU then - apt-get install -y --force-yes neutron-server + DEBIAN_FRONTEND=noninteractive apt-get install -y --force-yes neutron-server else yum install -y openstack-neutron openstack-neutron-ml2 fi @@ -204,16 +210,17 @@ check_neutron_openvswitch () { # Workaround for bug #1371184 if ! $UBUNTU then - chown root:neutron /etc/neutron/plugins/openvswitch/ovs_neutron_plugin.ini + chown root:neutron /etc/neutron/plugins/ml2/openvswitch_agent.ini fi if ! $SERVICE_STARTED ; then if $UBUNTU; then restart_service openvswitch-switch + restart_service neutron-plugin-openvswitch-agent else restart_service openvswitch + restart_service neutron-openvswitch-agent fi - restart_service neutron-openvswitch-agent SERVICE_STARTED=true fi