From 5405cfecb9197d0608ca008e76d4e9cf41e18a18 Mon Sep 17 00:00:00 2001 From: Mark Goddard Date: Tue, 26 Nov 2019 10:54:22 +0000 Subject: [PATCH] CI: Use python3 for openstack clients This switches our test jobs to use python 3 for the installation of OpenStack clients used to test the control plane. Change-Id: I6bf0a315cef174c42a69db3a7d57f602b27ac92c Related: blueprint python 3 --- tools/setup_gate.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tools/setup_gate.sh b/tools/setup_gate.sh index 1e432b050f..fca6fb670f 100755 --- a/tools/setup_gate.sh +++ b/tools/setup_gate.sh @@ -10,7 +10,10 @@ GIT_PROJECT_DIR=$(mktemp -d) function setup_openstack_clients { # Prepare virtualenv for openstack deployment tests - virtualenv ~/openstackclient-venv + if [[ "debian" == $BASE_DISTRO ]]; then + sudo apt -y install python3-venv + fi + python3 -m venv ~/openstackclient-venv ~/openstackclient-venv/bin/pip install -U pip ~/openstackclient-venv/bin/pip install python-openstackclient ~/openstackclient-venv/bin/pip install python-heatclient