From a387dd6d45f73f1315cc8fda02aa40c8f25d6de3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Jeanneret?= Date: Thu, 20 Jan 2022 09:28:27 +0100 Subject: [PATCH] Ensure we get a fully updated venv This would allow to re-use an existing environment, while ensuring we're up-to-date with the latest libs, utils and dependencies. Change-Id: Ia1443eaad4a1f8b9183005c49c22a9f0ee638924 --- roles/oooci-build-images/tasks/pre.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/roles/oooci-build-images/tasks/pre.yaml b/roles/oooci-build-images/tasks/pre.yaml index 8e25f9c65..34ad65ac0 100644 --- a/roles/oooci-build-images/tasks/pre.yaml +++ b/roles/oooci-build-images/tasks/pre.yaml @@ -58,6 +58,7 @@ - name: Ensure a recent version of pip is installed pip: + extra_args: '--upgrade' name: "pip>=19.1.1" virtualenv: "{{ workspace }}/venv" virtualenv_command: "{{ ensure_pip_virtualenv_command }}" @@ -65,7 +66,7 @@ - name: Install deps from upper-constraints when: ansible_distribution == 'CentOS' pip: - extra_args: "-c {{ openstack_git_root }}/requirements/upper-constraints.txt" + extra_args: "--upgrade -c {{ openstack_git_root }}/requirements/upper-constraints.txt" requirements: "{{ openstack_git_root }}/{{ item }}/requirements.txt" virtualenv: "{{ workspace }}/venv" virtualenv_command: "{{ ensure_pip_virtualenv_command }}" @@ -78,6 +79,7 @@ - name: pip install tripleo items pip: name: "{{ tripleo_pip_projects }}" + extra_args: "--upgrade" state: present virtualenv: "{{ workspace }}/venv" virtualenv_command: "{{ ensure_pip_virtualenv_command }}"