blob: 65e8b122002090c3a3ab1761b738d75de54b514c [file] [log] [blame]
Chandan Kumara564cf32017-11-16 16:09:38 +05301- hosts: all
2 name: neutron-tempest-plugin-scenario-linuxbridge
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 Q_AGENT=linuxbridge
33 PHYSICAL_NETWORK=default
Chandan Kumara564cf32017-11-16 16:09:38 +053034
35 EOF
36 executable: /bin/bash
37 chdir: '{{ ansible_user_dir }}/workspace'
38 environment: '{{ zuul | zuul_legacy_vars }}'
39
40 - shell:
41 cmd: |
42 set -e
43 set -x
44 export PYTHONUNBUFFERED=true
45 export DEVSTACK_GATE_TEMPEST=1
Jens Harbott228d5b82017-12-06 12:03:09 +000046 export DEVSTACK_GATE_TEMPEST_ALL_PLUGINS=1
Chandan Kumara564cf32017-11-16 16:09:38 +053047 export DEVSTACK_GATE_NEUTRON=1
48 export DEVSTACK_GATE_EXERCISES=0
49 export DEVSTACK_GATE_TEMPEST_REGEX="(neutron_tempest_plugin.scenario)"
Jens Harbott228d5b82017-12-06 12:03:09 +000050 export DEVSTACK_LOCAL_CONFIG="enable_plugin neutron-tempest-plugin git://git.openstack.org/openstack/neutron-tempest-plugin"
Chandan Kumara564cf32017-11-16 16:09:38 +053051 export BRANCH_OVERRIDE=default
52 if [ "$BRANCH_OVERRIDE" != "default" ] ; then
53 export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE
54 fi
55
56 export TEMPEST_CONCURRENCY=2
57 export PROJECTS="openstack/neutron-tempest-plugin $PROJECTS"
58 function gate_hook {
59 bash -xe $BASE/new/neutron/neutron/tests/contrib/gate_hook.sh dsvm-scenario-linuxbridge dvrskip
60 }
61 export -f gate_hook
62
63 function post_test_hook {
64 bash -xe $BASE/new/neutron/neutron/tests/contrib/post_test_hook.sh dsvm-scenario-linuxbridge
65 }
66 export -f post_test_hook
67
68 cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh
69 ./safe-devstack-vm-gate-wrap.sh
70 executable: /bin/bash
71 chdir: '{{ ansible_user_dir }}/workspace'
72 environment: '{{ zuul | zuul_legacy_vars }}'