blob: d68747c7e8a14eee83d0e79ecf3684a8bb861f11 [file] [log] [blame]
Chandan Kumara564cf32017-11-16 16:09:38 +05301- hosts: all
2 name: neutron-tempest-plugin-dvr-multinode-scenario
3 tasks:
4
5 - name: Ensure legacy workspace directory
6 file:
7 path: '{{ ansible_user_dir }}/workspace'
8 state: directory
9
10 - shell:
11 cmd: |
12 set -e
13 set -x
14 cat > clonemap.yaml << EOF
15 clonemap:
16 - name: openstack-infra/devstack-gate
17 dest: devstack-gate
18 EOF
19 /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \
20 git://git.openstack.org \
21 openstack-infra/devstack-gate
22 executable: /bin/bash
23 chdir: '{{ ansible_user_dir }}/workspace'
24 environment: '{{ zuul | zuul_legacy_vars }}'
25
26 - shell:
27 cmd: |
28 set -e
29 set -x
30 cat << 'EOF' >>"/tmp/dg-local.conf"
31 [[local|localrc]]
32 TEMPEST_PLUGINS='/opt/stack/new/neutron-tempest-plugin'
33 EOF
34 executable: /bin/bash
35 chdir: '{{ ansible_user_dir }}/workspace'
36 environment: '{{ zuul | zuul_legacy_vars }}'
37
38 - shell:
39 cmd: |
40 set -e
41 set -x
42 export PYTHONUNBUFFERED=true
43 export DEVSTACK_GATE_TEMPEST=1
44 export DEVSTACK_GATE_NEUTRON=1
45 export DEVSTACK_GATE_CONFIGDRIVE=0
46 export DEVSTACK_GATE_TEMPEST_REGEX="(neutron_tempest_plugin.scenario)"
47 export TEMPEST_CONCURRENCY=2
48 # Test DVR works multinode
49 export DEVSTACK_GATE_NEUTRON_DVR=1
50 export BRANCH_OVERRIDE=default
51 if [ "$BRANCH_OVERRIDE" != "default" ] ; then
52 export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE
53 fi
54 export DEVSTACK_GATE_TOPOLOGY="multinode"
55 export PROJECTS="openstack/neutron-tempest-plugin $PROJECTS"
56
57 function gate_hook {
58 bash -xe $BASE/new/neutron/neutron/tests/contrib/gate_hook.sh dsvm-scenario-ovs
59 }
60 export -f gate_hook
61
62 function post_test_hook {
63 bash -xe $BASE/new/neutron/neutron/tests/contrib/post_test_hook.sh dsvm-scenario-ovs
64 }
65 export -f post_test_hook
66
67 cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh
68 ./safe-devstack-vm-gate-wrap.sh
69 executable: /bin/bash
70 chdir: '{{ ansible_user_dir }}/workspace'
71 environment: '{{ zuul | zuul_legacy_vars }}'