cinder/roles/configure-run-migration-tests/tasks/main.yaml
Luigi Toscano 1c0c25babb Native multibackend-matrix Zuul v3 job
Port the legacy legacy-tempest-dsvm-multibackend-matrix job to the
native Zuul v3 syntax, and rename it following the guidelines
(cinder-multibackend-matrix-migration).

This job tests the migration between two different backends
specified through the volume.backend_names configuration
key in tempest.conf.

Now the job leverages the existing zuul code, namely the
run-tempest role, which is called multiple times with all
the possible combinations of the 3 tested backends
(lvm, ceph, nfs) where the source and the destination differ.

The final JUnitXML output summarizes the test results
for each of the tested combinations.

Change-Id: I34e7e48ee63c4c269f82ae178a7118ed402cad6d
2021-09-08 01:05:44 +02:00

34 lines
995 B
YAML

---
- name: Reconfigure tempest.conf
ini_file:
path: "{{ migration_tempest_conf }}"
section: volume
option: backend_names
value: "{{ migration_source_backend }},{{ migration_destination_backend }}"
become: true
become_user: tempest
- set_fact:
tempest_run_result: {}
- name: Run migration ({{ migration_source_backend }} -> {{ migration_destination_backend }})
include_role:
name: run-tempest
apply:
# ignore the errors for this run, otherwise the other migration tests
# won't be executed
ignore_errors: yes
vars:
tempest_test_regex: "{{ migration_test_regex }}"
tox_envlist: all
- set_fact:
_migration_result_item:
source: "{{ migration_source_backend }}"
destination: "{{ migration_destination_backend }}"
result: "{{ tempest_run_result.get('rc', 1) }}"
- name: Update the migration test results
set_fact:
migration_test_results: "{{ migration_test_results + [ _migration_result_item ] }}"