79f3d6ffe1
Ceph multi-backend is not a requirement for refstack testing. Therefore it is not required to set the share.multi_backend option in tempest.conf. Change-Id: I3a40f39599e90bd0a10a680dc0cd82986e656d74
48 lines
1.4 KiB
YAML
48 lines
1.4 KiB
YAML
---
|
|
- when: "'shared_file_system' in refstack_target_programs"
|
|
block:
|
|
- name: Copy python script for parsing tempest.conf
|
|
copy:
|
|
src: parse_ini_get_tempestconf_overrides.py
|
|
dest: "{{ refstack_client_source }}/parse_ini_get_tempestconf_overrides.py"
|
|
|
|
- name: Parse share config from tempest_admin.conf
|
|
shell: |
|
|
python3 ./parse_ini_get_tempestconf_overrides.py \
|
|
backend_names,enable_protocols,multitenancy_enabled \
|
|
share \
|
|
etc/tempest_admin.conf
|
|
register: share_tempestconf_overrides
|
|
args:
|
|
chdir: "{{ refstack_client_source }}"
|
|
|
|
- name: Form share overrides for tempestconf
|
|
set_fact:
|
|
share_tempestconf_overrides: "{{ share_tempestconf_overrides.stdout_lines }}"
|
|
|
|
- name: Generate tempest configuration script
|
|
template:
|
|
src: generate-tempestconf.sh.j2
|
|
dest: "{{ refstack_client_source }}/generate-tempestconf.sh"
|
|
mode: 0744
|
|
|
|
- name: Generate tempest configuration file
|
|
shell: |
|
|
./generate-tempestconf.sh
|
|
args:
|
|
chdir: "{{ refstack_client_source }}"
|
|
executable: /bin/bash
|
|
changed_when: tempest_config_path is not defined
|
|
|
|
- name: Cat generated tempest.conf file
|
|
shell: |
|
|
cat ./etc/tempest.conf
|
|
args:
|
|
executable: /bin/bash
|
|
chdir: "{{ refstack_client_source }}"
|
|
changed_when: false
|
|
|
|
- name: Set path to newly generated tempest.conf
|
|
set_fact:
|
|
path_to_tempest_config: "{{ refstack_client_source }}/etc/tempest.conf"
|