replacing ocata Openstack libraries by pike
[osm/RO.git] / scripts / install-openmano.sh
index 5dd66c0..54896c8 100755 (executable)
@@ -224,7 +224,7 @@ then
         "#####        UPDATE REPOSITORIES                            #####\n"\
         "#################################################################"
     [ "$_DISTRO" == "Ubuntu" ] && apt-get update -y &&
-        add-apt-repository -y cloud-archive:ocata && apt-get update -y
+        add-apt-repository -y cloud-archive:pike && apt-get update -y
 
     [ "$_DISTRO" == "CentOS" -o "$_DISTRO" == "Red" ] && yum check-update -y
     [ "$_DISTRO" == "CentOS" ] && yum install -y epel-release
@@ -253,12 +253,16 @@ then
     [ "$_DISTRO" == "CentOS" -o "$_DISTRO" == "Red" ] && easy_install -U bottle
 
     # required for vmware connector TODO move that to separete opt in install script
-    pip install --upgrade pip || exit 1
+    pip install pip==9.0.3 || exit 1   #  --upgrade pip    install pip 10 that does not work
     pip install pyvcloud==19.1.1 || exit 1
     pip install progressbar || exit 1
     pip install prettytable || exit 1
     pip install pyvmomi || exit 1
 
+    # required for OpenNebula connector
+    pip install untangle || exit 1
+    pip install -e git+https://github.com/python-oca/python-oca#egg=oca || exit 1
+
     # required for AWS connector
     [ "$_DISTRO" == "Ubuntu" ] && install_packages "python-boto"
     [ "$_DISTRO" == "CentOS" -o "$_DISTRO" == "Red" ] && install_packages "python-boto"  #TODO check if at Centos it exists with this name, or PIP should be used