
* Added check_service_status to determine the service availability and later on it will be used for all services. * Removed hardcoded values for swift services * As swift was disabled earlier, SwiftOperator was not getting used and it is not present in the CI Job, let's use member role for the same. * Set operator_role default to admin if admin credential is available otherwise, set operator_role to ResellerAdmin * Do not fail if a conflict exist in roles names Story: 2001253 Task: 5783 Co-Authored-By: Arx Cruz <arxcruz@redhat.com> Depends-On: https://review.openstack.org/#/c/576472/ Closes-Bug: 1776729 Change-Id: Ie1e9d8e98fde460f9270c2799f971ea017d10d84
54 lines
1.4 KiB
YAML
54 lines
1.4 KiB
YAML
- block:
|
|
- name: Create python-tempestconf venv with latest pip, setuptools and pbr
|
|
pip:
|
|
virtualenv: "{{ virtualenvs.tempestconf }}"
|
|
name: "{{ item }}"
|
|
state: latest
|
|
with_items:
|
|
- pip
|
|
- setuptools
|
|
- pbr
|
|
|
|
- name: Debug, list tempestconf dir
|
|
shell: |
|
|
set -ex
|
|
ls -all .
|
|
pwd
|
|
args:
|
|
chdir: "{{ tempestconf_src_relative_path }}"
|
|
|
|
- name: Install python-tempestconf
|
|
pip:
|
|
name: "."
|
|
virtualenv: "{{ virtualenvs.tempestconf }}"
|
|
chdir: "{{ tempestconf_src_relative_path }}"
|
|
|
|
- name: Generate tempest configuration file
|
|
shell: |
|
|
set -ex
|
|
export PATH=$PATH:/usr/local/sbin:/usr/sbin
|
|
source {{ virtualenvs.tempestconf }}/bin/activate
|
|
printenv
|
|
discover-tempest-config \
|
|
--out etc/cloud_tempest.conf \
|
|
--debug \
|
|
-v \
|
|
{% if cloud_user == "devstack-admin" %}
|
|
--create \
|
|
{% else %}
|
|
--non-admin \
|
|
{% endif %}
|
|
--os-cloud {{ cloud_user }} \
|
|
auth.tempest_roles Member
|
|
args:
|
|
chdir: "{{ tempestconf_src_relative_path }}"
|
|
executable: /bin/bash
|
|
|
|
- name: Print generated tempest.conf
|
|
shell: |
|
|
set -ex
|
|
cat {{ tempestconf_src_relative_path }}/etc/cloud_tempest.conf
|
|
|
|
vars:
|
|
tempestconf_src_relative_path: "{{ zuul.projects['git.openstack.org/openstack/python-tempestconf'].src_dir }}"
|