Merge "Skip db configuration on subnodes"

This commit is contained in:
Jenkins 2016-11-04 12:51:31 +00:00 committed by Gerrit Code Review
commit 8c6b8e2625

View File

@ -841,12 +841,14 @@ function create_ironic_accounts {
# init_ironic() - Initialize databases, etc. # init_ironic() - Initialize databases, etc.
function init_ironic { function init_ironic {
# (Re)create ironic database
recreate_database ironic
# Migrate ironic database if [[ "$HOST_TOPOLOGY_ROLE" != "subnode" ]]; then
$IRONIC_BIN_DIR/ironic-dbsync --config-file=$IRONIC_CONF_FILE # (Re)create ironic database
recreate_database ironic
# Migrate ironic database
$IRONIC_BIN_DIR/ironic-dbsync --config-file=$IRONIC_CONF_FILE
fi
create_ironic_cache_dir create_ironic_cache_dir
} }