Add multiregion check job for Kingbird

Kingbird is a service to provide resource management
across multi-region of OpenStack. This patch is to enable
multi-region check job for Kingbird project.

At first the check job is non-voting job.

Change-Id: I1c94bd4bc19909ba9773df343dbd493801867b2b
Signed-off-by: joehuang <joehuang@huawei.com>
This commit is contained in:
joehuang 2017-04-13 03:48:01 -04:00
parent a04b5c25aa
commit 17fea18223
3 changed files with 60 additions and 0 deletions

View File

@ -0,0 +1,52 @@
- job-template:
name: '{pipeline}-kingbird-dsvm-multiregion-{node-release}{suffix}'
node: '{node}'
wrappers:
- build-timeout:
timeout: 90
- timestamps
builders:
- link-logs
- net-info
- devstack-checkout
- shell: |
#!/bin/bash -xe
export PYTHONUNBUFFERED=true
export PROJECTS="openstack/kingbird $PROJECTS"
export DEVSTACK_GATE_CONFIGDRIVE=0
export DEVSTACK_GATE_NEUTRON=1
export DEVSTACK_GATE_TEMPEST=0
export DEVSTACK_GATE_TEMPEST_ALL_PLUGINS=0
export DEVSTACK_GATE_TEMPEST_REGEX="kingbird.tests.tempest"
# Keep localrc to be able to set some vars in pre_test_hook
export KEEP_LOCALRC=1
# Enable multinode mode, so that the subnode(the second node)
# will be configured to run as second region in pre_test_hook.sh
export DEVSTACK_GATE_TOPOLOGY="multinode"
export BRANCH_OVERRIDE={branch-override}
if [ "$BRANCH_OVERRIDE" != "default" ] ; then
export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE
fi
function gate_hook {{
bash -xe $BASE/new/kingbird/kingbird/tests/tempest/gate_hook.sh
}}
export -f gate_hook
function post_test_hook {{
bash -xe $BASE/new/kingbird/kingbird/tempest/post_test_hook.sh
}}
export -f post_test_hook
cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh
./safe-devstack-vm-gate-wrap.sh
publishers:
- test-results
- devstack-logs
- console-log

View File

@ -6125,6 +6125,12 @@
jobs:
- python-jobs
- pypi-jobs
- '{pipeline}-kingbird-dsvm-multiregion-{node-release}{suffix}':
pipeline: gate
node: ubuntu-xenial-2-node
node-release: ubuntu-xenial
suffix: '-nv'
branch-override: default
- project:
name: kloudbuster

View File

@ -11434,6 +11434,8 @@ projects:
- name: publish-to-pypi
- name: python-jobs
- name: check-requirements
check:
- gate-kingbird-dsvm-multiregion-ubuntu-xenial-nv
- name: openstack/kloudbuster
template: