Skip to content

Commit c9e0188

Browse files
committed
Only do a nova-manage db_sync when we have nova.
- Fixes bug 956226. Change-Id: I823e8f43425c2d629219bb426fb6aa5d1ab9ff34
1 parent 7641463 commit c9e0188

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stack.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1359,7 +1359,7 @@ fi
13591359
# All nova components talk to a central database. We will need to do this step
13601360
# only once for an entire cluster.
13611361

1362-
if is_service_enabled mysql; then
1362+
if is_service_enabled mysql && is_service_enabled nova; then
13631363
# (re)create nova database
13641364
mysql -u$MYSQL_USER -p$MYSQL_PASSWORD -e 'DROP DATABASE IF EXISTS nova;'
13651365
mysql -u$MYSQL_USER -p$MYSQL_PASSWORD -e 'CREATE DATABASE nova;'

0 commit comments

Comments
 (0)