Use contraints for tempest plugins

This patch unifies the master branch with the changes which have
been necessary to unbreak the stable branches in light of py2 support
being removed from tempest and its plugins.

Change-Id: I1d447933af5b668c17576a0ed985683a28fa153a
(cherry picked from commit 9de0b7a59f)
This commit is contained in:
Dmitriy Rabotyagov 2020-03-27 14:04:06 +02:00 committed by Dmitriy Rabotyagov (noonedeadpunk)
parent e2cae59ce6
commit 02b5549ac3
2 changed files with 6 additions and 4 deletions

View File

@ -21,6 +21,8 @@ debug: False
tempest_package_state: "latest"
tempest_pip_package_state: "latest"
tempest_upper_constraints_url: "https://opendev.org/openstack/requirements/raw/{{ requirements_git_install_branch | default('master') }}/upper-constraints.txt"
# Set the host which will execute the shade modules
# for the service setup. The host must already have
# clouds.yaml properly configured.

View File

@ -83,7 +83,7 @@
virtualenv_site_packages: "no"
extra_args: >-
{{ tempest_developer_mode | ternary(pip_install_developer_constraints | default('--constraint /opt/developer-pip-constraints.txt'), '') }}
{{ (pip_install_upper_constraints is defined) | ternary('--constraint ' + pip_install_upper_constraints | default(''),'') }}
--constraint {{ tempest_upper_constraints_url }}
{{ pip_install_options | default('') }}
register: install_packages
until: install_packages is success
@ -147,7 +147,7 @@
virtualenv_site_packages: "no"
extra_args: >-
{{ tempest_developer_mode | ternary(pip_install_developer_constraints | default('--constraint /opt/developer-pip-constraints.txt'), '') }}
{{ (pip_install_upper_constraints is defined) | ternary('--constraint ' + pip_install_upper_constraints | default(''),'') }}
--constraint {{ tempest_upper_constraints_url }}
{{ pip_install_options | default('') }}
--isolated
with_items: "{{ _test_requirements_stat.results }}"
@ -168,7 +168,7 @@
virtualenv_site_packages: "no"
extra_args: >-
{{ tempest_developer_mode | ternary(pip_install_developer_constraints | default('--constraint /opt/developer-pip-constraints.txt'), '') }}
{{ (pip_install_upper_constraints is defined) | ternary('--constraint ' + pip_install_upper_constraints | default(''),'') }}
--constraint {{ tempest_upper_constraints_url }}
{{ pip_install_options | default('') }}
--isolated
with_items: "{{ tempest_plugins }}"
@ -186,7 +186,7 @@
virtualenv_site_packages: "no"
extra_args: >-
{{ tempest_developer_mode | ternary(pip_install_developer_constraints | default('--constraint /opt/developer-pip-constraints.txt'), '') }}
{{ (pip_install_upper_constraints is defined) | ternary('--constraint ' + pip_install_upper_constraints | default(''),'') }}
--constraint {{ tempest_upper_constraints_url }}
{{ pip_install_options | default('') }}
--isolated
with_items: "{{ tempest_plugins }}"