Permalink
Browse files

Hopefully fixed for real this time..

  • Loading branch information...
kiall committed Nov 23, 2011
1 parent 919fb9c commit 71fe572637e2533dd07d5005c29029a747fab155
Showing with 5 additions and 5 deletions.
  1. +1 −1 all-in-one.sh
  2. +1 −1 dashboard.sh
  3. +1 −1 glance.sh
  4. +1 −1 keystone.sh
  5. +1 −1 nova-controller.sh
View
@@ -19,7 +19,7 @@ service ntp restart
sed -i 's/127.0.0.1/0.0.0.0/g' /etc/mysql/my.cnf
service mysql restart
-echo "GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY '${MYSQL_ROOT_PASS}' WITH GRANT OPTION; FLUSH PRIVILEGES;" | mysql -u $MYSQL_USER -p$MYSQL_ROOT_PASS
+echo "GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY '${MYSQL_ROOT_PASS}' WITH GRANT OPTION; FLUSH PRIVILEGES;" | mysql -u root -p$MYSQL_ROOT_PASS
sleep 2
View
@@ -11,7 +11,7 @@ apt-get install -y openstack-dashboard
mysql -h $MYSQL_HOST -u root -p$MYSQL_ROOT_PASS -e 'DROP DATABASE IF EXISTS horizon;'
mysql -h $MYSQL_HOST -u root -p$MYSQL_ROOT_PASS -e 'CREATE DATABASE horizon;'
-echo "GRANT ALL ON horizon.* TO 'horizon'@'%' IDENTIFIED BY '$MYSQL_HORIZON_PASS';" | mysql -h $MYSQL_HOST -u root -p$MYSQL_ROOT_PASS
+echo "GRANT ALL ON horizon.* TO 'horizon'@'%' IDENTIFIED BY '$MYSQL_HORIZON_PASS'; FLUSH PRIVILEGES;" | mysql -h $MYSQL_HOST -u root -p$MYSQL_ROOT_PASS
sed -e "s,999888777666,$SERVICE_TOKEN,g" local_settings.py.tmpl > local_settings.py
sed -e "s,%MYSQL_HOST%,$MYSQL_HOST,g" -i local_settings.py
View
@@ -9,7 +9,7 @@ apt-get install -y glance python-mysqldb mysql-client curl python-httplib2
mysql -h $MYSQL_HOST -u root -p$MYSQL_ROOT_PASS -e 'DROP DATABASE IF EXISTS glance;'
mysql -h $MYSQL_HOST -u root -p$MYSQL_ROOT_PASS -e 'CREATE DATABASE glance;'
-echo "GRANT ALL ON glance.* TO 'glance'@'%' IDENTIFIED BY '$MYSQL_GLANCE_PASS';" | mysql -h $MYSQL_HOST -u root -p$MYSQL_ROOT_PASS
+echo "GRANT ALL ON glance.* TO 'glance'@'%' IDENTIFIED BY '$MYSQL_GLANCE_PASS'; FLUSH PRIVILEGES;" | mysql -h $MYSQL_HOST -u root -p$MYSQL_ROOT_PASS
sed -e "s,%SERVICE_TOKEN%,$SERVICE_TOKEN,g" glance-registry.conf.tmpl > glance-registry.conf
sed -e "s,%MYSQL_HOST%,$MYSQL_HOST,g" -i glance-registry.conf
View
@@ -9,7 +9,7 @@ apt-get install -y keystone python-mysqldb mysql-client curl
mysql -h $MYSQL_HOST -u root -p$MYSQL_ROOT_PASS -e 'DROP DATABASE IF EXISTS keystone;'
mysql -h $MYSQL_HOST -u root -p$MYSQL_ROOT_PASS -e 'CREATE DATABASE keystone;'
-echo "GRANT ALL ON keystone.* TO 'keystone'@'%' IDENTIFIED BY '$MYSQL_KEYSTONE_PASS';" | mysql -h $MYSQL_HOST -u root -p$MYSQL_ROOT_PASS
+echo "GRANT ALL ON keystone.* TO 'keystone'@'%' IDENTIFIED BY '$MYSQL_KEYSTONE_PASS'; FLUSH PRIVILEGES;" #| mysql -h $MYSQL_HOST -u root -p$MYSQL_ROOT_PASS
sed -e "s,%MYSQL_HOST%,$MYSQL_HOST,g" keystone.conf.tmpl > keystone.conf
sed -e "s,%MYSQL_KEYSTONE_PASS%,$MYSQL_KEYSTONE_PASS,g" -i keystone.conf
View
@@ -11,7 +11,7 @@ sed -e "s,999888777666,$SERVICE_TOKEN,g" api-paste-keystone.ini.tmpl > api-paste
mysql -h $MYSQL_HOST -u root -p$MYSQL_ROOT_PASS -e 'DROP DATABASE IF EXISTS nova;'
mysql -h $MYSQL_HOST -u root -p$MYSQL_ROOT_PASS -e 'CREATE DATABASE nova;'
-echo "GRANT ALL ON nova.* TO 'nova'@'%' IDENTIFIED BY '$MYSQL_NOVA_PASS';" | mysql -h $MYSQL_HOST -u root -p$MYSQL_ROOT_PASS
+echo "GRANT ALL ON nova.* TO 'nova'@'%' IDENTIFIED BY '$MYSQL_NOVA_PASS'; FLUSH PRIVILEGES;" | mysql -h $MYSQL_HOST -u root -p$MYSQL_ROOT_PASS
# Nova Config
sed -e "s,%HOST_IP%,$HOST_IP,g" nova.conf.tmpl > nova.conf

0 comments on commit 71fe572

Please sign in to comment.