midonet: Add an experimental job for ML2 mech driver

Change-Id: Ic58dde99c0b375a6f15dc53aef9d9c3ad52c5495
This commit is contained in:
YAMAMOTO Takashi 2015-08-07 13:03:27 +09:00
parent dbd18b57a3
commit 7204db9177
3 changed files with 76 additions and 0 deletions

View File

@ -123,3 +123,69 @@
publishers:
- devstack-logs
- console-log
- job-template:
name: '{pipeline}-tempest-dsvm-networking-midonet-ml2{branch-designator}'
node: '{node}'
wrappers:
- build-timeout:
timeout: 125
- timestamps
builders:
- link-logs
- net-info
- devstack-checkout
- shell: |
#!/bin/bash -xe
export PYTHONUNBUFFERED=true
export DEVSTACK_GATE_TIMEOUT=120
export DEVSTACK_GATE_NEUTRON=1
export DEVSTACK_GATE_TEMPEST=1
export BRANCH_OVERRIDE={branch-override}
if [ "$BRANCH_OVERRIDE" != "default" ] ; then
export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE
fi
# Because we are testing a non standard project, add
# our project repository. This makes zuul do the right
# reference magic for testing changes.
export PROJECTS="openstack/networking-midonet $PROJECTS"
# Note the actual url here is somewhat irrelevant because it
# caches in nodepool, however make it a valid url for
# documentation purposes.
export DEVSTACK_LOCAL_CONFIG="enable_plugin networking-midonet git://git.openstack.org/openstack/networking-midonet"
export DEVSTACK_LOCAL_CONFIG+=$'\n'"Q_PLUGIN=ml2"
export DEVSTACK_LOCAL_CONFIG+=$'\n'"Q_ML2_PLUGIN_MECHANISM_DRIVERS=midonet"
export DEVSTACK_LOCAL_CONFIG+=$'\n'"Q_SERVICE_PLUGIN_CLASSES=midonet.neutron.services.l3.l3_midonet.MidonetL3ServicePlugin"
export DEVSTACK_LOCAL_CONFIG+=$'\n'"Q_L3_ENABLED=True"
export DEVSTACK_LOCAL_CONFIG+=$'\n'"TEMPEST_RUN_VALIDATION=True"
export DEVSTACK_LOCAL_CONFIG+=$'\n'"METADATA_SERVICE_AVAILABLE=True"
export DEVSTACK_LOCAL_CONFIG+=$'\n'"MIDONET_USE_ZOOM=True"
# Keep localrc to be able to set some vars in pre_test_hook
export KEEP_LOCALRC=1
function pre_test_hook {{
if [ -f $BASE/new/networking-midonet/devstack/pre_test_hook.sh ] ; then
. $BASE/new/networking-midonet/devstack/pre_test_hook.sh
fi
}}
export -f pre_test_hook
function post_test_hook {{
if [ -f $BASE/new/networking-midonet/devstack/post_test_hook.sh ] ; then
. $BASE/new/networking-midonet/devstack/post_test_hook.sh
fi
}}
export -f post_test_hook
export DEVSTACK_GATE_SETTINGS=$BASE/new/networking-midonet/devstack/devstackgaterc
cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh
./safe-devstack-vm-gate-wrap.sh
publishers:
- devstack-logs
- console-log

View File

@ -758,6 +758,11 @@
node: 'devstack-precise || devstack-trusty'
branch-designator: ''
branch-override: default
- '{pipeline}-tempest-dsvm-networking-midonet-ml2{branch-designator}':
pipeline: gate
node: 'devstack-precise || devstack-trusty'
branch-designator: ''
branch-override: default
- project:
name: networking-odl

View File

@ -846,6 +846,10 @@ jobs:
branch: ^(?!stable/(icehouse|juno)).*$
voting: false
- name: ^gate-tempest-dsvm-networking-midonet-ml2
branch: ^(?!stable/(icehouse|juno|kilo)).*$
voting: false
- name: ^gate-tempest-dsvm-networking-odl
branch: ^(?!stable)
voting: false
@ -2442,6 +2446,7 @@ projects:
- gate-tempest-dsvm-networking-midonet
experimental:
- gate-tempest-dsvm-networking-midonet-v2
- gate-tempest-dsvm-networking-midonet-ml2
- name: openstack/networking-odl
template: