X-Git-Url: https://review.fuel-infra.org/gitweb?a=blobdiff_plain;f=tests%2Fruntests.sh;h=91f3d12093f163df1520a9b4ee2a285092f72ae9;hb=e73d439989fd34b8a658be8dc9276aa857fed8d6;hp=ba8e0322ace82add9c19faabc394867b8d9c9870;hpb=c1409d493beb2fa93e5d05a40d6db523243f22de;p=openstack-build%2Fneutron-build.git diff --git a/tests/runtests.sh b/tests/runtests.sh index ba8e0322a..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