4fb91cc109
* Swarm-mode is the fastest cluster to deploy since it doesn't require to pull anything from outside. * Add the output nodes for swarm-mode too. * Disable copy logs (I think a better practice is to copy logs on demand). * Don't run test_create_list_sign_delete_clusters, because it is very unstable on the CI. Partially-Implements: blueprint swarm-mode-support 2nd commit message: Update to Fedora Atomic 26 This patch moves the current master to test against Fedora Atomic 26, in addition, it switches to downloading from Fedora mirrors. 2nd-Change-Id: I9a97c0eb78b2c9d10e8be1501babb19e73ee70c1 3rd commit message: Set default iptables FORWARD policy to ACCEPT With the release of Docker 1.13 which is available in Fedora Atomic 26, it no longer sets the policy of the FORWARD chain to ACCEPT[1]. Therefore, CNI networking such as Flannel will cease to work. This patch sets the policy to ACCEPT so that traffic can work once again for deployments which are based on Docker versions which are newer than 1.13 [1]: https://github.com/moby/moby/pull/28257 3rd-Change-Id: I1457602748619f38f87542fc01a2996ee80e58b7 Closes-Bug: #1708454 Co-Authored-By: Mohammed Naser <mnaser@vexxhost.com> Change-Id: I86d4dcc94fff622be4ee2acc8dd60ed81bc5d433
57 lines
1.5 KiB
Bash
Executable File
57 lines
1.5 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 magnum-api magnum-cond; then
|
|
if [[ "$1" == "stack" && "$2" == "install" ]]; then
|
|
echo_summary "Installing magnum"
|
|
install_magnum
|
|
|
|
MAGNUM_GUEST_IMAGE_URL=${MAGNUM_GUEST_IMAGE_URL:-"https://download.fedoraproject.org/pub/alt/atomic/stable/Fedora-Atomic-26-20170723.0/CloudImages/x86_64/images/Fedora-Atomic-26-20170723.0.x86_64.qcow2"}
|
|
IMAGE_URLS+=",${MAGNUM_GUEST_IMAGE_URL}"
|
|
|
|
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_magnum
|
|
fi
|
|
|
|
if [[ "$1" == "unstack" ]]; then
|
|
stop_magnum
|
|
fi
|
|
|
|
if [[ "$1" == "clean" ]]; then
|
|
cleanup_magnum
|
|
fi
|
|
fi
|
|
|
|
# Restore xtrace
|
|
$XTRACE
|