zun/devstack/plugin.sh
Hongbin Lu 6dc2866167 Mova NovaDocker driver to contrib
We decided to deprecated NovaDocker driver in the team meeting [1].
Therefore, we moved the driver to the contrib folder. NovaDocker
was an experimental driver that attempts to leverage Nova to provide
networking to containers. However, as kuryr integration implemented,
this driver is not needed anymore.

[1] http://eavesdrop.openstack.org/meetings/zun/2017/
    zun.2017-07-11-03.00.log.html

Change-Id: I770fe13a004dc56ad20fe8eca545f05c4504e48e
2017-09-14 12:09:47 -04:00

50 lines
1.1 KiB
Bash
Executable File

# zun - Devstack extras script to install zun
# Save trace setting
XTRACE=$(set +o | grep xtrace)
set -o xtrace
echo_summary "zun's plugin.sh was called..."
source $DEST/zun/devstack/lib/zun
(set -o posix; set)
if is_service_enabled zun-api zun-compute; then
if [[ "$1" == "stack" && "$2" == "install" ]]; then
echo_summary "Installing zun"
install_zun
LIBS_FROM_GIT="${LIBS_FROM_GIT},python-zunclient"
install_zunclient
cleanup_zun
elif [[ "$1" == "stack" && "$2" == "post-config" ]]; then
echo_summary "Configuring zun"
configure_zun
if is_service_enabled key; then
create_zun_accounts
fi
elif [[ "$1" == "stack" && "$2" == "extra" ]]; then
# Initialize zun
init_zun
# Start the zun API and zun compute
echo_summary "Starting zun"
start_zun
upload_sandbox_image
fi
if [[ "$1" == "unstack" ]]; then
stop_zun
fi
if [[ "$1" == "clean" ]]; then
cleanup_zun
fi
fi
# Restore xtrace
$XTRACE