blob: 8453716a5aa89a91ca9859f01025cc33b9eaadef [file] [log] [blame]
Mehdi Abaakoukc8c2ecb2018-01-15 10:07:53 +01001- hosts: all
2 name: Autoconverted job legacy-telemetry-dsvm-integration-ceilometer from old job
3 gate-telemetry-dsvm-integration-ceilometer-ubuntu-xenial
4 tasks:
5
6 - name: Ensure legacy workspace directory
7 file:
8 path: '{{ ansible_user_dir }}/workspace'
9 state: directory
10
11 - shell:
12 cmd: |
13 set -e
14 set -x
15 cat > clonemap.yaml << EOF
16 clonemap:
17 - name: openstack-infra/devstack-gate
18 dest: devstack-gate
19 EOF
20 /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \
21 git://git.openstack.org \
22 openstack-infra/devstack-gate
23 executable: /bin/bash
24 chdir: '{{ ansible_user_dir }}/workspace'
25 environment: '{{ zuul | zuul_legacy_vars }}'
26
27 - shell:
28 cmd: |
29 set -e
30 set -x
31 export PYTHONUNBUFFERED=true
32 export DEVSTACK_GATE_HEAT=1
33 export DEVSTACK_GATE_NEUTRON=1
34 export DEVSTACK_GATE_TEMPEST=1
35 export DEVSTACK_GATE_EXERCISES=0
36 export DEVSTACK_GATE_INSTALL_TESTONLY=1
37 export DEVSTACK_GATE_TEMPEST_NOTESTS=1
Mehdi Abaakoukb64d2b02018-09-03 11:50:49 +020038 export PROJECTS="openstack/ceilometer openstack/aodh openstack/panko openstack/telemetry-tempest-plugin openstack/heat"
Mehdi Abaakoukc8c2ecb2018-01-15 10:07:53 +010039 export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin panko git://git.openstack.org/openstack/panko"
40 export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin ceilometer git://git.openstack.org/openstack/ceilometer"
41 export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin aodh git://git.openstack.org/openstack/aodh"
42 export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin heat git://git.openstack.org/openstack/heat"
Mehdi Abaakouk16251bb2018-06-13 14:44:13 +020043 export DEVSTACK_LOCAL_CONFIG+=$'\n'"INSTALL_TEMPEST='False'"
Mehdi Abaakoukc8c2ecb2018-01-15 10:07:53 +010044 export DEVSTACK_LOCAL_CONFIG+=$'\n'"CEILOMETER_BACKEND=gnocchi"
45 export DEVSTACK_LOCAL_CONFIG+=$'\n'"GNOCCHI_ARCHIVE_POLICY=high"
Julien Danjou3b79e462018-07-19 09:31:40 +020046 export DEVSTACK_LOCAL_CONFIG+=$'\n'"GNOCCHI_ARCHIVE_POLICY_TEMPEST=ceilometer-high"
Mehdi Abaakoukc8c2ecb2018-01-15 10:07:53 +010047 export DEVSTACK_LOCAL_CONFIG+=$'\n'"CEILOMETER_PIPELINE_INTERVAL=15"
Mehdi Abaakoukc8c2ecb2018-01-15 10:07:53 +010048 function post_test_hook {
Mehdi Abaakouk16251bb2018-06-13 14:44:13 +020049 cd /opt/stack/new/telemetry-tempest-plugin/playbooks/legacy/telemetry-dsvm-integration-tempest-plugin/
Mehdi Abaakoukc8c2ecb2018-01-15 10:07:53 +010050 ./post_test_hook.sh
51 }
52 export -f post_test_hook
53 cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh
54 ./safe-devstack-vm-gate-wrap.sh
55 executable: /bin/bash
56 chdir: '{{ ansible_user_dir }}/workspace'
57 environment: '{{ zuul | zuul_legacy_vars }}'