Merge "Fix devstack plugin"
This commit is contained in:
commit
805d98e1cf
@ -254,8 +254,13 @@ function configure_heat {
|
||||
[ $err_count -eq 0 ] || die $LINENO "$err_count of the requested Heat plugins could not be installed."
|
||||
}
|
||||
|
||||
# init_heat() - Initialize database
|
||||
# dummy function called by stack.sh, remove it once moved to plugin
|
||||
function init_heat {
|
||||
:
|
||||
}
|
||||
|
||||
# init_heat() - Initialize database
|
||||
function init_heat_with_plugin {
|
||||
|
||||
# (re)create heat database
|
||||
recreate_database heat
|
||||
@ -298,8 +303,13 @@ function install_heat_other {
|
||||
git_clone $DIB_UTILS_REPO $DIB_UTILS_DIR $DIB_UTILS_BRANCH
|
||||
}
|
||||
|
||||
# start_heat() - Start running processes, including screen
|
||||
# dummy function called by stack.sh, remove it once moved to plugin
|
||||
function start_heat {
|
||||
:
|
||||
}
|
||||
|
||||
# start_heat() - Start running processes, including screen
|
||||
function start_heat_with_plugin {
|
||||
run_process h-eng "$HEAT_BIN_DIR/heat-engine --config-file=$HEAT_CONF"
|
||||
|
||||
# If the site is not enabled then we are in a grenade scenario
|
||||
@ -401,8 +411,13 @@ function _config_heat_apache_wsgi {
|
||||
}
|
||||
|
||||
|
||||
# create_heat_accounts() - Set up common required heat accounts
|
||||
# dummy function called by stack.sh, remove it once moved to plugin
|
||||
function create_heat_accounts {
|
||||
:
|
||||
}
|
||||
|
||||
# create_heat_accounts() - Set up common required heat accounts
|
||||
function create_heat_accounts_with_plugin {
|
||||
if [[ "$HEAT_STANDALONE" != "True" ]]; then
|
||||
|
||||
create_service_user "heat" "admin"
|
||||
|
@ -8,7 +8,7 @@ echo_summary "heat's plugin.sh was called..."
|
||||
source $DEST/heat/devstack/lib/heat
|
||||
(set -o posix; set)
|
||||
|
||||
if is_service_enabled h-eng h-api h-api-cfn h-api-cw; then
|
||||
if is_heat_enabled; then
|
||||
if [[ "$1" == "stack" && "$2" == "install" ]]; then
|
||||
echo_summary "Installing heat"
|
||||
install_heat
|
||||
@ -22,16 +22,16 @@ if is_service_enabled h-eng h-api h-api-cfn h-api-cw; then
|
||||
configure_heat
|
||||
|
||||
if is_service_enabled key; then
|
||||
create_heat_accounts
|
||||
create_heat_accounts_with_plugin
|
||||
fi
|
||||
|
||||
elif [[ "$1" == "stack" && "$2" == "extra" ]]; then
|
||||
# Initialize heat
|
||||
init_heat
|
||||
init_heat_with_plugin
|
||||
|
||||
# Start the heat API and heat taskmgr components
|
||||
echo_summary "Starting heat"
|
||||
start_heat
|
||||
start_heat_with_plugin
|
||||
if [ "$HEAT_BUILD_PIP_MIRROR" = "True" ]; then
|
||||
echo_summary "Building Heat pip mirror"
|
||||
build_heat_pip_mirror
|
||||
|
Loading…
Reference in New Issue
Block a user