c8d1a9f901
Something are introduced in this patch: * As devstack-gate/devstack-vm-gate-wrap.sh is not really zuul v3 native, we move all configs in to `devstack/lib/heat` and .zuul.yaml. * Remove extra configs process in devstack. Like setup tempest(which is well covered by tempest itself.) or overlapping heat test configs setup. Use tempest config for all heat_integration tests. Also remove heat_integrationtests/common/configs since they're no longer required. * copy post.yaml for grenade jobs. As we migrate to zuul v3 for functional tests but not grenade (not yet), the post.yaml should exists under grenade dir. since it's only required by grenade jobs. * Use post.yaml in functional tests for cleanup test environments. Story: #2007056 Task: #37908 Depends-On: https://review.opendev.org/701105 Change-Id: I4f531161a7222e2c2a21f8d483f9c2a1d91dc38d
52 lines
1.3 KiB
Bash
52 lines
1.3 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
|
|
echo_summary "Configuring Tempest for Heat"
|
|
configure_tempest_for_heat
|
|
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
|
|
fi
|
|
|
|
if [[ "$1" == "unstack" ]]; then
|
|
stop_heat
|
|
fi
|
|
|
|
if [[ "$1" == "clean" ]]; then
|
|
cleanup_heat
|
|
fi
|
|
fi
|
|
|
|
# Restore xtrace
|
|
$XTRACE
|