Ensure pip is installed locally

Recent changes to the base nodepool images removed the system-wide
installation of pip and virtualenv. As a result of this, some
requirements-check jobs are failing with an error that pip could not be
found.

This adds the ensure-pip role as part of pre_tasks in our
requirements-check playbook.

Change-Id: Id4969156383545eb94462677e3321b89c1160b48
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
This commit is contained in:
Sean McGinnis 2020-06-17 16:19:06 -05:00
parent 1b6e378b46
commit 74a5bed896
No known key found for this signature in database
GPG Key ID: CE7EE4BFAF8D70C8

View File

@ -1,4 +1,9 @@
- hosts: all - hosts: all
pre_tasks:
- name: Ensure pip
include_role:
name: ensure-pip
tasks: tasks:
- name: Install openstack_requirements - name: Install openstack_requirements
command: "pip3 install --user {{ zuul.projects['opendev.org/openstack/requirements'].src_dir }}" command: "pip3 install --user {{ zuul.projects['opendev.org/openstack/requirements'].src_dir }}"