heat/devstack/plugin.sh
ghanshyam 98723966ce Set Tempest's service_availability setting for Heat
Tempest's service_availability config option includes all the service
availability which is further used by tests to take decision of skip
or run the test.

For example, [service_availability].heat is true then, heat test will run
or if [service_availability].heat is false then, all the heat related tests either
in heat tempest plugin or any other plugins will be skipped.

Currently this setting for heat service[1] is in devstack lib/tempest
which is being removed by - https://review.openstack.org/#/c/619973/

For better maintenance, we are moving all tempest non-owned service setting
to service devstack plugin side.

This commit add the setting of heat service on ceilometer devstack plugin.

Related-Bug: #1743688
[1] d6b253502a/heat_tempest_plugin/config.py (L15)

Depends-On: https://review.openstack.org/#/c/619990/
Change-Id: I5013ce8be1a4fb5219ea89a63add812558191025
Needed-By: https://review.openstack.org/#/c/619973/
2018-11-26 10:03:01 +00:00

55 lines
1.4 KiB
Bash

# heat.sh - Devstack extras script to install heat
# Save trace setting
XTRACE=$(set +o | grep xtrace)
set -o xtrace
echo_summary "heat's plugin.sh was called..."
source $DEST/heat/devstack/lib/heat
(set -o posix; set)
if is_heat_enabled; then
if [[ "$1" == "stack" && "$2" == "install" ]]; then
echo_summary "Installing heat"
# Use stack_install_service here to account for virtualenv
stack_install_service heat
echo_summary "Installing heatclient"
install_heatclient
elif [[ "$1" == "stack" && "$2" == "test-config" ]]; then
if is_service_enabled tempest; then
setup_develop $TEMPEST_DIR
fi
elif [[ "$1" == "stack" && "$2" == "post-config" ]]; then
echo_summary "Cleaning up heat"
cleanup_heat
echo_summary "Configuring heat"
configure_heat
create_heat_accounts
elif [[ "$1" == "stack" && "$2" == "extra" ]]; then
# Initialize heat
init_heat
# Start the heat API and heat taskmgr components
echo_summary "Starting heat"
start_heat
elif [[ "$1" == "stack" && "$2" == "test-config" ]]; then
echo_summary "Configuring Tempest for Heat"
configure_tempest_for_heat
fi
if [[ "$1" == "unstack" ]]; then
stop_heat
fi
if [[ "$1" == "clean" ]]; then
cleanup_heat
fi
fi
# Restore xtrace
$XTRACE