bc8e40553c
This is required for the bgp tests to succeed. Without it, tests fail as follows: Failed to import test module: neutron_dynamic_routing.tests.tempest.api.test_bgp_speaker_extensions Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/unittest2/loader.py", line 456, in _find_test_path module = self._get_module_from_name(name) File "/usr/local/lib/python2.7/dist-packages/unittest2/loader.py", line 395, in _get_module_from_name __import__(name) File "/opt/stack/new/neutron-dynamic-routing/neutron_dynamic_routing/tests/tempest/api/test_bgp_speaker_extensions.py", line 21, in <module> from neutron_tempest_plugin.api import base ImportError: No module named neutron_tempest_plugin.api Resolves-Bug: #1762176 Change-Id: I1d15fe4b1aa43cbb40c85ba448702e3f72052573
81 lines
3.0 KiB
YAML
81 lines
3.0 KiB
YAML
- hosts: all
|
|
name: Autoconverted job legacy-tempest-dsvm-dragonflow from old job gate-tempest-dsvm-dragonflow-ubuntu-xenial-nv
|
|
tasks:
|
|
|
|
- name: Ensure legacy workspace directory
|
|
file:
|
|
path: '{{ ansible_user_dir }}/workspace'
|
|
state: directory
|
|
|
|
- shell:
|
|
cmd: |
|
|
set -e
|
|
set -x
|
|
cat > clonemap.yaml << EOF
|
|
clonemap:
|
|
- name: openstack-infra/devstack-gate
|
|
dest: devstack-gate
|
|
EOF
|
|
/usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \
|
|
git://git.openstack.org \
|
|
openstack-infra/devstack-gate
|
|
executable: /bin/bash
|
|
chdir: '{{ ansible_user_dir }}/workspace'
|
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
|
|
|
- shell:
|
|
cmd: |
|
|
set -e
|
|
set -x
|
|
cat << 'EOF' >>"/tmp/dg-local.conf"
|
|
[[local|localrc]]
|
|
enable_plugin dragonflow git://git.openstack.org/openstack/dragonflow
|
|
Q_ENABLE_DRAGONFLOW_LOCAL_CONTROLLER=True
|
|
# Add bgp project to tempest gate job.
|
|
enable_plugin neutron-dynamic-routing git://git.openstack.org/openstack/neutron-dynamic-routing
|
|
DR_MODE=df-bgp
|
|
# Add networking-sfc
|
|
enable_plugin networking-sfc git://git.openstack.org/openstack/networking-sfc
|
|
enable_plugin neutron-tempest-plugin git://git.openstack.org/openstack/neutron-tempest-plugin
|
|
TEMPEST_PLUGIN='/opt/stack/new/neutron-tempest-plugin'
|
|
|
|
EOF
|
|
executable: /bin/bash
|
|
chdir: '{{ ansible_user_dir }}/workspace'
|
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
|
|
|
- shell:
|
|
cmd: |
|
|
set -e
|
|
set -x
|
|
export PYTHONUNBUFFERED=true
|
|
export DEVSTACK_GATE_NEUTRON=1
|
|
export DEVSTACK_GATE_TEMPEST=1
|
|
export BRANCH_OVERRIDE=default
|
|
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/dragonflow $PROJECTS"
|
|
export PROJECTS="openstack/neutron-dynamic-routing $PROJECTS"
|
|
export PROJECTS="openstack/networking-sfc $PROJECTS"
|
|
export PROJECTS="openstack/neutron-tempest-plugin $PROJECTS"
|
|
|
|
# Keep localrc to be able to set some vars in pre_test_hook
|
|
export KEEP_LOCALRC=1
|
|
|
|
export DEVSTACK_GATE_SETTINGS=/opt/stack/new/dragonflow/devstack/devstackgaterc-tempest-redis
|
|
|
|
function gate_hook {
|
|
bash -xe $BASE/new/dragonflow/dragonflow/tests/contrib/gate_hook.sh tempest
|
|
}
|
|
export -f gate_hook
|
|
|
|
cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh
|
|
./safe-devstack-vm-gate-wrap.sh
|
|
executable: /bin/bash
|
|
chdir: '{{ ansible_user_dir }}/workspace'
|
|
environment: '{{ zuul | zuul_legacy_vars }}'
|