From 7417aef9bc2039466b5339f2ac9463e305decaf8 Mon Sep 17 00:00:00 2001 From: Alfredo Moralejo Date: Wed, 14 Aug 2019 10:49:44 +0200 Subject: [PATCH] Use upper-constraints when installing packstack from source Currently, it's not using the constraints file so we may use different versions that other services. Change-Id: I3f8eb965b6f08ddf6c0bc89a53e051e43047aecb --- run_tests.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/run_tests.sh b/run_tests.sh index c9b9ed04b..055ae41b4 100755 --- a/run_tests.sh +++ b/run_tests.sh @@ -17,6 +17,8 @@ export PATH=$PATH:/usr/local/sbin:/usr/sbin SCENARIO=${SCENARIO:-scenario001} +BRANCH=master + # We could want to override the default repositories or install behavior INSTALL_FROM_SOURCE=${INSTALL_FROM_SOURCE:-true} MANAGE_REPOS=${MANAGE_REPOS:-true} @@ -268,7 +270,7 @@ fi # Setup packstack if [ "${INSTALL_FROM_SOURCE}" = true ]; then - $SUDO $PIP install --prefix=/usr . + $SUDO $PIP install --ignore-installed -c https://opendev.org/openstack/requirements/raw/branch/$BRANCH/upper-constraints.txt --prefix=/usr . # In Fedora when running with sudo gems are installed at /usr/local/bin/ even when GEM_HOME/GEM_BIN_DIR are set if [ "${PKG_MGR}" = "dnf" ]; then export GEM_BIN_DIR=/usr/local/bin/