Merge "If heat is enabled, replace nova flavors."
This commit is contained in:
commit
9d10103888
1
lib/heat
1
lib/heat
@ -189,6 +189,7 @@ function init_heat() {
|
||||
mysql -u$MYSQL_USER -p$MYSQL_PASSWORD -e 'CREATE DATABASE heat CHARACTER SET utf8;'
|
||||
|
||||
$HEAT_DIR/bin/heat-db-setup $os_PACKAGE -r $MYSQL_PASSWORD
|
||||
$HEAT_DIR/tools/nova_create_flavors.sh
|
||||
}
|
||||
|
||||
# install_heat() - Collect source and prepare
|
||||
|
20
stack.sh
20
stack.sh
@ -1897,15 +1897,6 @@ else
|
||||
fi
|
||||
|
||||
|
||||
# Heat
|
||||
# ----
|
||||
|
||||
if is_service_enabled heat; then
|
||||
echo_summary "Configuring Heat"
|
||||
init_heat
|
||||
fi
|
||||
|
||||
|
||||
# Launch Services
|
||||
# ===============
|
||||
|
||||
@ -2025,8 +2016,12 @@ screen_it swift "cd $SWIFT_DIR && $SWIFT_DIR/bin/swift-proxy-server ${SWIFT_CONF
|
||||
is_service_enabled swift3 || \
|
||||
screen_it n-obj "cd $NOVA_DIR && $NOVA_BIN_DIR/nova-objectstore"
|
||||
|
||||
# launch heat engine, api and metadata
|
||||
|
||||
# Configure and launch heat engine, api and metadata
|
||||
if is_service_enabled heat; then
|
||||
# Initialize heat, including replacing nova flavors
|
||||
echo_summary "Configuring Heat"
|
||||
init_heat
|
||||
echo_summary "Starting Heat"
|
||||
start_heat
|
||||
fi
|
||||
@ -2098,6 +2093,11 @@ if is_service_enabled horizon; then
|
||||
echo "Horizon is now available at http://$SERVICE_HOST/"
|
||||
fi
|
||||
|
||||
# Warn that the default flavors have been changed by Heat
|
||||
if is_service_enabled heat; then
|
||||
echo "Heat has replaced the default flavors. View by running: nova flavor-list"
|
||||
fi
|
||||
|
||||
# If Keystone is present you can point ``nova`` cli to this server
|
||||
if is_service_enabled key; then
|
||||
echo "Keystone is serving at $KEYSTONE_AUTH_PROTOCOL://$SERVICE_HOST:$KEYSTONE_API_PORT/v2.0/"
|
||||
|
Loading…
Reference in New Issue
Block a user