From 13ac09b3208cfb89d855a5e70f8f33681785cc17 Mon Sep 17 00:00:00 2001 From: Federico Ressi Date: Tue, 28 Jan 2020 11:37:32 +0100 Subject: [PATCH] Make sure Python 3 is installed before running DevStack Change-Id: I6b7dba87f40c27d599edcb3c2650f7a670084f5c --- devstack/vagrant/provision.bash | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/devstack/vagrant/provision.bash b/devstack/vagrant/provision.bash index de47d9458..eedf8bd9a 100755 --- a/devstack/vagrant/provision.bash +++ b/devstack/vagrant/provision.bash @@ -31,6 +31,12 @@ if ! which git; then sudo yum install -y git fi +if ! which python3; then + echo "Install Git" + # DevStack is not able to install Python3 on its own on CentOS 7 + sudo yum install -y python3 +fi + if ! [ -d "${DEVSTACK_SRC_DIR}" ]; then echo "Download DevStack source files from ${DEVSTACK_GIT_REPO}#${DEVSTACK_GIT_BRANCH}"