Recreate db only if db service is enabled
When setting up additional devstack instances with heat, don't recreate the database and do db_sync, as it would point to some existing database. Change-Id: I65fb33b0ad69bc4e5ff390e2b110779178b957ce
This commit is contained in:
parent
c38f68e745
commit
3f683abe60
@ -242,11 +242,12 @@ function configure_heat {
|
|||||||
|
|
||||||
# init_heat() - Initialize database
|
# init_heat() - Initialize database
|
||||||
function init_heat {
|
function init_heat {
|
||||||
|
# recreate db only if one of the db services is enabled
|
||||||
# (re)create heat database
|
if is_service_enabled $DATABASE_BACKENDS; then
|
||||||
recreate_database heat
|
# (re)create heat database
|
||||||
|
recreate_database heat
|
||||||
$HEAT_BIN_DIR/heat-manage db_sync
|
$HEAT_BIN_DIR/heat-manage db_sync
|
||||||
|
fi
|
||||||
create_heat_cache_dir
|
create_heat_cache_dir
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user