Browse code

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

- Fixes bug 956226.

Change-Id: I823e8f43425c2d629219bb426fb6aa5d1ab9ff34

Chmouel Boudjnah authored on 2012/03/16 02:21:24
Showing 1 changed files
... ...
@@ -1359,7 +1359,7 @@ fi
1359 1359
 # All nova components talk to a central database.  We will need to do this step
1360 1360
 # only once for an entire cluster.
1361 1361
 
1362
-if is_service_enabled mysql; then
1362
+if is_service_enabled mysql && is_service_enabled nova; then
1363 1363
     # (re)create nova database
1364 1364
     mysql -u$MYSQL_USER -p$MYSQL_PASSWORD -e 'DROP DATABASE IF EXISTS nova;'
1365 1365
     mysql -u$MYSQL_USER -p$MYSQL_PASSWORD -e 'CREATE DATABASE nova;'