Add ensure-pip role

We've recently started getting Ansible pip error as follows:

ModuleNotFoundError: No module named 'pkg_resources'

This happens because we install crudini and iniparse from GitHub
source using Ansible's pip module in our Ansible roles, and Ansible's
pip module needs the system pip to be preconfigured (the exact
details are murkey - why this started happenig now is also a mystery).

This patch fixes that by adding the ensure-pip to our playbook. It
also renamed the plabook to be more consisten with other openstack
projects.

Change-Id: I3645d22afab1006e11cce22f42774ebea164998f
This commit is contained in:
Artom Lifshitz 2020-06-19 13:26:58 -04:00
parent 61d852056d
commit 7f8defa653
2 changed files with 2 additions and 1 deletions

View File

@ -39,7 +39,7 @@
Devstack multinode job.
required-projects:
openstack/whitebox-tempest-plugin
pre-run: playbooks/whitebox.yaml
pre-run: playbooks/whitebox/pre.yaml
irrelevant-files:
- ^test-requirements.txt$
vars:

View File

@ -1,4 +1,5 @@
- hosts: all
roles:
- ensure-pip
- whitebox-common
- whitebox-nova-compute