Merge "Only do a nova-manage db_sync when we have nova."
diff --git a/stack.sh b/stack.sh
index 886e839..218e83f 100755
--- a/stack.sh
+++ b/stack.sh
@@ -1366,7 +1366,7 @@
# All nova components talk to a central database. We will need to do this step
# only once for an entire cluster.
-if is_service_enabled mysql; then
+if is_service_enabled mysql && is_service_enabled nova; then
# (re)create nova database
mysql -u$MYSQL_USER -p$MYSQL_PASSWORD -e 'DROP DATABASE IF EXISTS nova;'
mysql -u$MYSQL_USER -p$MYSQL_PASSWORD -e 'CREATE DATABASE nova;'