X-Git-Url: https://review.fuel-infra.org/gitweb?a=blobdiff_plain;f=tests%2Fruntests.sh;h=91f3d12093f163df1520a9b4ee2a285092f72ae9;hb=e73d439989fd34b8a658be8dc9276aa857fed8d6;hp=372e4add2e67067bdafe23189b2035acc5b33a15;hpb=b12db4774d595401dbb6ff8fce4c37e1c60d16f6;p=openstack-build%2Fneutron-build.git diff --git a/tests/runtests.sh b/tests/runtests.sh index 372e4add2..91f3d1209 100755 --- a/tests/runtests.sh +++ b/tests/runtests.sh @@ -86,10 +86,6 @@ setup_database() { setup_keystone() { #Setup Keystone - if ! $UBUNTU - then - cp /usr/share/keystone/keystone-dist-paste.ini /etc/keystone/keystone-paste.ini - fi cat > /etc/keystone/keystone.conf << EOF [DEFAULT] admin_token=$TOKEN @@ -99,6 +95,7 @@ connection=mysql://keystone:keystone@localhost/keystone provider=keystone.token.providers.uuid.Provider EOF keystone-manage db_sync + keystone-manage bootstrap --bootstrap-password $TOKEN chown -R keystone:keystone /var/log/keystone/ if $UBUNTU then @@ -110,7 +107,6 @@ EOF #Setup Neutron credentials keystone $AUTH user-create --name neutron --pass neutron keystone $AUTH tenant-create --name neutron - keystone $AUTH role-create --name=admin keystone $AUTH user-role-add --user neutron --role admin --tenant neutron NEUTRON_SERVICE=`keystone $AUTH service-create --name=neutron --type=network --description="Neutron Networking Service" | grep id | awk -F '|' '{print $3}' | tr -d ' '` keystone $AUTH endpoint-create --region RegionOne --service-id=$NEUTRON_SERVICE --publicurl=http://localhost:9696 --internalurl=http://localhost:9696 --adminurl=http://localhost:9696 @@ -216,7 +212,7 @@ check_neutron_openvswitch () { if ! $SERVICE_STARTED ; then if $UBUNTU; then restart_service openvswitch-switch - restart_service neutron-plugin-openvswitch-agent + restart_service neutron-openvswitch-agent else restart_service openvswitch restart_service neutron-openvswitch-agent @@ -225,7 +221,7 @@ check_neutron_openvswitch () { fi sleep 10 - STATUS=$(neutron $NEUTRON_AUTH agent-list | grep "Open vSwitch agent" | awk -F "|" '{print $5}' | tr -d " ") + STATUS=$(neutron $NEUTRON_AUTH agent-list | grep "Open vSwitch agent" | awk -F "|" '{print $6}' | tr -d " ") if [ "$STATUS" != ":-)" ]; then echo "OVS agent check failed"; FAILURE=true; fi } @@ -236,7 +232,7 @@ check_neutron_l3_agent () { fi #This sleep here and in other functions is intended to let the agent add information to the queue sleep 10 - STATUS=$(neutron $NEUTRON_AUTH agent-list | grep "L3 agent" | awk -F "|" '{print $5}' | tr -d " ") + STATUS=$(neutron $NEUTRON_AUTH agent-list | grep "L3 agent" | awk -F "|" '{print $6}' | tr -d " ") if [ "$STATUS" != ":-)" ]; then echo "L3 agent check failed"; FAILURE=true; fi } @@ -246,7 +242,7 @@ check_neutron_dhcp_agent () { SERVICE_STARTED=true fi sleep 10 - STATUS=$(neutron $NEUTRON_AUTH agent-list | grep "DHCP agent" | awk -F "|" '{print $5}' | tr -d " ") + STATUS=$(neutron $NEUTRON_AUTH agent-list | grep "DHCP agent" | awk -F "|" '{print $6}' | tr -d " ") if [ "$STATUS" != ":-)" ]; then echo "DHCP agent check failed"; FAILURE=true; fi } @@ -256,7 +252,7 @@ check_neutron_metadata_agent () { SERVICE_STARTED=true fi sleep 10 - STATUS=$(neutron $NEUTRON_AUTH agent-list | grep "Metadata agent" | awk -F "|" '{print $5}' | tr -d " ") + STATUS=$(neutron $NEUTRON_AUTH agent-list | grep "Metadata agent" | awk -F "|" '{print $6}' | tr -d " ") if [ "$STATUS" != ":-)" ]; then echo "Metadata agent check failed"; FAILURE=true; fi } @@ -266,7 +262,7 @@ check_neutron_metering_agent () { SERVICE_STARTED=true fi sleep 10 - STATUS=$(neutron $NEUTRON_AUTH agent-list | grep "Metering agent" | awk -F "|" '{print $5}' | tr -d " ") + STATUS=$(neutron $NEUTRON_AUTH agent-list | grep "Metering agent" | awk -F "|" '{print $6}' | tr -d " ") if [ "$STATUS" != ":-)" ]; then echo "Metering agent check failed"; FAILURE=true; fi } @@ -322,7 +318,7 @@ case $PACKAGE in try check_neutron_server check_error ;; - openstack-neutron-openvswitch|neutron-plugin-openvswitch-agent) + openstack-neutron-openvswitch|neutron-openvswitch-agent) install_packages install_neutron_server setup_database @@ -370,7 +366,7 @@ case $PACKAGE in try check_neutron_metadata_agent check_error ;; - openstack-neutron-metering-agent|neutron-plugin-metering-agent) + openstack-neutron-metering-agent|neutron-metering-agent) install_neutron_server install_packages setup_database