From c3edb5dface60002d10a24d03de07de3cc960353 Mon Sep 17 00:00:00 2001 From: Jose Luis Franco Arza Date: Mon, 6 Jul 2020 14:36:28 +0200 Subject: [PATCH] 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 18608d156cf3dee8a351d56baeaaadbc795a9200) --- zuul.d/playbooks/pre.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/zuul.d/playbooks/pre.yml b/zuul.d/playbooks/pre.yml index 01a97e461..ac07423c7 100644 --- a/zuul.d/playbooks/pre.yml +++ b/zuul.d/playbooks/pre.yml @@ -6,6 +6,10 @@ path: "{{ ansible_user_dir }}/zuul-output/logs" state: directory + - name: Ensure virtualenv is available + include_role: + name: ensure-virtualenv + - name: Setup bindep pip: name: "bindep"