4bfed61fe3
Kubernetes Release 1.0 was announced at OSCON A new Fedora Atomic image has been built with version 1.0.4 and this series of patches will update the templates, scripts, documents to work with the new image. The api has also been changed from v1beta3 to v1 and the beta api is no longer available, so the interface between Magnum and Kubernetes master are updated as well in this series of patches. This particular patch will bring up a V1 cluster with the bay-create command. Because the switch to the V1 API requires all the code changes to be applied at once, this patch pulls in portion of 3 patches together. The changes include: 1. devstack plugin downloads the new image. 2. k8s conductor and other code calls the new V1 client and k8s methods. 3. Configuration for k8s services and docker updated with new parameters. 4. Minion registration and example code updated to V1. 5. Functional tests updated to V1. 6. Gate test setup points to the new image. Co-Authored-By: Hongbin Lu <hongbin.lu@huawei.com> Change-Id: I046931ad491e8b7ee45943852901eac5c3df913e Partially-Implements: blueprint kubernetes-v1
63 lines
1.7 KiB
Bash
Executable File
63 lines
1.7 KiB
Bash
Executable File
# magnum.sh - Devstack extras script to install magnum
|
|
|
|
# Save trace setting
|
|
XTRACE=$(set +o | grep xtrace)
|
|
set -o xtrace
|
|
|
|
echo_summary "magnum's plugin.sh was called..."
|
|
source $DEST/magnum/devstack/lib/magnum
|
|
(set -o posix; set)
|
|
|
|
if is_service_enabled m-api m-cond; then
|
|
if [[ "$1" == "stack" && "$2" == "pre-install" ]]; then
|
|
echo_summary "Before Installing magnum"
|
|
mkdir -p $SCREEN_LOGDIR
|
|
elif [[ "$1" == "stack" && "$2" == "install" ]]; then
|
|
echo_summary "Installing magnum"
|
|
install_magnum
|
|
|
|
# add image to glance
|
|
if [[ "$ENABLED_SERVICES" =~ 'm-api' ]]; then
|
|
MANGUM_GUEST_IMAGE_URL=${MANGUM_GUEST_IMAGE_URL:-"https://fedorapeople.org/groups/magnum/fedora-21-atomic-5.qcow2"}
|
|
IMAGE_URLS+=",${MANGUM_GUEST_IMAGE_URL}"
|
|
fi
|
|
|
|
LIBS_FROM_GIT="${LIBS_FROM_GIT},python-magnumclient"
|
|
|
|
install_magnumclient
|
|
cleanup_magnum
|
|
elif [[ "$1" == "stack" && "$2" == "post-config" ]]; then
|
|
echo_summary "Configuring magnum"
|
|
configure_magnum
|
|
|
|
# Hack a large timeout for now
|
|
iniset /etc/keystone/keystone.conf token expiration 7200
|
|
|
|
if is_service_enabled key; then
|
|
create_magnum_accounts
|
|
fi
|
|
|
|
elif [[ "$1" == "stack" && "$2" == "extra" ]]; then
|
|
# Initialize magnum
|
|
init_magnum
|
|
magnum_register_image
|
|
|
|
# Start the magnum API and magnum taskmgr components
|
|
echo_summary "Starting magnum"
|
|
start_magnum
|
|
|
|
configure_iptables
|
|
fi
|
|
|
|
if [[ "$1" == "unstack" ]]; then
|
|
stop_magnum
|
|
fi
|
|
|
|
if [[ "$1" == "clean" ]]; then
|
|
cleanup_magnum
|
|
fi
|
|
fi
|
|
|
|
# Restore xtrace
|
|
$XTRACE
|