Merge "Nova-api should not set up the database"
This commit is contained in:
commit
cd13790136
@ -22,15 +22,6 @@ if ! [ "$NOVA_DB_PASSWORD" ]; then
|
||||
export NOVA_DB_PASSWORD
|
||||
fi
|
||||
|
||||
sh /opt/nova/config-nova.sh api
|
||||
|
||||
mysql -h ${MARIADBMASTER_PORT_3306_TCP_ADDR} -u root \
|
||||
-p${DB_ROOT_PASSWORD} mysql <<EOF
|
||||
CREATE DATABASE IF NOT EXISTS ${NOVA_DB_NAME};
|
||||
GRANT ALL PRIVILEGES ON nova* TO
|
||||
'${NOVA_DB_USER}'@'%' IDENTIFIED BY '${NOVA_DB_PASSWORD}'
|
||||
EOF
|
||||
|
||||
export SERVICE_TOKEN="${KEYSTONE_ADMIN_TOKEN}"
|
||||
export SERVICE_ENDPOINT="${KEYSTONE_AUTH_PROTOCOL}://${KEYSTONEMASTER_35357_PORT_35357_TCP_ADDR}:35357/v2.0"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user