bug 920364: clean-up ovs_quantum DB between runs.

Change-Id: Ibf2417c2ceade2ae04d1f08da0f61fbb1bd7dc5a
This commit is contained in:
Dan Wendlandt 2012-01-23 01:56:22 -08:00
parent 94c67aafa7
commit de37dbd14f

View File

@ -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."