From: Antonio Marsico Date: Fri, 19 Mar 2021 17:54:57 +0000 (+0100) Subject: Fixed Openstack SDK and client version issues X-Git-Tag: v9.1.1 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=4a774d99d9df701888ff7000f7786f80c8a4d9c0;p=osm%2Fdevops.git Fixed Openstack SDK and client version issues Change-Id: I4f7ad3dfd137b2e621609b1a1062392b34be0e43 Signed-off-by: Antonio Marsico (cherry picked from commit ef3b236c6484787152a268fcacfbacb25a4bbbca) --- diff --git a/installers/full_install_osm.sh b/installers/full_install_osm.sh index 7100777b..5eee0232 100755 --- a/installers/full_install_osm.sh +++ b/installers/full_install_osm.sh @@ -1424,7 +1424,7 @@ function install_to_openstack() { fi # Install Pip for Python3 - $WORKDIR_SUDO apt install -y python3-pip + $WORKDIR_SUDO apt install -y python3-pip python3-venv $WORKDIR_SUDO -H LC_ALL=C python3 -m pip install -U pip # Create a venv to avoid conflicts with the host installation @@ -1432,9 +1432,9 @@ function install_to_openstack() { source $OPENSTACK_PYTHON_VENV/bin/activate - # Install Ansible, OpenStack client and SDK + # Install Ansible, OpenStack client and SDK, latest openstack version supported is Train python -m pip install -U wheel - python -m pip install -U python-openstackclient "openstacksdk>=0.12.0,<1" "ansible>=2.10,<2.11" + python -m pip install -U "python-openstackclient<=4.0.2" "openstacksdk>=0.12.0,<=0.36.2" "ansible>=2.10,<2.11" # Install the Openstack cloud module (ansible>=2.10) ansible-galaxy collection install openstack.cloud