Browse code

Changed so that nova databases are only created once in a multi-host setup.

Change-Id: Idb17bcb8b6d558f03c188d14509bb5e732079585
Fixes: bug #1091730

Bob Melander authored on 2012/12/19 22:49:34
Showing 1 changed files
... ...
@@ -421,7 +421,7 @@ function init_nova() {
421 421
     # All nova components talk to a central database.  We will need to do this step
422 422
     # only once for an entire cluster.
423 423
 
424
-    if is_service_enabled $DATABASE_BACKENDS && is_service_enabled nova; then
424
+    if is_service_enabled $DATABASE_BACKENDS && is_service_enabled n-api; then
425 425
         # (Re)create nova database
426 426
         # Explicitly use latin1: to avoid lp#829209, nova expects the database to
427 427
         # use latin1 by default, and then upgrades the database to utf8 (see the