Prefer distribution packages for Tempest dependencies

Distributions provide packages for all the Tempest role dependencies
so we can use these instead of the ones from PIP in order to keep
the host as clean as possible. openSUSE provides suitable versions for
all of them, whereas Ubuntu provides everything except for shade which
we still need to get from PIP. Similarly, CentOS provides everything
except from virtualenv but this is being installed in the
openstack_hosts role.

Since we are still mixing distribution and pip packages, we need to
stop using upper-constrains when installing pip packages on the host
so distro packages can be used to satisfy their dependencies.

Change-Id: I5a78e2120e596d36629b4ba978b2b5df76b149b0
Implements: blueprint openstack-distribution-packages
This commit is contained in:
Markos Chandras
2018-04-19 15:09:50 +01:00
parent 7182335405
commit 1c4e1ced6a
5 changed files with 23 additions and 9 deletions

View File

@@ -154,14 +154,6 @@ tempest_volume_multi_backend_enabled: False
tempest_main_group: tempest_all
tempest_requires_pip_packages:
- python-glanceclient
- python-keystoneclient
- python-neutronclient
- python-novaclient
- shade
- virtualenv
tempest_pip_packages:
- ddt
- junitxml

View File

@@ -39,7 +39,6 @@
state: "{{ tempest_pip_package_state }}"
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(''),'') }}
{{ pip_install_options | default('') }}
register: install_packages
until: install_packages|success

View File

@@ -16,5 +16,12 @@
tempest_distro_packages:
- git
- postgresql-devel
- python-glanceclient
- python-keystoneclient
- python-neutronclient
- python-novaclient
- python2-shade
- rsync
- which
tempest_requires_pip_packages: []

View File

@@ -17,5 +17,12 @@
tempest_distro_packages:
- git-core
- postgresql-devel
- python-glanceclient
- python-keystoneclient
- python-neutronclient
- python-novaclient
- python-shade
- rsync
- which
tempest_requires_pip_packages: []

View File

@@ -19,4 +19,13 @@ cache_timeout: 600
tempest_distro_packages:
- git-core
- libpq-dev
- python-glanceclient
- python-keystoneclient
- python-neutronclient
- python-novaclient
- rsync
tempest_requires_pip_packages:
- shade # ubuntu xenial provides a rather old shade library. We need >= 1.9.0 for Rocky
- virtualenv
- setuptools # Ubuntu's setuptools package does not contain pkg-resources and that's causing troubles