osm/openvim.git
7 years agoMerge "Refactor ssh commands" into v2.0
tierno [Fri, 14 Jul 2017 07:47:10 +0000 (09:47 +0200)]
Merge "Refactor ssh commands" into v2.0

7 years agoRefactor ssh commands 24/2024/8
mirabal [Mon, 10 Jul 2017 10:45:56 +0000 (05:45 -0500)]
Refactor ssh commands

Change-Id: Ie53ada0071ac52530c9ddb4f3e10d282ceb81c1b
Signed-off-by: mirabal <leonardo.mirabal@altran.com>
7 years agoupdate jenkins pipeline 11/2011/3
Mike Marchetti [Fri, 23 Jun 2017 21:12:20 +0000 (17:12 -0400)]
update jenkins pipeline

Signed-off-by: Mike Marchetti <mmarchetti@sandvine.com>
Change-Id: I322f415d9ed1395c32780181351a3b01434592e6

7 years agoUnify ssh_command. Allow remote ssh with paramiko and localhost with subprocess 16/2016/1
tierno [Mon, 3 Jul 2017 15:04:54 +0000 (17:04 +0200)]
Unify ssh_command. Allow remote ssh with paramiko and localhost with subprocess
Get real IP address from name for the vxlan remote_ip

Change-Id: I8363654e6402b81c2e7ac513ab32e6a5aa325b56
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
7 years agoProvider network and dnsmaq conf improvment 43/1943/7
mirabal [Mon, 5 Jun 2017 14:19:26 +0000 (09:19 -0500)]
Provider network and dnsmaq conf improvment

When dhcp server is launch, now dns servers and default routes can be progated to a vm.
A qrouter is created inside a namespace allowing connections with a provider network and a openvim tenant network.

Change-Id: If2becc010b2886493396c9f6b363980a846a04da
Signed-off-by: mirabal <leonardo.mirabal@altran.com>
7 years agoFix thread start during service start. 87/1987/1 ssh_command
mirabal [Thu, 29 Jun 2017 15:04:21 +0000 (10:04 -0500)]
Fix thread start during service start.

Change-Id: I6dce3a6ead234a591b5acffa470248c1762a6bb4
Signed-off-by: mirabal <leonardo.mirabal@altran.com>
7 years agoFix 295:Check conectivity btw nodes when net type is ovs 32/1932/3
mirabal [Wed, 14 Jun 2017 10:42:30 +0000 (05:42 -0500)]
Fix 295:Check conectivity btw nodes when net type is ovs

Change-Id: Ic956b7994c75c66205284b851fe147c699649836
Signed-off-by: mirabal <leonardo.mirabal@altran.com>
7 years agoEmpty disk support added to openvim 18/1918/2
mirabal [Wed, 31 May 2017 15:52:22 +0000 (10:52 -0500)]
Empty disk support added to openvim

Change-Id: Ib54e4da5bfdeb4b974e8b8e0d260977fa7793fdc
Signed-off-by: mirabal <leonardo.mirabal@altran.com>
7 years agoChanges to fix bugs in the support of topologies of 1 socket with hyperthreading 15/1915/1
garciadeblas [Thu, 1 Jun 2017 09:40:13 +0000 (11:40 +0200)]
Changes to fix bugs in the support of topologies of 1 socket with hyperthreading

Change-Id: If9ec1a223d7739bb63078c58171a05aec34ef2ae
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
7 years agoMinor change 85/1885/1 v2.0.1
tierno [Fri, 26 May 2017 12:37:32 +0000 (14:37 +0200)]
Minor change

Change-Id: I6d46c08df3ee81a4c897bfb23232c891519e4064
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
7 years agoenhance log message errors when fails at starting 83/1883/1
tierno [Fri, 26 May 2017 11:16:40 +0000 (13:16 +0200)]
enhance log message errors when fails at starting

Change-Id: Ia308ef97218e0f10d59d22767cbdd3d2db2188a0
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
7 years agoadjust installer to get latest stable tag 82/1882/1
tierno [Fri, 26 May 2017 09:20:23 +0000 (11:20 +0200)]
adjust installer to get latest stable tag

Change-Id: Ic6e88dcba6f1c0b1138462dd101c5c5715c8b284
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
7 years agoFix minor bug with bridge_data and ovs nets 80/1880/2
mirabal [Fri, 26 May 2017 09:50:27 +0000 (11:50 +0200)]
Fix minor bug with bridge_data and ovs nets

- bridge_data nets now create properly the linux bridge
- fix minor vm naming issue

Change-Id: I6ecb5d9e7445398634581a98543ddf8ffa985a24
Signed-off-by: mirabal <leonardo.mirabal@altran.com>
7 years agoAllow specifying ssh key file for compute nodes and network controller 66/1866/5
tierno [Wed, 24 May 2017 14:54:33 +0000 (16:54 +0200)]
Allow specifying ssh key file for compute nodes and network controller
Having equal host-list output and host-add descriptor
Ignore console input error when launching as a service
Register network error upon dhcp controller error
fix configure-dhcp-server-UBUNTU16.0.4.sh help error

Change-Id: I30b5af3b25d7f2f86a75a4502af10b5e16fd3202
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
7 years agofix minor bugs related with dhcp 74/1874/2
mirabal [Thu, 25 May 2017 12:51:15 +0000 (14:51 +0200)]
fix minor bugs related with  dhcp

- get_free_ip_from_range() was calculating wrong the free ip for if first and last ip is given and the range is lower than the CIDR
- Namespace loopback up must be forced.
- is_dhcp_port_free() mysql query fix

Change-Id: I1bbf9ed2c23945accc16c75d4e75da4b62ce745c
Signed-off-by: mirabal <leonardo.mirabal@altran.com>
7 years agoMerge "Fix minor bug when iface is not connected to net"
tierno [Fri, 19 May 2017 10:16:06 +0000 (12:16 +0200)]
Merge "Fix minor bug when iface is not connected to net"

7 years agoFix minor bug when iface is not connected to net 57/1857/1
mirabal [Fri, 19 May 2017 10:11:27 +0000 (12:11 +0200)]
Fix minor bug when iface is not connected to net

Change-Id: I3242df55ace420abeda82368f5dcd7ecc1ffedda
Signed-off-by: mirabal <leonardo.mirabal@altran.com>
7 years agofix small bug at used bridge networks checking and dhcp 54/1854/1
tierno [Wed, 17 May 2017 12:04:05 +0000 (12:04 +0000)]
fix small bug at used bridge networks checking and dhcp

Change-Id: I3506d4faa58af81f79f6e72300958fec6bfc8db0
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
7 years agofix bug, Bandwith showed wrong listing a VM 53/1853/2
mirabal [Thu, 18 May 2017 14:37:24 +0000 (16:37 +0200)]
fix bug, Bandwith showed wrong listing a VM

Change-Id: I8f0ea2b90612934a7399123b1a5355d8c94d3a49
Signed-off-by: mirabal <leonardo.mirabal@altran.com>
7 years agoFix bug, check VF is active before destroy 51/1851/1
mirabal [Thu, 18 May 2017 12:16:26 +0000 (14:16 +0200)]
Fix bug, check VF is active before destroy

Change-Id: Id589ab96fad5a4c1af876e03a0f27586b2af7695
Signed-off-by: mirabal <leonardo.mirabal@altran.com>
7 years agofix issue at install-openvim.sh 10/1810/1
tierno [Thu, 11 May 2017 14:37:05 +0000 (16:37 +0200)]
fix issue at install-openvim.sh

Change-Id: Id8cf3ec98ffd9a2b1a758ff2807b9526f0b52f64
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
7 years agoFix minor bugs in dhcp service during vm deployment 96/1796/2
mirabal [Tue, 9 May 2017 09:01:06 +0000 (11:01 +0200)]
Fix minor bugs in dhcp service during vm deployment

Change-Id: Iaa0fdc083836242c8b713b09d4875fd05450061a
Signed-off-by: mirabal <leonardo.mirabal@altran.com>
7 years agofix issues at installation scripts. Change at initopenvim 83/1783/4
tierno [Mon, 8 May 2017 13:45:32 +0000 (15:45 +0200)]
fix issues at installation scripts. Change at initopenvim

Change-Id: I9837ada6b892fbcaa58a64bd1601593064b16b57
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
7 years agofix some errors 86/1786/3
tierno [Mon, 8 May 2017 15:21:04 +0000 (17:21 +0200)]
fix some errors

Change-Id: Ie6691ef51e9479f8f3ca5fad8f45a3871f340b78
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
7 years agoChanges to import dynamically modules in ovim.py 03/1703/2
garciadeblas [Wed, 26 Apr 2017 15:55:43 +0000 (17:55 +0200)]
Changes to import dynamically modules in ovim.py

Change-Id: Iccea5d9ab6c87423d37fa0cb345d8f97cd0f30c9
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
7 years agoEnhance install-openvim script to add same options as in RO 72/1772/1
tierno [Fri, 5 May 2017 13:51:47 +0000 (15:51 +0200)]
Enhance install-openvim script to add same options as in RO

Change-Id: Ib50749c25be41f7387d3a5bed686e9b720e0a72a
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
7 years agofix bugs at host_thread; start net controller thread; sharing same variables db_lock... 56/1756/1
tierno [Thu, 4 May 2017 16:44:40 +0000 (18:44 +0200)]
fix bugs at host_thread; start net controller thread; sharing same variables db_lock and db between the two ovim instances; logger name at openflow thread

Change-Id: I02cbd50a0c9922764a945490cb885bb63c75e9c0
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
7 years agoAvoid at init_vim_db.sh prompt user for confirmation with option --createdb 54/1754/1
tierno [Thu, 4 May 2017 13:27:13 +0000 (15:27 +0200)]
Avoid at init_vim_db.sh prompt user for confirmation with option --createdb

Change-Id: I24334d9e3836322eae9bf8d805140f2111b40094
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
7 years agoAdd region to nets and allow ovelapping vlan at each region 46/1746/2
tierno [Wed, 3 May 2017 15:42:52 +0000 (17:42 +0200)]
Add region to nets and allow ovelapping vlan at each region

Change-Id: If5ee574394796c6b6d52d07ec5929851cfd6e813
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
7 years agoMerge "added createdb option to init_vim_db.sh"
tierno [Wed, 3 May 2017 15:45:06 +0000 (17:45 +0200)]
Merge "added createdb option to init_vim_db.sh"

7 years agoadded createdb option to init_vim_db.sh 44/1744/1
tierno [Wed, 3 May 2017 12:02:30 +0000 (14:02 +0200)]
added createdb option to init_vim_db.sh

Change-Id: I3eeeafa286f64f330955ebddfb260370bbfd3cc1
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
7 years agoFix bug installing openvim and db generation 02/1702/11
mirabal [Wed, 26 Apr 2017 10:44:14 +0000 (12:44 +0200)]
Fix bug installing openvim and db generation

Change-Id: Ia60430c1d372a8915321295752b5f3b2e372001b
Signed-off-by: mirabal <leonardo.mirabal@altran.com>
7 years agochanges at migrate_vim_db to use database version as a parameter and not use openvim... 18/1718/6
tierno [Thu, 27 Apr 2017 16:49:37 +0000 (18:49 +0200)]
changes at migrate_vim_db to use database version as a parameter and not use openvim version

Change-Id: I3d39d04020e551b127526fca24671176a932c806
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
7 years agobetter parsing of user answers 99/1699/3
tierno [Wed, 26 Apr 2017 13:09:21 +0000 (15:09 +0200)]
better parsing of user answers

Change-Id: I21c91e55080e1435ce3fda8617f2f6f23a2c3c7a
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
7 years agofix issues running from source 00/1700/4
tierno [Wed, 26 Apr 2017 13:09:48 +0000 (15:09 +0200)]
fix issues running from source

Change-Id: I512eebfd0c1531d22073a2389073fb1bcf1d0961
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
7 years agoMerge branch 'v2.0' 98/1698/1
tierno [Wed, 26 Apr 2017 13:06:04 +0000 (15:06 +0200)]
Merge branch 'v2.0'

Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
7 years agoMerge "Fix import problems of vimconnector" into v2.0 v2.0.0
tierno [Tue, 25 Apr 2017 16:31:38 +0000 (18:31 +0200)]
Merge "Fix import problems of vimconnector" into v2.0

7 years agoFix import problems of vimconnector 85/1685/1
tierno [Tue, 25 Apr 2017 16:07:08 +0000 (18:07 +0200)]
Fix import problems of vimconnector

Change-Id: I8fc6771673257c9db489fd4ccdaef64b8916965d
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
7 years agoUpdated Makefile to install pip-setuptools as user 66/1666/1
garciadeblas [Mon, 24 Apr 2017 16:56:07 +0000 (18:56 +0200)]
Updated Makefile to install pip-setuptools as user

Change-Id: Ib0c67d39d3d49996aef63212b615ae8f5ae36dac
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
7 years agofix issue at install-db-server.sh 64/1664/2
tierno [Mon, 24 Apr 2017 16:37:49 +0000 (18:37 +0200)]
fix issue at install-db-server.sh

Change-Id: I80474cce8ea2572a3532e8c4479b20f45f2a185c
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
7 years agoChanges in Makefile to upgrade setuptools 63/1663/1
garciadeblas [Mon, 24 Apr 2017 15:07:32 +0000 (17:07 +0200)]
Changes in Makefile to upgrade setuptools

Change-Id: I8f1eed00879854899816bd4a5b74017963c2345d
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
7 years agoJenkinsfile updated to use agent any for the debian stage 61/1661/1
garciadeblas [Mon, 24 Apr 2017 13:43:04 +0000 (15:43 +0200)]
Jenkinsfile updated to use agent any for the debian stage

Change-Id: I9357fb64126b26d13164f2ae81c4a97c339e8f5c
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
7 years agoFix issue at option updatedb 56/1656/2
tierno [Mon, 24 Apr 2017 10:54:12 +0000 (12:54 +0200)]
Fix issue at option updatedb

Change-Id: I4e172d6e3af78aae9ab19270b9f9fe5bac929ece
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
7 years agoAdded option updatedb to allow preserving current database 54/1654/2
tierno [Mon, 24 Apr 2017 10:30:21 +0000 (12:30 +0200)]
Added option updatedb to allow preserving current database

Change-Id: I119b34af93fe1dabd91e9b6ad0b2759759fe8972
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
7 years agoinstall-db-server enhancement 37/1637/2
tierno [Fri, 21 Apr 2017 14:05:19 +0000 (16:05 +0200)]
install-db-server enhancement

Change-Id: I651ff74f2f79d35356fec6fbb05a3645593ced9d
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
7 years agoUpdated Jenkinsfile using ReleaseOne instead of $RELEASE 51/1651/1
garciadeblas [Mon, 24 Apr 2017 09:18:59 +0000 (11:18 +0200)]
Updated Jenkinsfile using ReleaseOne instead of $RELEASE

Change-Id: I505b2941059ba314d65b2a5ff6eb6502c299fe31
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
7 years agoChanges in Makefile to copy deb packages to .build 50/1650/1
garciadeblas [Mon, 24 Apr 2017 08:58:56 +0000 (10:58 +0200)]
Changes in Makefile to copy deb packages to .build

Change-Id: Idcf584cbe81364d18910cd6761859174da27e99e
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
7 years agoDockerfile updated to include pypi2deb package 49/1649/1
garciadeblas [Mon, 24 Apr 2017 08:41:43 +0000 (10:41 +0200)]
Dockerfile updated to include pypi2deb package

Change-Id: Ie3ca6fe629dc736aef5446715628dcee8520ea59
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
7 years agoDockerfile updated to include additional required packages 48/1648/1
garciadeblas [Mon, 24 Apr 2017 08:36:43 +0000 (10:36 +0200)]
Dockerfile updated to include additional required packages

Change-Id: Ibe0193725475d2232a3992fcb1bc4e140fde9343
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
7 years agoUpdated Dockerfile to include build-essential 47/1647/1
garciadeblas [Mon, 24 Apr 2017 08:25:00 +0000 (10:25 +0200)]
Updated Dockerfile to include build-essential

Change-Id: I10c745f756d63ebb0cc641016d551bc827112ff3
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
7 years agoUpdated Dockerfile and Jenkinsfile to push to openvim FTP folder 46/1646/1
garciadeblas [Mon, 24 Apr 2017 08:15:33 +0000 (10:15 +0200)]
Updated Dockerfile and Jenkinsfile to push to openvim FTP folder

Change-Id: Ic08a1a3d88f3d8e4149b96817f7ae17104b138c6
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
7 years agoPreliminar Jenkinsfile and Dockerfile; not working with agreed debian repo structure 30/1630/1
garciadeblas [Fri, 21 Apr 2017 12:33:32 +0000 (14:33 +0200)]
Preliminar Jenkinsfile and Dockerfile; not working with agreed debian repo structure

Change-Id: I40e57e1e852df51d43a2a2c1d7fe893c765f7272
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
7 years agoMerge branch 'master' into v2.0 28/1628/1
garciadeblas [Fri, 21 Apr 2017 12:15:35 +0000 (14:15 +0200)]
Merge branch 'master' into v2.0

7 years agoFix bug when installing vim_db based on ovim.py version 24/1624/1
garciadeblas [Fri, 21 Apr 2017 10:49:08 +0000 (12:49 +0200)]
Fix bug when installing vim_db based on ovim.py version

Change-Id: I21dfd6e4524d6d7e52902674278e739b5079d360
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
7 years agoFixed imports in ovim.py 22/1622/1
garciadeblas [Fri, 21 Apr 2017 09:12:50 +0000 (11:12 +0200)]
Fixed imports in ovim.py

Change-Id: I1f777e08c894b3149a45ea923257b8bb92b67b21
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
7 years agoFix install_lite to make RO installation from source works; new Makefile rules for... 18/1618/1
garciadeblas [Fri, 21 Apr 2017 05:10:23 +0000 (07:10 +0200)]
Fix install_lite to make RO installation from source works; new Makefile rules for building and cleaning both packages

Change-Id: I8810c7ef7433d1a3c8ba701cd70ab591f6676904
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
7 years agoSupport of debian packaging with versioning for openvim and ovim library; dealing... 09/1609/1
garciadeblas [Thu, 20 Apr 2017 17:21:49 +0000 (19:21 +0200)]
Support of debian packaging with versioning for openvim and ovim library; dealing with openflow exec; inclusion of README.rst for both; service file and postinst file added for openvim

Change-Id: Iaa42a592bf8c372c3429fe6a5e556537ec3c9559
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
7 years agoadded build to gitcommon 02/1602/1
tierno [Thu, 20 Apr 2017 10:13:22 +0000 (12:13 +0200)]
added build to gitcommon

Change-Id: Iab26882c56b7be56cb782ddb93f53a7fe4a22aff
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
7 years agologgin enhancement at host_thread 91/1591/3
tierno [Wed, 19 Apr 2017 17:11:53 +0000 (19:11 +0200)]
loggin enhancement at host_thread

Change-Id: I76a1d8d3d3fad8965d131d474c8cec75725423f4
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
7 years agoModify openvim code structure, improve py package 76/1576/8
mirabal [Mon, 10 Apr 2017 18:05:40 +0000 (20:05 +0200)]
Modify openvim code structure, improve py package

- Move python code to osm_openvim folder
- Python package install the code in a folder called osm_openvim

Change-Id: I09f1cdac84418a6a34ceaec9a69c2315e10296a7
Signed-off-by: mirabal <leonardo.mirabal@altran.com>
7 years agoAdd --uninstall to install-db-server.sh 97/1597/1
mirabal [Thu, 20 Apr 2017 13:18:39 +0000 (15:18 +0200)]
Add --uninstall to install-db-server.sh

- Parameter --uninstall delete existing DB but keeps the user

Change-Id: I374d56776211f0a9fcdd33d166cb4e7dc15de363
Signed-off-by: mirabal <leonardo.mirabal@altran.com>
7 years agologging enhancement at dhcp_thread 21/1521/3
tierno [Thu, 6 Apr 2017 16:58:24 +0000 (18:58 +0200)]
logging enhancement at dhcp_thread

Change-Id: I2bccc3f0b10e6bc456da666be5488989c48758bf
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
7 years agoAdd openflow-port-mapping CLI command 17/1317/3
mirabal [Thu, 16 Mar 2017 10:19:19 +0000 (11:19 +0100)]
Add openflow-port-mapping CLI command

- Add openflow-port-mapping cli command to openvim
- Minor funtion description changes in httpserver

Change-Id: Ib2cf6dfa791f95d3263f38af5d0b7db3d4d29011
Signed-off-by: mirabal <leonardo.mirabal@altran.com>
7 years agoMerge "setup.py fix for non py files during installation"
tierno [Fri, 7 Apr 2017 10:55:28 +0000 (12:55 +0200)]
Merge "setup.py fix for non py files during installation"

7 years agosetup.py fix for non py files during installation 15/1515/1
mirabal [Thu, 6 Apr 2017 09:01:05 +0000 (11:01 +0200)]
setup.py fix for non py files during installation

Change-Id: I6a0d3b4aa01109649a5c85b292dedc28d6e62087
Signed-off-by: mirabal <leonardo.mirabal@altran.com>
7 years agoFixed bug that generated an error when adding a sdn-controller without user or passwo... 13/1513/1
montesmoreno [Thu, 6 Apr 2017 10:07:44 +0000 (10:07 +0000)]
Fixed bug that generated an error when adding a sdn-controller without user or password. These two parameters are optional

Signed-off-by: montesmoreno <pablo.montesmoreno@telefonica.com>
7 years agoAllow several pci for of_port_mapping. Log enhancement 05/1505/1
tierno [Wed, 5 Apr 2017 17:49:24 +0000 (19:49 +0200)]
Allow several pci for of_port_mapping. Log enhancement

Change-Id: Ifbf474da57abf269fd87cb237a05e427d4981d43
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
7 years agoadded some missing packages for floodlight installation 04/1504/1
tierno [Thu, 30 Mar 2017 16:34:38 +0000 (18:34 +0200)]
added some missing packages for floodlight installation

Change-Id: I7c8f3e14f2a277570277bac95bfcb67bfad71f0c
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
7 years agoAdd openflow_conn to setup.py 94/1494/1
mirabal [Tue, 4 Apr 2017 16:03:27 +0000 (18:03 +0200)]
Add openflow_conn to setup.py

Change-Id: I5914299e3391c1d10033165e0cae633b38e9d37a
Signed-off-by: mirabal <leonardo.mirabal@altran.com>
7 years agoNew file setup.py: builds a python package 48/1448/9
mirabal [Fri, 31 Mar 2017 13:15:52 +0000 (15:15 +0200)]
New file setup.py: builds a python package

        - Allow to use all poenvim logic as a library by RO
        - Makefile will generate all the package need it and handle the lib instalation

Change-Id: I9735b130b47bd94fea12037e2b89eb8226d29d0e
Signed-off-by: mirabal <leonardo.mirabal@altran.com>
7 years agoMinor changes to allow SDN connectivity for RO 23/1423/2
montesmoreno [Thu, 30 Mar 2017 11:24:17 +0000 (13:24 +0200)]
Minor changes to allow SDN connectivity for RO

Change-Id: Iaa947aeabe51ce015a3627685c7ee4bae1a36833
Signed-off-by: montesmoreno <pablo.montesmoreno@telefonica.com>
7 years agoOpenflow controller abstract connector 20/1320/13
mirabal [Thu, 16 Mar 2017 16:22:57 +0000 (17:22 +0100)]
Openflow controller abstract connector

- Add openflow_conn abstract impletation for all openflow connectors
- Refactor all existing conenctor to Inherit la clase abstracta
- Now all of connector raise an exeption in case of faliure
- As OF_connector raise an expection, all code that make use of this class now capture the execption.
- Add to ofc DB table last_error and status column
  - Check for each operation if an error exist an update DB ofc status and last error column info

Change-Id: Ia3d3bf63fee79dd18d61aeeb08a983dfcb88b729
Signed-off-by: mirabal <leonardo.mirabal@altran.com>
7 years agofix issue at port deletion and network check ports to know what sdn_controller to... 99/1399/1
tierno [Wed, 29 Mar 2017 13:10:28 +0000 (15:10 +0200)]
fix issue at  port deletion and network check ports to know what sdn_controller to update

Change-Id: Ibad709568acb4fb47ab74ce7a18267dc1c0a0206
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
7 years agoFixed bug that was ommiting the user and password info of the SDN controllers 97/1397/2
montesmoreno [Wed, 29 Mar 2017 11:43:58 +0000 (13:43 +0200)]
Fixed bug that was ommiting the user and password info of the SDN controllers

Change-Id: I90ea692bc7bd4c5689aca9f7165defb251c9e850
Signed-off-by: montesmoreno <pablo.montesmoreno@telefonica.com>
7 years agominor change to avoid deleting a non existing element from dictionary 87/1387/3
montesmoreno [Tue, 28 Mar 2017 13:45:02 +0000 (15:45 +0200)]
minor change to avoid deleting a non existing element from dictionary

Change-Id: Iecdd1aceda92fe5ce1cd4891be5175791c6cfab4
Signed-off-by: montesmoreno <pablo.montesmoreno@telefonica.com>
7 years agofix moving openvim version/date/db_version to ovim 88/1388/1
tierno [Tue, 28 Mar 2017 15:23:15 +0000 (17:23 +0200)]
fix moving openvim version/date/db_version to ovim

Change-Id: If59a7d7d238268c3601e68a5d6feabbf11deed5b
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
7 years agoMove openvim version/date/db_version to ovim 79/1379/1
mirabal [Mon, 27 Mar 2017 16:08:07 +0000 (18:08 +0200)]
Move openvim version/date/db_version to ovim

Change-Id: Ia4740a7eebb09ab537d099dbd79cf44796a7979e
Signed-off-by: mirabal <leonardo.mirabal@altran.com>
7 years agominor logs changes at http for network update openflow rules 00/1300/3
tierno [Wed, 15 Mar 2017 17:09:16 +0000 (18:09 +0100)]
minor logs changes at http for network update openflow rules

Change-Id: Ifce2878f0c71a92ab0fa6d165792d170e7ae553d
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
7 years agominor error at exception launch when no port mapping found at ovim new_external_port 77/1377/2
tierno [Mon, 27 Mar 2017 14:48:32 +0000 (16:48 +0200)]
minor error at exception launch when no port mapping found at ovim new_external_port

Change-Id: Ica397ec68c2907dc0475f921c78b3cf27dedb304
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
7 years agoModify http get/clear openflows to handle n ofc_id 99/1299/4
mirabal [Wed, 15 Mar 2017 11:42:27 +0000 (12:42 +0100)]
Modify http get/clear openflows to handle n ofc_id

- Add ofc_id to http_get_openflow_ports
- Add ofc_id http_clear_openflow_rules
- Both http service will handle multimple ofc thread and the task will be injected in a thread nu ofc_id
- ofc_id Added to of_flow table to of_flows

Change-Id: Id9b1ec67341d70eaea8b678fa4ef34c5a81a3c21
Signed-off-by: mirabal <leonardo.mirabal@altran.com>
7 years agoRefactor update-net task to ovim.py 90/1290/4
mirabal [Mon, 13 Mar 2017 14:15:18 +0000 (15:15 +0100)]
Refactor update-net task to ovim.py

- Every update-net task is dispached to each ofc threard available to each net

Change-Id: Ic459a96ac6401fdc72f8aca2c0edf52a2aff2b29
Signed-off-by: mirabal <leonardo.mirabal@altran.com>
7 years agoallow exposing hyperthreading at guest using metadata topology=oneSocket:hyperthreading 82/1282/2
tierno [Fri, 10 Mar 2017 14:20:10 +0000 (15:20 +0100)]
allow exposing hyperthreading at guest using metadata topology=oneSocket:hyperthreading

Change-Id: If924551bc588dd530699ea20c124ae9632388ef6
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
7 years agofix a race condition using database connection db_of at ovim.start without using... 74/1274/2
tierno [Fri, 10 Mar 2017 12:57:24 +0000 (13:57 +0100)]
fix a race condition using database connection db_of at ovim.start without using db_lock

Change-Id: I3858a117f547be2931995a160e17d0b5a7e69a04
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
7 years agonew_external_port and DB table adds 77/1277/2
mirabal [Thu, 9 Mar 2017 13:41:21 +0000 (14:41 +0100)]
new_external_port and DB table adds

- new_external_port() add to ovim, create a new external port and ensure the mapping correspondencer btw multimple sdn controllers
- Add ofc_id, switch_mac columns to table "ports" & "resources_port"
- Add foreign FK_port_ofc_id key btw "ports" and "ofcs"
- Add foreign FK_resource_ofc_id key btw "resources_port" and "ofcs"

Change-Id: I3a3603a17f415954fad7520573e4d6d434791f96
Signed-off-by: mirabal <leonardo.mirabal@altran.com>
7 years agochange initopenvim to create tenant name osm 57/1257/1
tierno [Thu, 9 Mar 2017 10:50:36 +0000 (11:50 +0100)]
change initopenvim to create tenant name osm

Change-Id: Ia94a9cab97c2c199b908d6c1ec298e25e5d939dc
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
7 years agoOF controller port mapping 30/1230/6
mirabal [Mon, 6 Mar 2017 10:36:55 +0000 (11:36 +0100)]
OF controller port mapping

- Add of_port_mappings DB entry
- Add interface to ovim.py to handle of port mapping per datacenter

Change-Id: I4248c89c3b951f075d4f75d5bb79cdabe87b866c
Signed-off-by: mirabal <leonardo.mirabal@altran.com>
7 years agoHandle ofcs thread creation form db and openvim.cfg 20/1220/6
mirabal [Wed, 1 Mar 2017 15:17:10 +0000 (16:17 +0100)]
Handle ofcs thread creation form db and openvim.cfg

- start_service create a ofc thread per sdn in db, during ofc creation and default openvimd.cfg
- stop_service kill ofcs thread
- OFC creation/delete via REST interface, handel creation/delete of thread

Change-Id: I0c1869b870b296bfb459c2f678bc7afe4d1938bb
Signed-off-by: mirabal <leonardo.mirabal@altran.com>
7 years agoMinor changes in ovim.py for SDN controllers functionality 11/1211/2
Pablo Montes Moreno [Thu, 2 Mar 2017 15:18:36 +0000 (16:18 +0100)]
Minor changes in ovim.py for SDN controllers functionality

Change-Id: I0111cd8ac9efe8eb992cc47f6f38b83a5b647cdf
Signed-off-by: Pablo Montes Moreno <pablo.montesmoreno@telefonica.com>
7 years agoTenant code migration to ovim.py 06/1206/6
mirabal [Mon, 27 Feb 2017 16:36:17 +0000 (17:36 +0100)]
Tenant code migration to ovim.py

Change-Id: I758209af0b7ea03f51cb20bb3b7767a9d69a5987
Signed-off-by: mirabal <leonardo.mirabal@altran.com>
7 years agoCreate db entry for manage Openflow controllers 38/1138/12
mirabal [Fri, 17 Feb 2017 10:03:25 +0000 (11:03 +0100)]
Create db entry for manage Openflow controllers

Change-Id: Ie3249e72487c15ed4a9a09bc64f50589102e9162
Signed-off-by: mirabal <leonardo.mirabal@altran.com>
7 years agoget_of_rules corrected 39/1139/1
garciaana [Mon, 20 Feb 2017 13:42:18 +0000 (14:42 +0100)]
get_of_rules corrected

Change-Id: I4b3d6d2f035765f595b797320d8f42d7dddac09f
Signed-off-by: garciaana <naiara.garciaa@ehu.eus>
7 years agoMove network logic from httpserver to ovim 21/1121/2
mirabal [Thu, 16 Feb 2017 16:57:35 +0000 (17:57 +0100)]
Move network logic from httpserver to ovim

Change-Id: I1d61a7003652dcac7355f2be2b1186a2fe23d8ef
Signed-off-by: mirabal <leonardo.mirabal@altran.com>
7 years agoMove openflow logic to ovim.py from httpserver.py 19/1119/2
mirabal [Wed, 15 Feb 2017 11:36:33 +0000 (12:36 +0100)]
Move openflow logic to ovim.py from httpserver.py

Change-Id: I8bd095ed85fb15579c3c1ec34bfe5513c7c41452
Signed-off-by: mirabal <leonardo.mirabal@altran.com>
7 years agoAdd gateway_ip to nets DB table 08/1108/2
mirabal [Mon, 13 Feb 2017 11:41:49 +0000 (12:41 +0100)]
Add gateway_ip to nets DB table

- Add gateway_ip column to net table at DB
        - Save and retrive gw ip during net creation and vm launching process

Change-Id: I93c5339aa61ded3631d34a90018bd67525b49ab1
Signed-off-by: mirabal <leonardo.mirabal@altran.com>
7 years agoCreate dhcp thread at openvim startup 06/1106/3
mirabal [Fri, 10 Feb 2017 13:47:53 +0000 (14:47 +0100)]
Create dhcp thread at openvim startup
   - Create a new thread if a ovs net exist in DB
   - Move instansation of openvim controller at ovim.py
   - Move launch_dhcp_server to ovim.py domain for each thread.

Change-Id: I8b0958fa0c318ebed92fcf67c0c2b5e79ded7c6a
Signed-off-by: mirabal <leonardo.mirabal@altran.com>
7 years agominor changes on stopping threads 96/1096/1
tierno [Fri, 10 Feb 2017 13:52:55 +0000 (14:52 +0100)]
minor changes on stopping threads

Change-Id: I71631de557b5654e3915cee05c34cb6d21088401
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
7 years agominor changes at host thread tasks scheduler 95/1095/1
tierno [Fri, 10 Feb 2017 11:54:29 +0000 (12:54 +0100)]
minor changes at host thread tasks scheduler

Change-Id: I966c66f0732c555c8c62ad118ba922f63f6629e7
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
7 years agoAvoid ssh connections to network controller in test mode 94/1094/1
mirabal [Fri, 10 Feb 2017 11:09:20 +0000 (12:09 +0100)]
Avoid ssh connections to network controller in test mode

Signed-off-by: mirabal <leonardo.mirabal@altran.com>
7 years agoClass OVIM to perform the logic done by http receptor 81/1081/1
tierno [Thu, 9 Feb 2017 11:01:55 +0000 (12:01 +0100)]
Class OVIM to perform the logic done by http receptor

Change-Id: I7b496fee22888f73d2350be42d08bc6633895e2a
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
7 years agoMerge branch 'v1.1' 80/1080/2
tierno [Wed, 8 Feb 2017 13:21:28 +0000 (14:21 +0100)]
Merge branch 'v1.1'

Change-Id: I0c27f01914959623bf25905786af9e7dabc141b6
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>