Install needed packages for Azure 38/7438/2
authortierno <alfonso.tiernosepulveda@telefonica.com>
Tue, 30 Apr 2019 12:20:38 +0000 (12:20 +0000)
committertierno <alfonso.tiernosepulveda@telefonica.com>
Thu, 23 May 2019 09:28:47 +0000 (09:28 +0000)
Change-Id: If163eefe22ac0c08da649edf10aa8ab4b5e7b650
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
Dockerfile
docker/Dockerfile-local
osm_ro/vim_thread.py
requirements.txt
scripts/install-openmano.sh
scripts/python-osm-ro.postinst

index ebbd0ac..c5d8518 100644 (file)
@@ -34,6 +34,7 @@ RUN  apt-get update && \
   DEBIAN_FRONTEND=noninteractive apt-get -y install python-novaclient python-keystoneclient python-glanceclient python-cinderclient python-neutronclient python-networking-l2gw && \
   DEBIAN_FRONTEND=noninteractive pip install -U progressbar pyvmomi pyvcloud==19.1.1 && \
   DEBIAN_FRONTEND=noninteractive pip install -U fog05rest && \
+  DEBIAN_FRONTEND=noninteractive pip install -U azure && \
   DEBIAN_FRONTEND=noninteractive apt-get -y install python-argcomplete python-bottle python-cffi python-packaging python-paramiko python-pkgconfig libmysqlclient-dev libssl-dev libffi-dev python-mysqldb && \
   DEBIAN_FRONTEND=noninteractive apt-get -y install python-logutils python-openstackclient python-openstacksdk && \
   DEBIAN_FRONTEND=noninteractive pip install untangle && \
index 1bd50a4..5d1e02a 100644 (file)
@@ -11,6 +11,7 @@ RUN apt-get update && \
     DEBIAN_FRONTEND=noninteractive pip2 install pip==9.0.3 && \
     DEBIAN_FRONTEND=noninteractive pip2 install -U progressbar pyvmomi pyvcloud==19.1.1 && \
     DEBIAN_FRONTEND=noninteractive pip2 install -U fog05rest && \
+    DEBIAN_FRONTEND=noninteractive pip2 install -U azure && \
     DEBIAN_FRONTEND=noninteractive apt-get -y install python-requests && \
     DEBIAN_FRONTEND=noninteractive apt-get -y install python-novaclient python-keystoneclient python-glanceclient python-cinderclient python-neutronclient python-networking-l2gw && \
     DEBIAN_FRONTEND=noninteractive apt-get -y install python-cffi libmysqlclient-dev libssl-dev libffi-dev python-mysqldb && \
index 44c6ea1..d229fa1 100644 (file)
@@ -87,6 +87,7 @@ import vimconn_opennebula
 import vimconn_openstack
 import vimconn_vmware
 import vimconn_fos
+import vimconn_azure
 import yaml
 from db_base import db_base_Exception
 from lib_osm_openvim.ovim import ovimException
@@ -102,6 +103,7 @@ vim_module = {
     "openstack": vimconn_openstack,
     "vmware": vimconn_vmware,
     "fos": vimconn_fos
+    "azure": vimconn_azure,
 }
 
 
index 79cb11f..113f827 100644 (file)
@@ -21,3 +21,4 @@ boto
 genisoimage
 untangle
 oca
+azure
index a34a0aa..398317d 100755 (executable)
@@ -280,6 +280,10 @@ then
     [ "$_DISTRO" == "CentOS" -o "$_DISTRO" == "Red" ] && install_packages "python-devel" && easy_install \
         python-novaclient python-keystoneclient python-glanceclient python-neutronclient python-cinderclient \
         python-openstackclient python-networking-l2gw #TODO revise if gcc python-pip is needed
+
+    # required for Azure
+    pip2 install azure
+    
 fi  # [[ -z "$NO_PACKAGES" ]]
 
 if [[ -z $NOCLONE ]]; then
index a2f632a..32c8903 100755 (executable)
@@ -30,6 +30,7 @@ pip2 install --upgrade pyvmomi
 pip2 install --upgrade pyang pyangbind
 pip2 install untangle
 pip2 install -e git+https://github.com/python-oca/python-oca#egg=oca
+pip2 install azure
 
 # Packages required for fos connector
 pip2 install fog05rest