summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkos Chandras <mchandras@suse.de>2018-06-04 11:31:46 +0100
committerMarkos Chandras <mchandras@suse.de>2018-06-04 11:35:04 +0100
commit5c15c8fe84d4f7e878266fa3a9e98704ab62ddfb (patch)
treec669f6d29d68751c553d30ff3595413d1ff05ba5
parent9d9d9a4d6031fe795b8d3dbd71250f676a4180d4 (diff)
xci: xci-lib.sh: Use the OSA requirements file for pip components
OpenStack-Ansible maintains a requirements file which ensure that a working combination of pip/setuptools/wheels/virtualenv can be mixed up with distro packages so it's beneficial to take that into consideration when building our environment. Change-Id: Ic5398de3e464e1526f8d9fb6b6460907ac30084a Signed-off-by: Markos Chandras <mchandras@suse.de>
-rw-r--r--xci/files/xci-lib.sh5
1 files changed, 2 insertions, 3 deletions
diff --git a/xci/files/xci-lib.sh b/xci/files/xci-lib.sh
index 7af0f236..f55701a2 100644
--- a/xci/files/xci-lib.sh
+++ b/xci/files/xci-lib.sh
@@ -31,6 +31,7 @@ function install_ansible() {
# Use the upper-constraints file from the pinned requirements repository.
local uc="https://raw.githubusercontent.com/openstack/requirements/${OPENSTACK_REQUIREMENTS_VERSION}/upper-constraints.txt"
+ local osa_uc="https://raw.githubusercontent.com/openstack/openstack-ansible/${OPENSTACK_OSA_VERSION}/global-requirement-pins.txt"
local install_map
declare -A PKG_MAP
@@ -154,7 +155,7 @@ function install_ansible() {
# We are inside the virtualenv now so we should be good to use pip and python from it.
pip -q install --upgrade pip==9.0.3 # We need a version which supports the '-c' parameter
- pip -q install --upgrade -c $uc ara virtualenv pip setuptools ansible==$XCI_ANSIBLE_PIP_VERSION ansible-lint==3.4.21
+ pip -q install --upgrade -c $uc -c $osa_uc ara virtualenv pip setuptools ansible==$XCI_ANSIBLE_PIP_VERSION ansible-lint==3.4.21
ara_location=$(python -c "import os,ara; print(os.path.dirname(ara.__file__))")
export ANSIBLE_CALLBACK_PLUGINS="/etc/ansible/roles/plugins/callback:${ara_location}/plugins/callbacks"
@@ -162,8 +163,6 @@ function install_ansible() {
ansible_lint() {
set -eu
- # Use the upper-constraints file from the pinned requirements repository.
- local uc="https://raw.githubusercontent.com/openstack/requirements/${OPENSTACK_REQUIREMENTS_VERSION}/upper-constraints.txt"
local playbooks_dir=(xci/playbooks xci/installer/osa/playbooks xci/installer/kubespray/playbooks)
# Extract role from scenario information
local testing_role=$(sed -n "/^- scenario: ${DEPLOY_SCENARIO}/,/^$/p" ${XCI_PATH}/xci/opnfv-scenario-requirements.yml | grep role | rev | cut -d '/' -f -1 | rev)