From 09e1f524d420550179d60950fe441c7e7d509bd7 Mon Sep 17 00:00:00 2001 From: Andrii Ostapenko Date: Mon, 16 Sep 2019 16:39:54 -0500 Subject: [PATCH] Use configurable constraints to install clients Change-Id: Ieb397a688907cc20b8fffafec01416ff9fb68515 --- tools/deployment/baremetal/010-setup-client.sh | 4 +++- tools/deployment/common/setup-client.sh | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/tools/deployment/baremetal/010-setup-client.sh b/tools/deployment/baremetal/010-setup-client.sh index 76bfb90ca8..27da6e43cb 100755 --- a/tools/deployment/baremetal/010-setup-client.sh +++ b/tools/deployment/baremetal/010-setup-client.sh @@ -16,7 +16,9 @@ set -xe -sudo -H -E pip install python-openstackclient python-heatclient python-ironicclient +sudo -H -E pip install \ +-c${UPPER_CONSTRAINTS_FILE:=https://releases.openstack.org/constraints/upper/master} \ +python-openstackclient python-heatclient python-ironicclient sudo -H mkdir -p /etc/openstack cat << EOF | sudo -H tee -a /etc/openstack/clouds.yaml diff --git a/tools/deployment/common/setup-client.sh b/tools/deployment/common/setup-client.sh index 60acf31ff1..bc2ab7908b 100755 --- a/tools/deployment/common/setup-client.sh +++ b/tools/deployment/common/setup-client.sh @@ -17,7 +17,9 @@ set -xe sudo -H -E pip install "cmd2<=0.8.7" -sudo -H -E pip install python-openstackclient python-heatclient --ignore-installed +sudo -H -E pip install \ +-c${UPPER_CONSTRAINTS_FILE:=https://releases.openstack.org/constraints/upper/master} \ +python-openstackclient python-heatclient --ignore-installed sudo -H mkdir -p /etc/openstack sudo -H chown -R $(id -un): /etc/openstack