0f21044af9
This update is to revert a change for tosca-parser and heat-translator
installation [1]. It works fine for devstack for Tacker, but doesn't
for some CI tests in kolla. It fails for a "package cannot be found"
error.
The reason of [1] is introduced is because we need to make a change and
it can be used from Tacker quickly. We cannot wait pip packages updated.
However, the latest versions are released recently in which all updates
required from Tacker are included. So, it's OK to revert [1] for a
while.
If this reverting does not affect to kolla CI after merged, we should
cancel the change and make install from git repo again.
[1] commit 500d2eb7
"Change tosca-parser and heat-translator install"
Signed-off-by: Yasufumi Ogawa <yasufum.o@gmail.com>
Change-Id: Ie2d994b053e909ab10a99307793c795628482e2b
82 lines
2.6 KiB
Bash
82 lines
2.6 KiB
Bash
# plugin.sh - Devstack extras script to install tacker
|
|
|
|
# Save trace setting
|
|
XTRACE=$(set +o | grep xtrace)
|
|
set -o xtrace
|
|
|
|
echo_summary "tacker's plugin.sh was called with args $1 and $2 ..."
|
|
. $DEST/tacker/devstack/lib/tacker
|
|
(set -o posix; set)
|
|
|
|
# check for service enabled
|
|
if is_service_enabled tacker; then
|
|
if [[ "$1" == "stack" && "$2" == "install" ]]; then
|
|
# Perform installation of service source
|
|
echo_summary "Installing Tacker"
|
|
install_tacker
|
|
|
|
# NOTE(yasufum) We don't use pip packages of tosca-parser and
|
|
# heat-translator but cloned git repo for usnig the latest revision
|
|
# for development.
|
|
# If you install pip packages instead, comment out here, and activate
|
|
# entries in `requirements.txt` and `lower-constraints.txt`.
|
|
#install_package_local_repo tosca-parser
|
|
#install_package_local_repo heat-translator
|
|
#. $DEST/tacker/devstack/lib/download_upper_consts
|
|
|
|
elif [[ "$1" == "stack" && "$2" == "post-config" ]]; then
|
|
# Configure after the other layer 1 and 2 services have been configured
|
|
echo_summary "Configuring Tacker"
|
|
configure_tacker
|
|
create_tacker_accounts
|
|
|
|
elif [[ "$1" == "stack" && "$2" == "extra" ]]; then
|
|
# Initialize and start the tacker service
|
|
echo_summary "Initializing Tacker"
|
|
init_tacker
|
|
echo_summary "Starting Tacker API and conductor"
|
|
start_tacker
|
|
if is_service_enabled horizon; then
|
|
echo_summary "Installing tacker horizon"
|
|
tacker_horizon_install
|
|
fi
|
|
|
|
if [[ "${TACKER_MODE}" == "all" || "${IS_ZUUL_FT}" == "True" ]]; then
|
|
echo_summary "Setup initial tacker network"
|
|
tacker_create_initial_network
|
|
echo_summary "Check and download images for tacker initial"
|
|
tacker_check_and_download_images
|
|
echo_summary "Setup default VIM resources"
|
|
tacker_setup_default_vim_resources
|
|
|
|
if is_service_enabled ceilometer; then
|
|
echo_summary "Configure maintenance event types"
|
|
configure_maintenance_event_types
|
|
fi
|
|
fi
|
|
fi
|
|
|
|
if [[ "$1" == "unstack" ]]; then
|
|
# Shut down tacker services
|
|
if is_service_enabled horizon; then
|
|
echo_summary "Uninstall tacker horizon"
|
|
tacker_horizon_uninstall
|
|
fi
|
|
stop_tacker
|
|
fi
|
|
|
|
if [[ "$1" == "clean" ]]; then
|
|
# Remove state and transient data
|
|
# Remember clean.sh first calls unstack.sh
|
|
cleanup_tacker
|
|
fi
|
|
fi
|
|
|
|
# Restore xtrace
|
|
$XTRACE
|
|
|
|
# Tell emacs to use shell-script-mode
|
|
## Local variables:
|
|
## mode: shell-script
|
|
## End:
|