2016-12-21 17:42:12 +01:00
|
|
|
# Licensed under the Apache License, Version 2.0 (the "License"); you may
|
|
|
|
# not use this file except in compliance with the License. You may obtain
|
|
|
|
# a copy of the License at
|
|
|
|
#
|
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
#
|
|
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
|
|
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
|
|
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
|
|
|
# License for the specific language governing permissions and limitations
|
|
|
|
# under the License.
|
|
|
|
|
|
|
|
#
|
|
|
|
# This script is executed in the install-dsvm-kuryr-kuryr-kubernetes
|
|
|
|
# OpenStack CI job that runs DevStack + kuryr. You can find the CI job
|
|
|
|
# configuration here:
|
|
|
|
#
|
2017-06-12 22:51:53 +08:00
|
|
|
# https://git.openstack.org/cgit/openstack-infra/project-config/tree/jenkins/jobs/kuryr.yaml
|
2016-12-21 17:42:12 +01:00
|
|
|
#
|
|
|
|
|
2017-01-03 09:36:02 +02:00
|
|
|
VARIANT=${1:-default}
|
2016-12-21 17:42:12 +01:00
|
|
|
export DEVSTACK_LOCAL_CONFIG="enable_plugin neutron-lbaas git://git.openstack.org/openstack/neutron-lbaas"
|
2017-06-14 16:43:43 +02:00
|
|
|
export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin devstack-plugin-container https://git.openstack.org/openstack/devstack-plugin-container"
|
2017-06-12 22:51:53 +08:00
|
|
|
export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin kuryr-kubernetes https://git.openstack.org/openstack/kuryr-kubernetes"
|
2016-12-21 17:42:12 +01:00
|
|
|
export DEVSTACK_LOCAL_CONFIG+=$'\n'"NEUTRON_LBAAS_SERVICE_PROVIDERV2=LOADBALANCERV2:Haproxy:neutron_lbaas.drivers.haproxy.plugin_driver.HaproxyOnHostPluginDriver:default"
|
2017-06-16 20:27:48 +03:00
|
|
|
export OVERRIDE_ENABLED_SERVICES=neutron,q-svc,key,mysql,rabbit,docker,etcd3,kubernetes-api,kubernetes-controller-manager,kubernetes-scheduler,kubelet,kuryr-kubernetes,q-lbaasv2
|
2017-01-03 09:36:02 +02:00
|
|
|
|
|
|
|
if [[ $VARIANT == 'default' ]]; then
|
2017-01-09 09:41:42 +02:00
|
|
|
export OVERRIDE_ENABLED_SERVICES+=,q-agt,q-dhcp,q-l3
|
2017-01-03 09:36:02 +02:00
|
|
|
elif [[ $VARIANT == 'dragonflow' ]]; then
|
2017-01-09 09:41:42 +02:00
|
|
|
export OVERRIDE_ENABLED_SERVICES+=,df-redis,df-redis-server,df-controller,df-ext-services,df-zmq-publisher-service,df-l3-agent
|
2017-01-03 09:36:02 +02:00
|
|
|
export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin dragonflow https://github.com/openstack/dragonflow"
|
2017-01-10 10:15:05 +02:00
|
|
|
export DEVSTACK_LOCAL_CONFIG+=$'\n'"Q_ENABLE_DRAGONFLOW_LOCAL_CONTROLLER=True"
|
|
|
|
export DEVSTACK_LOCAL_CONFIG+=$'\n'"DF_RUNNING_IN_GATE=True"
|
|
|
|
export DEVSTACK_LOCAL_CONFIG+=$'\n'"TUNNEL_TYPE=vxlan"
|
|
|
|
export DEVSTACK_LOCAL_CONFIG+=$'\n'"DF_L2_RESPONDER=\"True\""
|
|
|
|
export DEVSTACK_LOCAL_CONFIG+=$'\n'"OVS_INSTALL_FROM_GIT=False"
|
|
|
|
export DEVSTACK_LOCAL_CONFIG+=$'\n'"OVS_BRANCH=master"
|
2017-01-03 09:36:02 +02:00
|
|
|
else
|
|
|
|
die $LINENO "Unsupported variant"
|
|
|
|
fi
|