Make nova-controller start.sh bashate compliant

Change-Id: Icb18833fc4570db6874fa334811ebd3606149dfc
Partially-Implements: blueprint bashate-gate
This commit is contained in:
Steven Dake 2015-05-28 10:22:39 -07:00
parent 1531542c99
commit 23e1e524a4

View File

@ -12,8 +12,7 @@ cfg=/etc/nova/nova.conf
# configure logging
crudini --set $cfg DEFAULT log_file "${NOVA_CONDUCTOR_LOG_FILE}"
mysql -h ${MARIADB_SERVICE_HOST} -u root \
-p${DB_ROOT_PASSWORD} mysql <<EOF
mysql -h ${MARIADB_SERVICE_HOST} -u root -p${DB_ROOT_PASSWORD} mysql <<EOF
CREATE DATABASE IF NOT EXISTS ${NOVA_DB_NAME};
GRANT ALL PRIVILEGES ON ${NOVA_DB_NAME}.* TO
'${NOVA_DB_USER}'@'%' IDENTIFIED BY '${NOVA_DB_PASSWORD}'