gating: Dragonflow devstackrc for CI

This adds a Dragonflow devstack configuration to be used in the CI gating.

Change-Id: I6990b07851843663cfed9b5112fe7ff49fe883d6
This commit is contained in:
Irena Berezovsky 2017-01-03 09:36:02 +02:00 committed by Yuval Brik
parent d830929329
commit 5119705a10
2 changed files with 23 additions and 2 deletions

View File

@ -18,9 +18,24 @@
# http://git.openstack.org/cgit/openstack-infra/project-config/tree/jenkins/jobs/kuryr.yaml
#
export OVERRIDE_ENABLED_SERVICES=neutron,q-agt,q-dhcp,q-l3,q-svc,key,mysql,rabbit,docker,etcd,kubernetes-api,kubernetes-controller-manager,kubernetes-scheduler,kubelet,kuryr-kubernetes,q-lbaasv2
VARIANT=${1:-default}
export PROJECTS="openstack/kuryr-kubernetes $PROJECTS"
export DEVSTACK_LOCAL_CONFIG="enable_plugin neutron-lbaas git://git.openstack.org/openstack/neutron-lbaas"
export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin kuryr-kubernetes http://git.openstack.org/openstack/kuryr-kubernetes"
export DEVSTACK_LOCAL_CONFIG+=$'\n'"NEUTRON_LBAAS_SERVICE_PROVIDERV2=LOADBALANCERV2:Haproxy:neutron_lbaas.drivers.haproxy.plugin_driver.HaproxyOnHostPluginDriver:default"
export OVERRIDE_ENABLED_SERVICES=neutron,q-svc,key,mysql,rabbit,docker,etcd,kubernetes-api,kubernetes-controller-manager,kubernetes-scheduler,kubelet,kuryr-kubernetes,q-lbaasv2
if [[ $VARIANT == 'default' ]]; then
export OVERRIDE_ENABLED_SERVICES+=q-agt,q-dhcp,q-l3
elif [[ $VARIANT == 'dragonflow' ]]; then
export OVERRIDE_ENABLED_SERVICES+=df-redis,df-redis-server,df-controller,df-ext-services,df-zmq-publisher-service,df-l3-agent
export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin dragonflow https://github.com/openstack/dragonflow"
export Q_ENABLE_DRAGONFLOW_LOCAL_CONTROLLER=True
export DF_RUNNING_IN_GATE=True
export TUNNEL_TYPE=vxlan
export DF_L2_RESPONDER="True"
export OVS_INSTALL_FROM_GIT=False
export OVS_BRANCH=master
else
die $LINENO "Unsupported variant"
fi

6
devstack/gate_hook.sh Normal file
View File

@ -0,0 +1,6 @@
#!/usr/bin/env bash
set -ex
source $BASE/new/kuryr-kubernetes/devstack/devstackgaterc $1
$BASE/new/devstack-gate/devstack-vm-gate.sh