X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=scripts%2Finstall-openmano.sh;h=7d1df99a2157f7dedfaa68d3a7f135639d14cc9b;hb=6082b7d161e7ccfbb38c1b7938c88c2619b8f690;hp=74bc0a593a31e413ceefaec9ca4642b253410ff7;hpb=751a4ef6a5853c1cafb352ff1800793c4713667f;p=osm%2FRO.git diff --git a/scripts/install-openmano.sh b/scripts/install-openmano.sh index 74bc0a59..7d1df99a 100755 --- a/scripts/install-openmano.sh +++ b/scripts/install-openmano.sh @@ -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,11 +253,15 @@ 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 pyvcloud==18.2.2 || exit 1 - pip install progressbar || exit 1 - pip install prettytable || exit 1 - pip install pyvmomi || exit 1 + pip2 install pip==9.0.3 || exit 1 # --upgrade pip install pip 10 that does not work + pip2 install pyvcloud==19.1.1 || exit 1 + pip2 install progressbar || exit 1 + pip2 install prettytable || exit 1 + pip2 install pyvmomi || exit 1 + + # required for OpenNebula connector + pip2 install untangle || exit 1 + pip2 install -e git+https://github.com/python-oca/python-oca#egg=oca || exit 1 # required for AWS connector [ "$_DISTRO" == "Ubuntu" ] && install_packages "python-boto" @@ -328,7 +332,7 @@ then [ "$_DISTRO" == "Ubuntu" ] && install_packages "tox debhelper python-bitarray python-lxml python-six" # TODO check packages for CentOS and RedHat [ "$_DISTRO" == "CentOS" -o "$_DISTRO" == "Red" ] && install_packages "tox debhelper python-bitarray python-lxml python-six" - pip install --upgrade stdeb pyangbind || exit 1 + pip2 install --upgrade stdeb pyangbind || exit 1 fi su $SUDO_USER -c "make -C ${BASEFOLDER}/IM all" dpkg -i ${BASEFOLDER}/IM/deb_dist/python-osm-im*.deb ${BASEFOLDER}/IM/pyangbind/deb_dist/*.deb \ @@ -365,7 +369,7 @@ then # TODO check if that is the name in CentOS and RedHat [ "$_DISTRO" == "CentOS" -o "$_DISTRO" == "Red" ] && install_packages \ "libmysqlclient-dev python-cffi python-packaging python-pkgconfig python-pycparser libssl-dev libffi-dev" - pip install --upgrade stdeb setuptools-version-command || exit 1 + pip2 install --upgrade stdeb setuptools-version-command || exit 1 fi su $SUDO_USER -c "make -C ${BASEFOLDER}/openvim lite" dpkg -i ${BASEFOLDER}/openvim/.build/python-lib-osm-openvim*.deb