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

Change-Id: Idb17bcb8b6d558f03c188d14509bb5e732079585
Fixes: bug #1091730
This commit is contained in:
Bob Melander
2012-12-19 14:49:34 +01:00
parent 82cefc2570
commit c439b5dfc2

View File

@@ -421,7 +421,7 @@ function init_nova() {
# 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 $DATABASE_BACKENDS && is_service_enabled nova; then
if is_service_enabled $DATABASE_BACKENDS && is_service_enabled n-api; then
# (Re)create nova database
# Explicitly use latin1: to avoid lp#829209, nova expects the database to
# use latin1 by default, and then upgrades the database to utf8 (see the