blob: 80757a441f125d84be774627a7d2472d28a2da33 [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 \
Ian Wienand2c7bfe92019-03-24 20:36:15 +000021 https://git.openstack.org \
Mehdi Abaakoukc8c2ecb2018-01-15 10:07:53 +010022 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 Abaakouk7f0e3152019-02-08 12:30:17 +010038 export PROJECTS="openstack/ceilometer openstack/aodh openstack/panko openstack/telemetry-tempest-plugin openstack/heat openstack/heat-tempest-plugin"
Ian Wienand2c7bfe92019-03-24 20:36:15 +000039 export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin panko https://git.openstack.org/openstack/panko"
40 export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin ceilometer https://git.openstack.org/openstack/ceilometer"
41 export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin aodh https://git.openstack.org/openstack/aodh"
42 export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin heat https://git.openstack.org/openstack/heat"
43 export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin heat-tempest-plugin https://git.openstack.org/openstack/heat-tempest-plugin"
Mehdi Abaakouk16251bb2018-06-13 14:44:13 +020044 export DEVSTACK_LOCAL_CONFIG+=$'\n'"INSTALL_TEMPEST='False'"
Mehdi Abaakoukc8c2ecb2018-01-15 10:07:53 +010045 export DEVSTACK_LOCAL_CONFIG+=$'\n'"CEILOMETER_BACKEND=gnocchi"
Mehdi Abaakouk7f0e3152019-02-08 12:30:17 +010046 export DEVSTACK_LOCAL_CONFIG+=$'\n'"GNOCCHI_ARCHIVE_POLICY_TEMPEST=ceilometer-high-rate"
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 }}'