summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNikos Mimigiannis <nmimi@intracom-telecom.com>2019-06-05 12:31:18 +0300
committerFatih Degirmenci <fdegir@gmail.com>2019-06-12 11:24:08 +0200
commit94fb076f5b0ffd854f229d168d96a5368dfe8be9 (patch)
treedaf0050ee1bf009eaa2fb7a8cf1bae23584b351d
parent33854137d25f97e7763c98825480c0b69c55f603 (diff)
Pin ara version to 0.16.4
The ara module just released an update which changes how the module can be imported. As a result, the xci-deploy script immediately fails when trying to setup the virtualenv. This patch sets ara to its previous version (ara==0.16.4). Change-Id: Ic54d18dc877857389e8b36bbf2e8bf4b70bc2812 Signed-off-by: Nikos Mimigiannis <nmimi@intracom-telecom.com>
-rw-r--r--xci/files/xci-lib.sh2
-rw-r--r--xci/installer/osa/playbooks/configure-opnfvhost.yml1
2 files changed, 2 insertions, 1 deletions
diff --git a/xci/files/xci-lib.sh b/xci/files/xci-lib.sh
index 75e957f9..ef7697f6 100644
--- a/xci/files/xci-lib.sh
+++ b/xci/files/xci-lib.sh
@@ -189,7 +189,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 -c $osa_uc ara virtualenv pip setuptools shade ansible==$XCI_ANSIBLE_PIP_VERSION ansible-lint==3.4.21
+ pip -q install --upgrade -c $uc -c $osa_uc ara==0.16.4 virtualenv pip setuptools shade 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"
diff --git a/xci/installer/osa/playbooks/configure-opnfvhost.yml b/xci/installer/osa/playbooks/configure-opnfvhost.yml
index 4fc966a3..07ad683b 100644
--- a/xci/installer/osa/playbooks/configure-opnfvhost.yml
+++ b/xci/installer/osa/playbooks/configure-opnfvhost.yml
@@ -152,6 +152,7 @@
- name: Install ARA callback plugin in OSA virtualenv
pip:
name: ara
+ version: 0.16.4
state: present
extra_args: '-c https://raw.githubusercontent.com/openstack/requirements/{{ requirements_git_install_branch }}/upper-constraints.txt'
executable: '/opt/ansible-runtime/bin/pip'