Browse code

Merge "Only do a nova-manage db_sync when we have nova."

Jenkins authored on 2012/03/16 07:45:16
Showing 1 changed files
... ...
@@ -1366,7 +1366,7 @@ fi
1366 1366
 # All nova components talk to a central database.  We will need to do this step
1367 1367
 # only once for an entire cluster.
1368 1368
 
1369
-if is_service_enabled mysql; then
1369
+if is_service_enabled mysql && is_service_enabled nova; then
1370 1370
     # (re)create nova database
1371 1371
     mysql -u$MYSQL_USER -p$MYSQL_PASSWORD -e 'DROP DATABASE IF EXISTS nova;'
1372 1372
     mysql -u$MYSQL_USER -p$MYSQL_PASSWORD -e 'CREATE DATABASE nova;'