Skip to content

Commit

Permalink
bug 920364: clean-up ovs_quantum DB between runs.
Browse files Browse the repository at this point in the history
Change-Id: Ibf2417c2ceade2ae04d1f08da0f61fbb1bd7dc5a
  • Loading branch information
Dan Wendlandt committed Jan 23, 2012
1 parent 94c67aa commit de37dbd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions stack.sh
Expand Up @@ -1365,6 +1365,7 @@ if [[ "$ENABLED_SERVICES" =~ "q-svc" ]]; then
apt_get install openvswitch-switch openvswitch-datapath-dkms
# Create database for the plugin/agent
if [[ "$ENABLED_SERVICES" =~ "mysql" ]]; then
mysql -u$MYSQL_USER -p$MYSQL_PASSWORD -e 'DROP DATABASE IF EXISTS ovs_quantum;'
mysql -u$MYSQL_USER -p$MYSQL_PASSWORD -e 'CREATE DATABASE IF NOT EXISTS ovs_quantum;'
else
echo "mysql must be enabled in order to use the $Q_PLUGIN Quantum plugin."
Expand Down

0 comments on commit de37dbd

Please sign in to comment.