Ensure pip/setuptools/wheel are up to date in the utility venv

To ensure consistency, we make sure that the venv used for the
utility container has an up to date and the right versions of
pip/setuptools/wheel.

Without this, on some distributions, we get an obscure error
stating that the wheels from the repo are not compatible with
the python version.

We also update the repo_build role SHA to include the following
patches for a similar reason:
https://review.openstack.org/615213
https://review.openstack.org/615525
https://review.openstack.org/615876

Finally, due to changes in the rabbitmq yum repo GPG keys, we
also need to update the rabbitmq_server repo SHA to include
the update for that:
https://review.openstack.org/616218

Change-Id: Id66ca539984683d7340b50d3f4364c7836251881
This commit is contained in:
Jesse Pretorius 2018-11-02 17:43:14 +00:00
parent fa2497ff3f
commit 99526d91fc
2 changed files with 19 additions and 2 deletions

View File

@ -145,11 +145,11 @@
- name: rabbitmq_server
scm: git
src: https://git.openstack.org/openstack/openstack-ansible-rabbitmq_server
version: 55a66fa0baaa49aeeaa0cb4672c87e8003f17b26
version: deccf93bdda1aa873b956418168368284509c99b
- name: repo_build
scm: git
src: https://git.openstack.org/openstack/openstack-ansible-repo_build
version: b9960a02f3111b0adba0d24c76621cc3b76805a7
version: 630a6dfdcb46ba719ddb7fd7a4875259c5602b15
- name: repo_server
scm: git
src: https://git.openstack.org/openstack/openstack-ansible-repo_server

View File

@ -105,6 +105,23 @@
args:
creates: "{{ utility_venv_bin }}/activate"
- name: Upgrade pip/setuptools/wheel to the versions we want
pip:
name:
- pip
- setuptools
- wheel
state: "{{ utility_pip_package_state }}"
virtualenv: "{{ utility_venv_bin | dirname }}"
virtualenv_site_packages: "no"
extra_args: >-
{{ (pip_install_upper_constraints is defined) | ternary('--constraint ' + pip_install_upper_constraints | default(''),'') }}
{{ pip_install_options | default('') }}
register: install_packages
until: install_packages is success
retries: 5
delay: 2
- name: Install pip packages
pip:
name: "{{ _openstack_client_list | union(utility_pip_packages) }}"