osm/RO.git
3 years agoADD support for multivdu ns 62/7762/1
albertoflorez [Mon, 8 Jul 2019 11:16:21 +0000 (13:16 +0200)]
ADD support for multivdu ns

Change-Id: I2b97581850cf854fcdbbef9a71daa340105dbbaf
Signed-off-by: albertoflorez <alberto.florezpages@telefonica.com>
3 years agovimconn flake8 52/7752/1
tierno [Thu, 4 Jul 2019 16:23:00 +0000 (16:23 +0000)]
vimconn flake8

Change-Id: Ia297b9a2dd1ffe7403ac786498108b1a2261c9fe
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
3 years agobug 793: fix detection of database not completely inited 50/7750/1
tierno [Thu, 4 Jul 2019 13:50:22 +0000 (13:50 +0000)]
bug 793: fix detection of database not completely inited

Change-Id: I79c099efb87f36e6251aa30d9eff1b1a223a73a9
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
3 years agofix error of database downgrade from 38 to 37 39/7739/1
tierno [Tue, 2 Jul 2019 14:13:47 +0000 (14:13 +0000)]
fix error of database downgrade from 38 to 37

Change-Id: I8e13f5caac4187ecba2e47127a02b2a88ca6005a
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
3 years agoRemoving hardcode of database name in version 23 26/7726/1 v6.0.1
Eduardo Sousa [Thu, 27 Jun 2019 11:07:42 +0000 (12:07 +0100)]
Removing hardcode of database name in version 23

Change-Id: I7b0f87b0e1580bdb7fb1e272a012311320b54618
Signed-off-by: Eduardo Sousa <eduardo.sousa@canonical.com>
3 years agoFix bug 772. vim_thread tasks key params 85/7685/2
tierno [Wed, 19 Jun 2019 14:55:58 +0000 (14:55 +0000)]
Fix bug 772. vim_thread tasks key params

Change-Id: I533859eb38a02ff3c084b6d53a735660f4ec46b1
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
3 years agoMerge "Bug 778 Wait on the upload iso task"
tierno [Tue, 25 Jun 2019 14:38:44 +0000 (16:38 +0200)]
Merge "Bug 778 Wait on the upload iso task"

3 years agoBug 780 fixed - port_mapping reading error 87/7687/2
pajaresmarti [Thu, 20 Jun 2019 10:45:21 +0000 (12:45 +0200)]
Bug 780 fixed - port_mapping reading error

Change-Id: Ifc0d0c0e63864efbd66b9c250ef6bc3ddfa624bb
Signed-off-by: pajaresmarti <guillermo.pajaresmartin@telefonica.com>
3 years agoBug 778 Wait on the upload iso task 75/7675/1
Ananda Baitharu [Tue, 18 Jun 2019 13:53:37 +0000 (13:53 +0000)]
Bug 778 Wait on the upload iso task

Change-Id: I8a4cead515fbab1a8bd267649b8e6c46b942a1ec
Signed-off-by: Ananda Baitharu <ananda.baitharu@riftio.com>
3 years agoMigrate to Pyone and refactor 62/7662/2
jomacarpe [Wed, 12 Jun 2019 21:20:51 +0000 (21:20 +0000)]
Migrate to Pyone and refactor

Change-Id: I46c92897c394784632b153c7b92cca743f78a67d
Signed-off-by: jomacarpe <josemaria.carmonaperez@telefonica.com>
3 years agoMinor fix regarding "related" in WIM 99/7599/2 v6.0.0
Anderson Bravalheri [Mon, 3 Jun 2019 14:14:12 +0000 (15:14 +0100)]
Minor fix regarding "related" in WIM

Change-Id: I99c60a905009aa12513ab64dde5f64d164cca855
Signed-off-by: Anderson Bravalheri <a.bravalheri@bristol.ac.uk>
3 years agofix issue updating a vim network in a multisite deployment 11/7611/2
tierno [Wed, 5 Jun 2019 08:28:04 +0000 (08:28 +0000)]
fix issue updating a vim network in a  multisite deployment

Change-Id: I27bb7e49b3f97af0d2efdf0b839b3df2fad10f05
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
3 years agoBug 714 vcd vimconnector: Make the vCloud API version compatible across different... 35/7635/1
Ananda Baitharu [Mon, 10 Jun 2019 09:00:27 +0000 (09:00 +0000)]
Bug 714 vcd vimconnector: Make the vCloud API version compatible across different version of VCDs

Change-Id: I966480aee583c819adcdb07d581c01284af8cb77
Signed-off-by: Ananda Baitharu <ananda.baitharu@riftio.com>
3 years agoBug 741 fixed - Added href to parent network data 14/7614/1
Ravi Chamarty [Wed, 5 Jun 2019 17:06:39 +0000 (17:06 +0000)]
Bug 741 fixed - Added href to parent network data

Change-Id: I0224c2d53f53977e5929d47522c71db759c0cb85
Signed-off-by: Ravi Chamarty <ravi.chamarty@riftio.com>
3 years agoAdd "additionalProperties" support to remove_extra_items in utils 97/7597/1
Anderson Bravalheri [Thu, 30 May 2019 14:55:55 +0000 (15:55 +0100)]
Add "additionalProperties" support to remove_extra_items in utils

Change-Id: Ia3d48796f0d6b9b5dfd7d5838df0863846778944
Signed-off-by: Anderson Bravalheri <a.bravalheri@bristol.ac.uk>
3 years agoFix deployment of EPA VMs to use single virtual socket instead of 1 socket per core 03/7403/4
garciadeblas [Thu, 11 Apr 2019 17:15:49 +0000 (19:15 +0200)]
Fix deployment of EPA VMs to use single virtual socket instead of 1 socket per core

Change-Id: I21afb45210e9006d06d79f6501e4cec5f805451f
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
3 years agofirst implementation of get_image_list 50/7550/1
tierno [Mon, 27 May 2019 10:24:50 +0000 (10:24 +0000)]
first implementation of get_image_list

Change-Id: I9ede7a2be15a669476762785e40e9ec69bade35b
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
3 years agofix some issues at azure plugin 49/7549/1
tierno [Mon, 27 May 2019 08:14:01 +0000 (08:14 +0000)]
fix some issues at azure plugin

Change-Id: Ife4ff5e1b291c5c2519cd25c3c3831ea966899b7
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
3 years agoInserting Azure plugin 40/7440/3
seryio [Thu, 23 May 2019 12:50:49 +0000 (14:50 +0200)]
Inserting Azure plugin

Change-Id: I21254a385791747c3138255c1f1e2476d5147823
Signed-off-by: seryio <siyito.lpgc@gmail.com>
3 years agochange database to allow VIM ids length of 300 99/7499/1
tierno [Thu, 23 May 2019 10:16:07 +0000 (10:16 +0000)]
change database to allow VIM ids length of 300

Change-Id: I4d746533b10e81a54e4846af8360f903bfcf01d9
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
3 years agoInstall needed packages for Azure 38/7438/2
tierno [Tue, 30 Apr 2019 12:20:38 +0000 (12:20 +0000)]
Install needed packages for Azure

Change-Id: If163eefe22ac0c08da649edf10aa8ab4b5e7b650
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
3 years agofixing wim types 97/7497/1
tierno [Thu, 23 May 2019 08:07:12 +0000 (08:07 +0000)]
fixing wim types

Change-Id: I64cd6b28381a7641e0af664fd2fd24c6e3856f62
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
3 years agobug 687 fixing related when scaling 90/7490/1
tierno [Wed, 22 May 2019 16:45:09 +0000 (16:45 +0000)]
bug 687 fixing related when scaling

Change-Id: I73d7fb77a55aa56691bf1507d9d99b32679adc4f
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
3 years agoadding wim fake connector 86/7486/2
tierno [Wed, 22 May 2019 09:56:05 +0000 (09:56 +0000)]
adding wim fake connector

Change-Id: I03fa422d5fe57f4bb5f82aa3f059ab049f466de9
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
3 years agoMerge branch 'fog' 60/7460/2
tierno [Tue, 14 May 2019 11:22:45 +0000 (11:22 +0000)]
Merge branch 'fog'

Change-Id: I22026c17fd94e7a1bb22c0fb87035c4f9bff12ff
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
3 years agofix bug 686: getting interfaces at new_sfi 35/7435/4
tierno [Mon, 29 Apr 2019 16:02:23 +0000 (16:02 +0000)]
fix bug 686: getting interfaces at new_sfi

Change-Id: Ia0b4e35139688c97b5f12e494ec80e191bbd80f6
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
3 years agoMerge branch 'feature7106' 57/7457/1
tierno [Mon, 13 May 2019 10:18:28 +0000 (10:18 +0000)]
Merge branch 'feature7106'

Change-Id: I1670f7013c63c7a5e5c6855fe3ea168423f86834
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
3 years agoinitial implementation of vimconn_fos for Eclipse fog05 VIM 68/7368/7 fog
baldoni [Wed, 27 Mar 2019 09:46:08 +0000 (10:46 +0100)]
initial implementation of vimconn_fos for Eclipse fog05 VIM

Change-Id: I68485c1502002246012d13d7ab176bfb8908b283
Signed-off-by: baldoni <gabriele.baldoni@adlinktech.com>
3 years agoBug 692 vmware vcd vimconnnector: Fix parsing vAppTemplate response 54/7454/1
Ananda Baitharu [Fri, 10 May 2019 15:43:18 +0000 (15:43 +0000)]
Bug 692 vmware vcd vimconnnector: Fix parsing vAppTemplate response

Change-Id: I1d69e984dc1c8ef05d8cff29059c6b2893edeb0e
Signed-off-by: Ananda Baitharu <ananda.baitharu@riftio.com>
3 years agoDisable port security at network creation (openstack) 45/7445/2
anwars [Mon, 6 May 2019 05:53:07 +0000 (11:23 +0530)]
Disable port security at network creation (openstack)

Feature : https://osm.etsi.org/gerrit/#/c/7326

Introducing a new VIM config parameter for openstack VIM,
disable_network_port_security

This will allow to disable the port security while creating networks in openstack

To be used for VIM which has port security extension but do not support port security
(Network creation fails with error that Port security is not supported)

Change-Id: I3822f0d76450cceec50fc757ad273ab11f414d13
Signed-off-by: anwars <anwars@vmware.com>
3 years agoFeature 7106 : Handle additional EPA parameters for openstack VIM connector 19/7419/7 feature7106
anwars [Mon, 22 Apr 2019 05:05:27 +0000 (10:35 +0530)]
Feature 7106 : Handle additional EPA parameters for openstack VIM connector

Gerrit feature request : https://osm.etsi.org/gerrit/#/c/7106/

Changes:

NFVO engine to read and parse the quota descriptor and store as flavor extended properties.

Openstack VIM Connector to process the new extended properties and suitably pass them as extra specs when creating flavor.

Change-Id: Icdd8730f6f6de6d420027de962f0f5def0376375
Signed-off-by: anwars <anwars@vmware.com>
3 years agoCleans, formats and does small restructures to openmanod to be compliant with pylint... 50/7450/1
Benjamin Diaz [Thu, 9 May 2019 00:24:46 +0000 (21:24 -0300)]
Cleans, formats and does small restructures to openmanod to be compliant with pylint and flake8

Change-Id: I4a54261c9c46365877773b08a073a0f7d0b2ded6
Signed-off-by: Benjamin Diaz <bdiaz@whitestack.com>
3 years agofix bug 685. Getting unique log name for vim_accounts 47/7447/2
tierno [Mon, 6 May 2019 13:24:12 +0000 (13:24 +0000)]
fix bug 685. Getting unique log name for vim_accounts

Change-Id: I3d5c039243d5cad7137beaf4a1b62e467243712d
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
3 years agoAdding flake8 tests over some files 81/7381/5
tierno [Tue, 2 Apr 2019 11:49:31 +0000 (11:49 +0000)]
Adding flake8 tests over some files

Change-Id: Ic00ddca13ac3dfa21b1279030026891239989e28
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
3 years agoMerge branch WIM: Connector using IETF L2VPN Service model 34/7434/1
tierno [Mon, 29 Apr 2019 14:42:32 +0000 (14:42 +0000)]
Merge branch WIM: Connector using IETF L2VPN Service model
fix flake8 errors

Change-Id: I6c24777b75c0197364cc6138f444e32ba3be2018
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
3 years agoFirst implementation of a WIM Connector using IETF L2VPN Service model 11/7111/5 WIM
gonzalezdedi [Fri, 18 Jan 2019 13:52:43 +0000 (14:52 +0100)]
First implementation of a WIM Connector using IETF L2VPN Service model
(RFC 8466)

Change-Id: I7602e204c4e9caedcf87421db3ac4a6a1990ea3b
Signed-off-by: gonzalezdedi <oscar.gonzalezdedios@telefonica.com>
3 years agobug 684: database order of interfaces are lost 26/7426/1
tierno [Fri, 26 Apr 2019 12:26:01 +0000 (12:26 +0000)]
bug 684: database order of interfaces are lost

Change-Id: Iad5d027ef77d7be5d48045150b81c6560694e602
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
3 years agoVCD VIMconnector: add config drive support; Adding genisoimage package installation... 82/7282/3
Ananda Baitharu [Tue, 5 Mar 2019 17:34:31 +0000 (17:34 +0000)]
VCD VIMconnector: add config drive support; Adding genisoimage package installation to scripts/install-openmano.sh

Change-Id: I2fdf100a8ecc04207d0e977e81eabc46862a8b6d
Signed-off-by: Ananda Baitharu <ananda.baitharu@riftio.com>
3 years agoAdd related vim_wim_tasks (tasks that deals with same vim/wim element 77/7277/9
tierno [Mon, 4 Mar 2019 17:32:01 +0000 (17:32 +0000)]
Add related vim_wim_tasks (tasks that deals with same vim/wim element
Remove state of vim_threads, working with database instead of memory
Allow several vim_threads over the same vim tasks

Change-Id: I5825b69309b8d3e6146798747b002108a34fa2aa
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
3 years agoAdded apt-utils to Dockerfile for stage-archive.sh 52/7352/2
garciadeblas [Thu, 21 Mar 2019 15:33:57 +0000 (16:33 +0100)]
Added apt-utils to Dockerfile for stage-archive.sh

Change-Id: I0880b8e71ac24fd222068f130081e4535906ab14
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
3 years agoskip unknown parameters at VNFD,NSD pyangbind validation 97/7397/1
tierno [Tue, 9 Apr 2019 14:19:40 +0000 (14:19 +0000)]
skip unknown parameters at VNFD,NSD pyangbind validation

Change-Id: Ib5c9536354aed78aea6cded7def9479287006cbe
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
3 years agofixing bug 665 parsing unicode openstack error messages 89/7389/2
tierno [Fri, 5 Apr 2019 12:46:42 +0000 (12:46 +0000)]
fixing bug 665 parsing unicode openstack error messages

Change-Id: I563f65d6ed4dacf482cde5983020d36ecc040c02
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
3 years agofix bug 654. First vdu's placement-groups does not work 69/7369/1
tierno [Fri, 29 Mar 2019 08:50:12 +0000 (08:50 +0000)]
fix bug 654. First  vdu's placement-groups does not work

Change-Id: Idc935fa13ab6b8e138472de4ebc932810a5e9c5b
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
3 years agocapturing wim exceptions properly 64/7364/1
tierno [Mon, 25 Mar 2019 15:00:02 +0000 (15:00 +0000)]
capturing wim exceptions properly

Change-Id: I8bb1dde991e416c30acf841d99fdaea3c788eb97
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
3 years agoRemoved double assignments of variables 53/7353/2
schillinge [Thu, 21 Mar 2019 21:27:04 +0000 (22:27 +0100)]
Removed double assignments of variables

These arrays are already assigned earlier, reassigning them to []
deletes previously added entries, disallowing VNFFGs consisting of
multiple RSPs, Classifiers, ...

Change-Id: Ifda49f7d8528e0e888569745261aa97772c075b8
Signed-off-by: schillinge <ablu@mail.uni-paderborn.de>
3 years agofix error introduced at bu 650 code 54/7354/2
tierno [Thu, 21 Mar 2019 22:12:14 +0000 (22:12 +0000)]
fix error introduced at bu 650 code

Change-Id: Ic9ac1c90e9df70fb3d5ac1e048a75d0d0cfe9431
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
3 years agoImplemented VIM get_vminstance_console method 36/7336/2
kasar [Wed, 20 Mar 2019 08:40:05 +0000 (01:40 -0700)]
Implemented VIM get_vminstance_console method

Change-Id: Ie54a095f9102c98606bb985bc79314017942e124
Signed-off-by: kasar <pkasar@vmware.com>
3 years agobug 650 adding WIM account instantiation parameter. 41/7341/3
tierno [Wed, 20 Mar 2019 17:23:45 +0000 (17:23 +0000)]
bug 650 adding WIM account instantiation parameter.
Allow manual selection of wim or deployment without Wim

Change-Id: If4928ff33ebc671b6870faf20f3b4253c9f59372
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
3 years agoFixed some typos 45/7345/1
garciadeblas [Thu, 21 Mar 2019 08:55:44 +0000 (09:55 +0100)]
Fixed some typos

Change-Id: I6e98001c2fc94d4efd5d2b3be0b401a3c7a862fb
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
3 years agoBug 642 - Need to update VCD VIMconnector for VCD 9.5 95/7295/2
kasar [Wed, 13 Mar 2019 09:21:06 +0000 (02:21 -0700)]
Bug 642 - Need to update VCD VIMconnector for VCD 9.5

Change-Id: I1e5d750302d9b4b81aba025e2629ad1a5e79fb51
Signed-off-by: kasar <pkasar@vmware.com>
3 years agoFix support of multi-segment networks in Openstack; added created_items in all vimconns 16/7216/4
garciadeblas [Thu, 31 Jan 2019 16:01:31 +0000 (16:01 +0000)]
Fix support of multi-segment networks in Openstack; added created_items in all vimconns

Change-Id: I641a337e58138d693970616360dfb9aab021fd2a
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
3 years agoset security groups to neutron port at vimconn openstack 59/7159/8
tierno [Fri, 1 Feb 2019 12:30:27 +0000 (12:30 +0000)]
set security groups to neutron port at vimconn openstack

Change-Id: Id6c2dc28a80ab6d62f33eeb0480a7232e112cf48
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
3 years agoFix logic in adding prefix to ip-a in classifier 76/7276/3
Venkata Harshavardhan Reddy Allu [Fri, 1 Mar 2019 20:39:56 +0000 (02:09 +0530)]
Fix logic in adding prefix to ip-a in classifier

This commit has following changes:

- When 'source-ip-address' or 'destination-ip-address' are not provided
  under "nsd:nsd-catalog:nsd:vnffgd:classifier:match-attributes" this
  would avoid adding the '/32' prefix in the classifier definition.

- add details to classifier definition only if provided.

This patch helps us in creating classifier with minimum details and
avoid errors when 'source-ip-address' or  'destination-ip-address'
 were not provided in nsd.

Change-Id: I5b572552bd670b56faa0aba5833209d198e10450
Signed-off-by: Venkata Harshavardhan Reddy Allu <venkataharshavardhan_ven@srmuniv.edu.in>
3 years agoaddedd region_name to keystone, nova, neutron and cinder to support distributed cloud... 35/7235/1
fatollahy [Tue, 19 Feb 2019 12:53:40 +0000 (12:53 +0000)]
addedd region_name to keystone, nova, neutron and cinder to support distributed cloud for Wind River Titanium cloud and StarlingX

Change-Id: Ic04f35f668f485674760af3805f0a70e4d180477
Signed-off-by: fatollahy <masoud.fatollahy@windriver.com>
3 years agoAdded support for region_name for Distributed cloud implementation of WindRiver Titan... 75/7175/2
fatollahy [Fri, 1 Feb 2019 20:50:46 +0000 (20:50 +0000)]
Added support for region_name for Distributed cloud implementation of WindRiver Titanium Cloud and StarlingX

Change-Id: I639ae150aff154ccc01499b42d6ed659d0eca7ff
Signed-off-by: fatollahy <masoud.fatollahy@windriver.com>
3 years agoImprove race conditions/MySQL reconnection 20/7220/3
Anderson Bravalheri [Fri, 8 Feb 2019 01:44:14 +0000 (01:44 +0000)]
Improve race conditions/MySQL reconnection

This commit aims to provide a better synchronization between all the
different threads in RO, specially regarding DB usage and internal state
consistency.

The following improvements were done:

1. Centralize database retry logic into a single function

  This way we can change the procedure and the rules for retrying in a
  single place and this reflects in several functions simultaneously
  avoiding the need for manual copy and paste (and the potential risk of
  forgetting to change somewhere)

2. Minor fixes/improvements related to database connection loss.

  Previously `db_base` was already able to identify when the connection
  to MySQL was lost, but apparently in a few edge cases the automatic
  reconnection was not done.

3. Implement a transaction method

  This method replaces the old context manager API for the connection
  object that was removed from MySQLdb in version 1.4

  In additional it is possible to use a decorator for transactions
  (not only the context manager), which is handy sometimes.

4. Add lock mechanism directly to db_base

  This helps to improve synchronization between threads.
  Some extra synchronization was introduced to functions, as it seemed
  to be the case.
  Moreover, previously, the cursor object was part of the internal state
  of the db_base object, and it was being changed/used without thread
  synchronization (error-prone). Having the locking mechanism around the
  changes in the cursor property of the class, avoids problems.

5. Add option to fork connection

  Useful when independent threading is needed (as long as different
  threads don't access the same database table, having separated
  connections and locks should work fine).

Change-Id: I3ab34df5e8c2857d96ed14a70e7f65bd0b5189a0
Signed-off-by: Anderson Bravalheri <a.bravalheri@bristol.ac.uk>
3 years agoRe-adding the enum elements for SFC that were missing 09/7209/3
Eduardo Sousa [Thu, 7 Feb 2019 10:53:10 +0000 (10:53 +0000)]
Re-adding the enum elements for SFC that were missing

Change-Id: Ie198147ae914dc35445158489ad85f1156857782
Signed-off-by: Eduardo Sousa <esousa@whitestack.com>
3 years agofix ip-profile ignored at openstack 94/7194/1
tierno [Sun, 3 Feb 2019 22:41:19 +0000 (22:41 +0000)]
fix ip-profile ignored at openstack

Change-Id: I7ba41acd9eea907f0ae29976a4063a25b780c11d
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
3 years agoREMOVE some comments and unnecessary lines 64/7164/2
albertoflorez [Fri, 1 Feb 2019 11:22:47 +0000 (12:22 +0100)]
REMOVE some comments and unnecessary lines

Change-Id: I487b5cf482ce3ae9d3d4940eec6fbbdf75b26174
Signed-off-by: albertoflorez <alberto.florezpages@telefonica.com>
3 years agoFix wrong usage of `isinstance` 63/7163/1
Anderson Bravalheri [Fri, 1 Feb 2019 10:56:55 +0000 (10:56 +0000)]
Fix wrong usage of `isinstance`

Second parameter should be a class, not string

Change-Id: I6401429d7cc314502a364b7fc81e73d30175b193
Signed-off-by: Anderson Bravalheri <a.bravalheri@bristol.ac.uk>
3 years agomake new-net task wim parameter backward compatible 44/7144/1 v5.0.3 v5.0.4
tierno [Wed, 30 Jan 2019 13:35:37 +0000 (13:35 +0000)]
make new-net task wim parameter backward compatible

Change-Id: I90e0b0affa4c5350b9ace0000441e7ba022ea7f2
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
3 years agogetting bug fixes from master 39/7139/1
tierno [Wed, 30 Jan 2019 09:41:30 +0000 (10:41 +0100)]
getting bug fixes from master

Change-Id: Id86af2c276ab34c76c231d36c1c9c1a4c7ecc93a
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
3 years agoMerge "Fixed accidential override of `sfc_encap`"
tierno [Mon, 28 Jan 2019 16:39:48 +0000 (17:39 +0100)]
Merge "Fixed accidential override of `sfc_encap`"

3 years agoadding external port to SDN-Assist when connected to WIM 21/7121/2
tierno [Wed, 23 Jan 2019 10:19:23 +0000 (10:19 +0000)]
adding external port to SDN-Assist when connected to WIM

Change-Id: Ic6902950915a8fde50d162cf425c1851e5bc001c
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
3 years agoFixed accidential override of `sfc_encap` 24/7124/1
schillinge [Thu, 24 Jan 2019 08:25:11 +0000 (09:25 +0100)]
Fixed accidential override of `sfc_encap`

The old code basically hardcoded the use of NSH (which is still broken
in OpenStack's SFC implementation).

Change-Id: I0de4682bca69c7a349d678ae3a8179d78b37c605
Signed-off-by: schillinge <ablu@mail.uni-paderborn.de>
3 years agoMerge branch 'WIM' 13/7113/2
tierno [Mon, 21 Jan 2019 09:55:46 +0000 (09:55 +0000)]
Merge branch 'WIM'

Change-Id: Id314390ba524d22d4e1f74cfe8ef7c808bb8ac0e
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
3 years agoInject "wim_port_mappings" from "wim.config" 63/7063/4
Anderson Bravalheri [Sun, 16 Dec 2018 20:44:08 +0000 (20:44 +0000)]
Inject "wim_port_mappings" from "wim.config"

Automatically create/update port mappings during WIM creation/update,
as discussed in the WIM implementation meeting (12/Dec/2018).

Additionally fix small related errors and ensure wan_port_mappings
are returned by the HTTP server using the same keys forming the schema.

Change-Id: Icc27ad85c1de826ed96cb42b377055ea1b0c2cab
Signed-off-by: Anderson Bravalheri <a.bravalheri@bristol.ac.uk>
3 years agoAdd new fields to instance_net.vim_info 62/7062/4
Anderson Bravalheri [Sun, 16 Dec 2018 19:28:37 +0000 (19:28 +0000)]
Add new fields to instance_net.vim_info

VIM Connectors should provide the fields "encapsulation_type" and
"encapsulation_id", as discussed in the WIM implementation meeting
(21/Nov/2018).

Change-Id: I654d8fa93bef7c37c7ce575c0335154e99fd7347
Signed-off-by: Anderson Bravalheri <a.bravalheri@bristol.ac.uk>
3 years agoChange WAN Actions to use VIM config rules 61/7061/4
Anderson Bravalheri [Fri, 7 Dec 2018 12:51:45 +0000 (12:51 +0000)]
Change WAN Actions to use VIM config rules

Extract switch ID and port by default from
vim.config.external_connections, as discussed in the WIM implementation
meeting (21/Nov/2018).

Change-Id: I95cc5fb0d6ad2822ef4bd1b80e7652bfabf34120
Signed-off-by: Anderson Bravalheri <a.bravalheri@bristol.ac.uk>
3 years agoFind WIM before creating local networks 09/7009/7
Anderson Bravalheri [Fri, 30 Nov 2018 09:55:29 +0000 (09:55 +0000)]
Find WIM before creating local networks

The usage of the wim_account information for create networks inside the
VIMs/datacenters should be developed in future commits

Change-Id: I545455f23cbde9071b2bdc91ae032b7a76e0eefe
Signed-off-by: Anderson Bravalheri <a.bravalheri@bristol.ac.uk>
3 years agoBug 620 VCD VIMconnector: new_network api is going to create "Isolated" type network 99/7099/1
Ananda Baitharu [Mon, 14 Jan 2019 13:05:58 +0000 (13:05 +0000)]
Bug 620 VCD VIMconnector: new_network api is going to create "Isolated" type network

Change-Id: I06f5c877859c488d309baa0d595cb6e6c23f9961
Signed-off-by: Ananda Baitharu <ananda.baitharu@riftio.com>
3 years agoWIM dynpac: Add credentials 94/7094/1
David García [Thu, 10 Jan 2019 22:31:03 +0000 (23:31 +0100)]
WIM dynpac: Add credentials

Change-Id: Iae69fda14d9ffab43af47084b596ba4a5bc8c7a7
Signed-off-by: David García <david.garciaco@ehu.eus>
3 years agofixing database sql errors 88/7088/1
tierno [Tue, 8 Jan 2019 16:22:40 +0000 (16:22 +0000)]
fixing database sql errors

Change-Id: Ic73bf8a47378f4c55ece64014a279264f5bf0855
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
3 years agobug 608 Database migration recovering with docker relaunch 50/7050/2
tierno [Fri, 21 Dec 2018 10:19:38 +0000 (10:19 +0000)]
bug 608 Database migration recovering with docker relaunch

Change-Id: I4005e048b71284c154495a90d8b1256a09e6ff98
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
3 years agoallow pdu without image 75/7075/2
tierno [Wed, 19 Dec 2018 16:00:25 +0000 (16:00 +0000)]
allow pdu without image

Change-Id: Icb02d22d2c1497c1af5cfeff2702d2757bcdcda1
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
3 years agoUpdating VNFFG example to comply with new IM version 54/7054/2
Eduardo Sousa [Wed, 12 Dec 2018 12:09:58 +0000 (12:09 +0000)]
Updating VNFFG example to comply with new IM version

Change-Id: Ie62134ce91cd2686547bb487892474b0d3279e61
Signed-off-by: Eduardo Sousa <esousa@whitestack.com>
3 years agofix issue creating instance of only networks without scenario 69/7069/1
tierno [Tue, 18 Dec 2018 15:19:27 +0000 (15:19 +0000)]
fix issue creating instance of only networks without scenario

Change-Id: Ibeb3a9f6176c7bc5b9178661d88f37bf204d11e0
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
3 years agoAdding vim-network-id parameter to instantiation 66/7066/2
gcalvino [Mon, 17 Dec 2018 15:19:33 +0000 (16:19 +0100)]
Adding vim-network-id parameter to instantiation

Change-Id: I3be6b0b5b0de1ea0f1379a48546f27b45f946b5e
Signed-off-by: gcalvino <guillermo.calvinosanchez@altran.com>
3 years agoAdding support to different ingress and egress ports (SFC) 12/7012/16
Eduardo Sousa [Fri, 30 Nov 2018 15:33:35 +0000 (15:33 +0000)]
Adding support to different ingress and egress ports (SFC)

TODO: update VNFFG example.

Change-Id: I26cf6cc8760516203f8a4fa147bdcd2e00887d89
Signed-off-by: Eduardo Sousa <esousa@whitestack.com>
3 years agoFixing error in Flow Classifier creation (SFC) 01/7001/3
Eduardo Sousa [Thu, 29 Nov 2018 14:55:01 +0000 (14:55 +0000)]
Fixing error in Flow Classifier creation (SFC)

Fetching interfaces from the wrong place.

Change-Id: Ibce20543135272ef6b6ff1bca9d1e151972ec985
Signed-off-by: Eduardo Sousa <esousa@whitestack.com>
3 years agoBug 611 Fix unicode parsing at database 44/7044/2
tierno [Wed, 5 Dec 2018 16:23:38 +0000 (16:23 +0000)]
Bug 611 Fix unicode parsing at database

Change-Id: I08ea1f463cabf776343d58d48fdff9066c483a89
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
3 years agoAdd Dynpac WIM Connector 46/7046/1
David García [Mon, 10 Dec 2018 08:43:50 +0000 (09:43 +0100)]
Add Dynpac WIM Connector

A file osm_ro.wim.wimconn_dynpac added, which defines a the DynpacConnector class

Change-Id: I72fbd5387cdf3c09bc69cdde10713e224b7876ed
Signed-off-by: David García <david.garciaco@ehu.eus>
4 years agoinstance_actions: renamed vim_actions to vim_wim_actions 42/7042/1 v5.0.2
garciadeblas [Wed, 5 Dec 2018 11:42:35 +0000 (12:42 +0100)]
instance_actions: renamed vim_actions to vim_wim_actions

Change-Id: I61d4f61c08a9571785937118be96942ce8b88c94
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
4 years agoFix bug related to scaling: renamed vim_actions to vim_wim_actions 40/7040/1
garciadeblas [Wed, 5 Dec 2018 09:59:40 +0000 (10:59 +0100)]
Fix bug related to scaling: renamed vim_actions to vim_wim_actions

Change-Id: I6d5644fcd25e72083fb1af2ea01091d963bc11fc
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
4 years agoRO-start checks that database is not corrupt 33/7033/2 v5.0.1
tierno [Tue, 4 Dec 2018 14:05:26 +0000 (14:05 +0000)]
RO-start checks that database is not corrupt
Fix healthcheck at dockerfile-local

Change-Id: I49f66013dd6767b8ffbf67564ff6ed7806bec698
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
4 years agoMerge branch 'WIM' into master 28/7028/1
tierno [Mon, 3 Dec 2018 17:51:26 +0000 (18:51 +0100)]
Merge branch 'WIM' into master

Change-Id: Ibef33c7dfcf3c40dbdf278fc160907675ffbeb03
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
4 years agofixing vim_actions backward compatibility 25/7025/1
tierno [Mon, 3 Dec 2018 12:04:48 +0000 (12:04 +0000)]
fixing vim_actions backward compatibility

Change-Id: I7553920aa47baad8773cab27c84df8e60fff0e78
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
4 years agoChange confusing "get_endpoint" name and add docs 91/6991/1
Anderson Bravalheri [Wed, 28 Nov 2018 11:48:14 +0000 (11:48 +0000)]
Change confusing "get_endpoint" name and add docs

Change-Id: Ia39bf1acb0b452b320c41d4ae9e04fc760adeecb
Signed-off-by: Anderson Bravalheri <a.bravalheri@bristol.ac.uk>
4 years agoMerge remote-tracking branch 'upstream/master' into gerrit-submission 66/6966/2
Anderson Bravalheri [Wed, 28 Nov 2018 17:21:26 +0000 (17:21 +0000)]
Merge remote-tracking branch 'upstream/master' into gerrit-submission

Sync with master branch

Change-Id: Ic26d043a84f50f48eeebffb512ccea2eedc053a4
Signed-off-by: Anderson Bravalheri <a.bravalheri@bristol.ac.uk>
4 years agoAllow instance of only networks without scenario 63/6963/1 v5.0.0
tierno [Mon, 26 Nov 2018 14:14:51 +0000 (14:14 +0000)]
Allow instance of only networks without scenario

Change-Id: I442fba52604a3211d2f07a04fff39ce5d3320325
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
4 years ago(bug 589) add proper filtering VDU by instance-id on scalling 61/6961/2
tierno [Mon, 26 Nov 2018 09:28:58 +0000 (09:28 +0000)]
(bug 589) add proper filtering VDU by instance-id on scalling

Change-Id: Iaf4c38d6907a4af5124c85d94518004851b5f6c5
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
4 years agoAdd SRIOV tests for VCD VIMconnector 46/6946/2
Ravi Chamarty [Thu, 22 Nov 2018 01:22:16 +0000 (01:22 +0000)]
Add SRIOV tests for VCD VIMconnector

Change-Id: I2e04063a4c3f7cd9c40a1154ce994e298172ad51
Signed-off-by: Ravi Chamarty <ravi.chamarty@riftio.com>
4 years agoImplement feature 5949 79/6579/11
Anderson Bravalheri [Fri, 17 Aug 2018 14:26:19 +0000 (15:26 +0100)]
Implement feature 5949

Enable dynamic connectivity setup in multi-site Network Services

The code required to implement the feature is contained in `osm_ro/wim`
as much as possible.

* `wim/engine.py` works together with `nfvo.py` to implement the
  feature
* `wim/persistence.py` is equivalent to `nfvo_db.py` and try to
  encapsulate most of the SQL-specific code, implementing a persistence
  layer
* `wim/http_handler.py` extends `httpserver.py` adding WIM-related HTTP
  routes
* `wim/wim_thread.py` is similar to `vim_thread.py` and controls the
  execution of WIM-related tasks
* `wim/actions.py` and `wim/wan_link_actions.py` implement the action
  handling specific code, calling instances of the `wim/wimconn.py`
  subclasses

WIM connectors are still a work in progress

Individual change details (newer to older)

- Add errors for inconsistent state

- Delay re-scheduled tasks

- Move lock to inside the persistence object

- Better errors for connector failures

- Try to cache the wan_link information before it is deleted from the database

- Integrate WanLinkDelete to NFVO

- Add WanLinkDelete implementation draft with some tests

- Add basic wim network creation

- Add minimal documentation for actions

- Add checks to the create action

- Improve documentation, rearrange insert_pending and remove unused functions on WimThread

- Integrate Action classes in refresh_tasks

- Add Action classes to avoid intricate conditions

- Adding Proposed License

- Move grouping of actions to persistence

- Change WimThread to use SQL to do the heavy lifting

- Simplify WimThread reload_actions

- Add tests for derive_wan_links

- Implement find_common_wim(s)

- Add tests for create_wim_account

- Add migration scripts for version 33

- Changes to WIM and VIM threads for vim_wim_actions

- Implement wim_account management according to the discussion

- Add WimHandler integration inside httpserver

- Add quick instructions to run the tests

- Add WIM functional tests using real database

- Add DB WIM port mapping

- RO WIM-related console scripts

- Add WIM integration to NFVO

- Improve database support focusing on tests

- RO NBI WIM-related commands in HTTP server

- Adding WIM tables to MANO DB

- Add wim http handler initial implementation

- Move http utility functions to separated files

    This separation allows the code to be reused more easily and avoids
    circular dependencies.

    (The httpserver can import other modules implementing http routes,
    and those modules can then use the utility functions without having
    to import back httpserver)

- Add a HTTP handler class and custom route decorator

    These tools can be used to create independent groups of bottle
    routes/callbacks in a OOP fashion

- Extract http error codes and related logic to separated file

Change-Id: Icd5fc9fa345852b8cf571e48f427dc10bdbd24c5
Signed-off-by: Anderson Bravalheri <a.bravalheri@bristol.ac.uk>
4 years agoCherry-pick c1ce8ac Changed build to not make osm-im lib-osm-openvim 78/6878/1
tierno [Wed, 14 Nov 2018 11:46:21 +0000 (12:46 +0100)]
Cherry-pick c1ce8ac Changed build to not make osm-im lib-osm-openvim

Change-Id: Ibca462f24900cbd1c30ada08c3c5eb51fe6d30b2
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
4 years agoVNFs with only VLDs compatibility - part2 74/6874/2
gcalvino [Tue, 13 Nov 2018 17:47:28 +0000 (18:47 +0100)]
VNFs with only VLDs compatibility - part2

Change-Id: Id89dd94af4856c5d6d10c59ecfdef764e3308d2b
Signed-off-by: gcalvino <guillermo.calvinosanchez@altran.com>
4 years agofeature 1417 support of PDUs 69/6869/4
tierno [Tue, 13 Nov 2018 09:37:42 +0000 (10:37 +0100)]
feature 1417 support of PDUs

Change-Id: I4f74215f2604daab1bd6a148e37d21a2547f4207
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
4 years agominor fixes at Dockerfile 75/6875/1
tierno [Tue, 13 Nov 2018 18:10:59 +0000 (19:10 +0100)]
minor fixes at Dockerfile

Change-Id: Ic3c610f7652870f256ebd4264f42a16f5c8a8a1e
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
4 years agoNS scenarios without VNFs compatibility 43/6843/3
gcalvino [Mon, 5 Nov 2018 09:42:06 +0000 (10:42 +0100)]
NS scenarios without VNFs compatibility

Change-Id: Ice40df6180ed6ee77377b0b7ac0d14ff85009871
Signed-off-by: gcalvino <guillermo.calvinosanchez@altran.com>
4 years agoChanged build to not make osm-im lib-osm-openvim 71/6871/1
tierno [Tue, 13 Nov 2018 15:06:45 +0000 (15:06 +0000)]
Changed build to not make osm-im lib-osm-openvim

Change-Id: I9f54a356589d3d5fd3e0d40f51bb22e85133e0ee
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
4 years agoMerge "VNFs with only VLDs compatibility"
tierno [Mon, 12 Nov 2018 09:51:22 +0000 (10:51 +0100)]
Merge "VNFs with only VLDs compatibility"