Chandan Kumar | a564cf3 | 2017-11-16 16:09:38 +0530 | [diff] [blame] | 1 | - 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 |
Chandan Kumar | a564cf3 | 2017-11-16 16:09:38 +0530 | [diff] [blame] | 30 | export PYTHONUNBUFFERED=true |
| 31 | export DEVSTACK_GATE_TEMPEST=1 |
Jens Harbott | 228d5b8 | 2017-12-06 12:03:09 +0000 | [diff] [blame^] | 32 | export DEVSTACK_GATE_TEMPEST_ALL_PLUGINS=1 |
Chandan Kumar | a564cf3 | 2017-11-16 16:09:38 +0530 | [diff] [blame] | 33 | export DEVSTACK_GATE_NEUTRON=1 |
| 34 | export DEVSTACK_GATE_CONFIGDRIVE=0 |
| 35 | export DEVSTACK_GATE_TEMPEST_REGEX="(neutron_tempest_plugin.scenario)" |
Jens Harbott | 228d5b8 | 2017-12-06 12:03:09 +0000 | [diff] [blame^] | 36 | export DEVSTACK_LOCAL_CONFIG="enable_plugin neutron-tempest-plugin git://git.openstack.org/openstack/neutron-tempest-plugin" |
Chandan Kumar | a564cf3 | 2017-11-16 16:09:38 +0530 | [diff] [blame] | 37 | export TEMPEST_CONCURRENCY=2 |
| 38 | # Test DVR works multinode |
| 39 | export DEVSTACK_GATE_NEUTRON_DVR=1 |
| 40 | export BRANCH_OVERRIDE=default |
| 41 | if [ "$BRANCH_OVERRIDE" != "default" ] ; then |
| 42 | export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE |
| 43 | fi |
| 44 | export DEVSTACK_GATE_TOPOLOGY="multinode" |
| 45 | export PROJECTS="openstack/neutron-tempest-plugin $PROJECTS" |
| 46 | |
| 47 | function gate_hook { |
| 48 | bash -xe $BASE/new/neutron/neutron/tests/contrib/gate_hook.sh dsvm-scenario-ovs |
| 49 | } |
| 50 | export -f gate_hook |
| 51 | |
| 52 | function post_test_hook { |
| 53 | bash -xe $BASE/new/neutron/neutron/tests/contrib/post_test_hook.sh dsvm-scenario-ovs |
| 54 | } |
| 55 | export -f post_test_hook |
| 56 | |
| 57 | cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh |
| 58 | ./safe-devstack-vm-gate-wrap.sh |
| 59 | executable: /bin/bash |
| 60 | chdir: '{{ ansible_user_dir }}/workspace' |
| 61 | environment: '{{ zuul | zuul_legacy_vars }}' |