Ensure virtualenv is installed.

As part of the cleanup test node python spec [1], the
pip and virtualenv elements were removed from the
infra image builds. Therefore, it's the zuul job itself
the one which needs to make sure virtualenv is installed.

This patch installs virtualenv using the generic zuul
role ensurei-virtualenv.

[1] - https://docs.opendev.org/opendev/infra-specs/latest/specs/cleanup-test-node-python.html

Change-Id: Id20ee6bf069f53739f7a5ea7983edf2fc9b445d2
(cherry picked from commit 18608d156c)
This commit is contained in:
Jose Luis Franco Arza 2020-07-06 14:36:28 +02:00 committed by Francesco Pantano
parent 0bc2cad4ee
commit c3edb5dfac
1 changed files with 4 additions and 0 deletions

View File

@ -6,6 +6,10 @@
path: "{{ ansible_user_dir }}/zuul-output/logs" path: "{{ ansible_user_dir }}/zuul-output/logs"
state: directory state: directory
- name: Ensure virtualenv is available
include_role:
name: ensure-virtualenv
- name: Setup bindep - name: Setup bindep
pip: pip:
name: "bindep" name: "bindep"