From d49a023299f209fe98d2b8ccf272dcf979cf38e1 Mon Sep 17 00:00:00 2001 From: Martin Kopec Date: Tue, 17 Jan 2023 23:54:07 +0000 Subject: [PATCH] consistency script needs to respect constraints The tools/consistency.sh needs to respect upper constraints when installing plugins, otherwise we may install newer version of dependecies which aren't recommended by the constraints and that may lead to other issues. Change-Id: I29c3a3020f3d8df911b7f0a0fe91d391d3a52bba --- tools/consistency.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/tools/consistency.sh b/tools/consistency.sh index 2da11724..68f9a546 100755 --- a/tools/consistency.sh +++ b/tools/consistency.sh @@ -15,6 +15,8 @@ set -x +UPPER_CONSTRAINTS_FILE="https://opendev.org/openstack/requirements/raw/branch/master/upper-constraints.txt" + # Prints help function usage { SCRIPT_NAME="basename ${BASH_SOURCE[0]}" @@ -77,10 +79,10 @@ if [[ -z $SFSDIR ]]; then git clone https://opendev.org/openstack/manila-tempest-plugin $SFSDIR fi -pip install $TEMPESTDIR -pip install $DNSDIR -pip install $ORCHESTRATIONDIR -pip install $SFSDIR +pip install -c ${UPPER_CONSTRAINTS_FILE} $TEMPESTDIR +pip install -c ${UPPER_CONSTRAINTS_FILE} $DNSDIR +pip install -c ${UPPER_CONSTRAINTS_FILE} $ORCHESTRATIONDIR +pip install -c ${UPPER_CONSTRAINTS_FILE} $SFSDIR export PYTHONPATH=$TEMPESTDIR:$DNSDIR:$ORCHESTRATIONDIR:$SFSDIR