Mehdi Abaakouk | c8c2ecb | 2018-01-15 10:07:53 +0100 | [diff] [blame] | 1 | - 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: |
OpenDev Sysadmins | 5ddfa33 | 2019-04-19 19:26:32 +0000 | [diff] [blame^] | 17 | - name: openstack/devstack-gate |
Mehdi Abaakouk | c8c2ecb | 2018-01-15 10:07:53 +0100 | [diff] [blame] | 18 | dest: devstack-gate |
| 19 | EOF |
| 20 | /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ |
OpenDev Sysadmins | 5ddfa33 | 2019-04-19 19:26:32 +0000 | [diff] [blame^] | 21 | https://opendev.org \ |
| 22 | openstack/devstack-gate |
Mehdi Abaakouk | c8c2ecb | 2018-01-15 10:07:53 +0100 | [diff] [blame] | 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 Abaakouk | 7f0e315 | 2019-02-08 12:30:17 +0100 | [diff] [blame] | 38 | export PROJECTS="openstack/ceilometer openstack/aodh openstack/panko openstack/telemetry-tempest-plugin openstack/heat openstack/heat-tempest-plugin" |
OpenDev Sysadmins | 5ddfa33 | 2019-04-19 19:26:32 +0000 | [diff] [blame^] | 39 | export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin panko https://opendev.org/openstack/panko" |
| 40 | export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin ceilometer https://opendev.org/openstack/ceilometer" |
| 41 | export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin aodh https://opendev.org/openstack/aodh" |
| 42 | export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin heat https://opendev.org/openstack/heat" |
| 43 | export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin heat-tempest-plugin https://opendev.org/openstack/heat-tempest-plugin" |
Mehdi Abaakouk | 16251bb | 2018-06-13 14:44:13 +0200 | [diff] [blame] | 44 | export DEVSTACK_LOCAL_CONFIG+=$'\n'"INSTALL_TEMPEST='False'" |
zhurong | 24f1bcd | 2019-04-09 16:51:54 +0800 | [diff] [blame] | 45 | if [[ $ZUUL_BRANCH =~ (stable/ocata|stable/pike|stable/queens|stable/rocky) ]]; then |
| 46 | export DEVSTACK_LOCAL_CONFIG+=$'\n'"GNOCCHI_ARCHIVE_POLICY=high" |
| 47 | export DEVSTACK_LOCAL_CONFIG+=$'\n'"GNOCCHI_ARCHIVE_POLICY_TEMPEST=ceilometer-high" |
| 48 | else |
| 49 | export DEVSTACK_LOCAL_CONFIG+=$'\n'"GNOCCHI_ARCHIVE_POLICY_TEMPEST=ceilometer-high-rate" |
| 50 | fi |
Mehdi Abaakouk | c8c2ecb | 2018-01-15 10:07:53 +0100 | [diff] [blame] | 51 | export DEVSTACK_LOCAL_CONFIG+=$'\n'"CEILOMETER_BACKEND=gnocchi" |
Mehdi Abaakouk | c8c2ecb | 2018-01-15 10:07:53 +0100 | [diff] [blame] | 52 | export DEVSTACK_LOCAL_CONFIG+=$'\n'"CEILOMETER_PIPELINE_INTERVAL=15" |
Mehdi Abaakouk | c8c2ecb | 2018-01-15 10:07:53 +0100 | [diff] [blame] | 53 | function post_test_hook { |
Mehdi Abaakouk | 16251bb | 2018-06-13 14:44:13 +0200 | [diff] [blame] | 54 | cd /opt/stack/new/telemetry-tempest-plugin/playbooks/legacy/telemetry-dsvm-integration-tempest-plugin/ |
Mehdi Abaakouk | c8c2ecb | 2018-01-15 10:07:53 +0100 | [diff] [blame] | 55 | ./post_test_hook.sh |
| 56 | } |
| 57 | export -f post_test_hook |
| 58 | cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh |
| 59 | ./safe-devstack-vm-gate-wrap.sh |
| 60 | executable: /bin/bash |
| 61 | chdir: '{{ ansible_user_dir }}/workspace' |
| 62 | environment: '{{ zuul | zuul_legacy_vars }}' |