osm/RO.git
2 years agoJenkins refresh 43/12343/5
Mark Beierl [Thu, 14 Jul 2022 13:41:20 +0000 (09:41 -0400)]
Jenkins refresh

Change the jenkins node label from 'docker'
to 'stage_2' as part of the Jenkins cleanup

Change-Id: Ic2837c0f6163a511e064eb5a2a254c58c1c0c960
Signed-off-by: Mark Beierl <mark.beierl@canonical.com>
2 years agoFix bug 2092 to update params of delete_vminstance in all VIM connectors 88/12288/4
garciadeblas [Thu, 30 Jun 2022 11:57:43 +0000 (13:57 +0200)]
Fix bug 2092 to update params of delete_vminstance in all VIM connectors

Change-Id: I906817cc8443d958ef295835af440268528912f3
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
2 years agoFind the existing persistent volume by vim_id keyword 70/12270/2 release-v12.0-start
aticig [Sat, 25 Jun 2022 20:31:19 +0000 (23:31 +0300)]
Find the existing persistent volume by vim_id keyword

It's possible to find an existing disk id searching with vim_id or
vim_volume_id depend on situation. vim_id is added in the search key list.

Change-Id: I7847cfc30a26bfa5f860eae2aefdbc4c44050234
Signed-off-by: aticig <gulsum.atici@canonical.com>
2 years agoUpdate pip requirements 50/12250/4
garciadeblas [Fri, 24 Jun 2022 15:37:49 +0000 (17:37 +0200)]
Update pip requirements

Change-Id: Ie13a8e81a0182b9b9b6f37c17ae454793f658c47
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
2 years agoMatch the correct clause when interface position is zero 42/12242/2
aticig [Fri, 24 Jun 2022 13:01:05 +0000 (16:01 +0300)]
Match the correct clause when interface position is zero

Change-Id: I6eacc818c1596442295d39ff704fe56dea319c11
Signed-off-by: aticig <gulsum.atici@canonical.com>
2 years agoFixing Bug 1851, 1852, 1854 60/12160/14
aticig [Thu, 2 Jun 2022 17:03:13 +0000 (20:03 +0300)]
Fixing Bug 1851, 1852, 1854

Network related problems while creating an basic network service using
AWS VIM Plugin are fixed in this patch.

Change-Id: Ic36ff57f8c9bd5b362eb9ffb752ce863f621dd54
Signed-off-by: aticig <gulsum.atici@canonical.com>
2 years agoFix Bug 2012 use existing volumes as instantiation parameters 84/12084/9
aticig [Thu, 19 May 2022 10:03:17 +0000 (13:03 +0300)]
Fix Bug 2012 use existing volumes as instantiation parameters

RO processes the existing vim-volume-id which is provided through the
instantation parameters, then they are consumed while creating the new VDUs.

Change-Id: Ic3bd71ac7679ab0ccbe9ee0847e4a8d3059c7c58
Signed-off-by: aticig <gulsum.atici@canonical.com>
2 years agoRO Unit Tests for Feature: 10910 52/12152/4
elumalai [Wed, 1 Jun 2022 08:06:05 +0000 (13:36 +0530)]
RO Unit Tests for Feature: 10910

Added unit tests in RO for feature 10910 - Migration of
Openstack based VM instances

Change-Id: I2bbca8db3fd253fccbfcfb1e5aaf732b571dbfb2
Signed-off-by: elumalai <deepika.e@tataelxsi.co.in>
2 years agoFind the interface ports regardless of VM's existence 38/12238/3
aticig [Wed, 22 Jun 2022 19:03:37 +0000 (22:03 +0300)]
Find the interface ports regardless of VM's existence

This patch will find and delete the network interface ports regardless of VM's existence.
In healing feature, when the VM is deleted manually, network interfaces ports still
exist in the Openstack Cloud. If we check the network ports' presence according to vm_id,
those ports are not deleted and heal operation fails. This patch will find all the ports,
than deletion required interface will be deleted.

Change-Id: I139559844aa148109588f70f1472ee2e07d7df67
Signed-off-by: aticig <gulsum.atici@canonical.com>
2 years agoFeature 10911-Vertical scaling of VM instances from OSM 05/12005/13
sritharan [Thu, 5 May 2022 12:15:04 +0000 (12:15 +0000)]
Feature 10911-Vertical scaling of VM instances from OSM

Change-Id: Ie52edb13367a253ed3fc1a434ca2a170803035e4
Signed-off-by: sritharan <priyadarshini@tataelxsi.co.in>
2 years agoFeature 10922: Stop, start and rebuild 86/11986/11
k4.rahul [Mon, 2 May 2022 15:47:57 +0000 (15:47 +0000)]
Feature 10922: Stop, start and rebuild

Added support for feature start stop rebuild of VNF instances
Added unit test case for start stop rebuil of VNF instances

Change-Id: I09d2512084268c190f5ae9cfdaae41269c6bc069
Signed-off-by: k4.rahul <rahul.k4@tataelxsi.co.in>
2 years agoFix Bug 1607 Interface position is not taken into account 06/12206/4
aticig [Wed, 15 Jun 2022 22:28:29 +0000 (01:28 +0300)]
Fix Bug 1607 Interface position is not taken into account

This fix provides to attach interfaces to VNF according to the position order
which is defined in the VNFD.

Change-Id: Ibe17d63548c8b753f791de2440fec4c763fd8fe2
Signed-off-by: aticig <gulsum.atici@canonical.com>
2 years agoFixing Bug 1376 68/12168/3
aticig [Tue, 7 Jun 2022 12:00:35 +0000 (15:00 +0300)]
Fixing Bug 1376

This fix will check the port existence before deleting the port.
It will solve the error "Error deleting port: PortNotFoundClient".

Change-Id: I2b0b841c6111578e0d1a0cde9057eb3ab0b5a86a
Signed-off-by: aticig <gulsum.atici@canonical.com>
2 years agoUse interfaces_backup for healing 97/12197/3
garciadeblas [Mon, 13 Jun 2022 08:02:51 +0000 (10:02 +0200)]
Use interfaces_backup for healing

Change-Id: Idb2d950963754259163e23a0ed9ef1aafc3ce45e
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
2 years agoFeature 10909: Heal operation for VDU. Fix virtual machine deletion and volume deleti... 06/12006/2
palaciosj [Thu, 5 May 2022 14:59:36 +0000 (14:59 +0000)]
Feature 10909: Heal operation for VDU. Fix virtual machine deletion and volume deletion when terminating network service

Change-Id: Iffe66e3dcb87b0b24ee09fd74129b26dfd87c320
Signed-off-by: palaciosj <jmpalacios@indra.es>
2 years agoExtracting stage releasenotes script from stage-test.sh 77/12177/2
aticig [Tue, 7 Jun 2022 16:09:38 +0000 (19:09 +0300)]
Extracting stage releasenotes script from stage-test.sh

Release notes checking in stage-test.sh causes the failure in  merge and revert jobs.
So it is added as an separate script.

Change-Id: Ie20878cb4822ba72e9d81f3e6ede8dcd1f65d99e
Signed-off-by: aticig <gulsum.atici@canonical.com>
2 years agoFix Bug 2041: Backup VDU interfaces for healing features 25/12125/5
aticig [Wed, 25 May 2022 00:12:36 +0000 (03:12 +0300)]
Fix Bug 2041: Backup VDU interfaces for healing features

If a VDU is manually deleted in Openstack, the RO overwrites the
interfaces as an empty list. However, healing features (10909 and 10923) need the
interfaces information to heal the VDU again. This fix backups the interfaces of
VDU under interfaces_backup keyword.

Change-Id: I17ea28c2c4f486d0bbecdcbc5005413222bfeed9
Signed-off-by: aticig <gulsum.atici@canonical.com>
2 years agoUpdate paramiko version to 2.11.0 35/12135/3
aticig [Fri, 27 May 2022 07:50:21 +0000 (10:50 +0300)]
Update paramiko version to 2.11.0

Update paramiko version and increase auth_timeout and log paramiko operations
in order to fix Authentication Failed error during ssh key injection

Change-Id: I544850ae3ca5ff826b71deeacb71c5ab2308ee5a
Signed-off-by: aticig <gulsum.atici@canonical.com>
2 years agoFeature 10910: Migration of Openstack based VM instances 67/11967/22
elumalai [Thu, 28 Apr 2022 13:39:31 +0000 (19:09 +0530)]
Feature 10910: Migration of Openstack based VM instances

Added feature support for Migration of Openstack based VM instances
from OSM

Change-Id: I1e16c3ba323d284c30e4761aec614b18119691af
Signed-off-by: elumalai <deepika.e@tataelxsi.co.in>
2 years agoBug 2029 mempage-size is ignored 57/12057/7
rodriguezgar [Sat, 14 May 2022 22:42:45 +0000 (00:42 +0200)]
Bug 2029 mempage-size is ignored

Change-Id: I2ca791474b9a717413964f1b85d7659489702f14
Signed-off-by: rodriguezgar <frodriguezg@indra.es>
2 years agoLogging traceback for key injection error in robot tests 58/12058/6
aticig [Mon, 16 May 2022 20:03:54 +0000 (23:03 +0300)]
Logging traceback for key injection error in robot tests

Add traceback for key injection error in robot tests
and increase the paramiko ssh client timeout from 10s to 30s.

Change-Id: I4f0c24f550e98dc072210cebb36a57b4530818ac
Signed-off-by: aticig <gulsum.atici@canonical.com>
2 years agoFixes bug 2026 : Persistent volumes to be created in the same AZ as the VM that will... 39/12039/1
Alexis Romero [Thu, 12 May 2022 11:23:25 +0000 (13:23 +0200)]
Fixes bug 2026 : Persistent volumes to be created in the same AZ as the VM that will use them.

Change-Id: I1f4161aa4f7b294e1acf2b33ba3208480f09eacc
Signed-off-by: Alexis Romero <garomero@indra.es>
2 years agoFix Bug 2022: RO updating VIM details with null info when VM is in error state 10/12010/1
aticig [Fri, 6 May 2022 13:09:52 +0000 (16:09 +0300)]
Fix Bug 2022: RO updating VIM details with null info when VM is in error state

This patch prevents to override the vim_details when VM
is in error state. By this way, vim_details could be used for healing operations.
The messages regarding with the failure is kept in another key names "vim_message".

Change-Id: Ie0b73040074865a89d9ab2d447e20a8f3d38d520
Signed-off-by: aticig <gulsum.atici@canonical.com>
2 years agoFixing Black and Flake8 errors in RO master 94/11994/2
aticig [Mon, 2 May 2022 18:23:48 +0000 (21:23 +0300)]
Fixing Black and Flake8 errors in RO master

Change-Id: I401c94bc8bd67e03e2f039d69237187fd77c10f4
Signed-off-by: aticig <gulsum.atici@canonical.com>
2 years agoFeature 10909: Heal operation for VDU 50/11850/7
palaciosj [Thu, 24 Feb 2022 12:05:59 +0000 (12:05 +0000)]
Feature 10909: Heal operation for VDU

Change-Id: I4f15fca7874cfc443f09fa65855579e1318a899d
Signed-off-by: gallardo <sgallardor@indra.es>
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
Signed-off-by: palaciosj <jmpalacios@indra.es>
2 years agoFixes bug 2013 : Passing Anti-affinity group as additionalParamsForVnf 42/11942/5
Alexis Romero [Tue, 26 Apr 2022 17:24:40 +0000 (19:24 +0200)]
Fixes bug 2013 : Passing Anti-affinity group as additionalParamsForVnf

Change-Id: I4c14ef26cd78547cb74a19cdd50dbec9b40a0a93
Signed-off-by: Alexis Romero <garomero@indra.es>
2 years agoFix Bug 1911 Root disk cannot be a Persistent Volume 96/11796/7
aticig [Tue, 29 Mar 2022 10:15:45 +0000 (13:15 +0300)]
Fix Bug 1911 Root disk cannot be a Persistent Volume

By this fix, VNFs could have persistent root disk if the disk type is defined as persistent-storage.
Besides, the problem of creating unnecessary empty persistent volume is solved.

Change-Id: Id032701bba4ce71080c338bc7f112261ec98861e
Signed-off-by: aticig <gulsum.atici@canonical.com>
2 years agoFix Bug 1785 Openstack VIM connector failed Unittests 12/11812/3
aticig [Thu, 31 Mar 2022 19:03:33 +0000 (22:03 +0300)]
Fix Bug 1785 Openstack VIM connector failed Unittests

This patch fixes bug 1785 the Openstack VIM connector failed Unittests.
Openstack VIM unittests and coverage are also enabled in tox.ini.

Change-Id: I136a53a6f59c48a1681cfe3c87dbe9aada253a98
Signed-off-by: aticig <gulsum.atici@canonical.com>
2 years agoFeature 10906: Support for Anti-Affinity groups 47/11747/16
Alexis Romero [Fri, 11 Mar 2022 17:00:49 +0000 (18:00 +0100)]
Feature 10906: Support for Anti-Affinity groups

Change-Id: I5eabb222faf9a5422bfb729ff50984f23ac4b9ba
Signed-off-by: Alexis Romero <garomero@indra.es>
2 years agoAdded check for release notes 64/11764/2
garciadeblas [Tue, 15 Mar 2022 10:52:44 +0000 (11:52 +0100)]
Added check for release notes

Change-Id: Id6d0fb10e7bd56574c18a8c6750b2920353ea12f
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
2 years agoFix bug 1927 for EPA_04 test (exception management error) 74/11774/2
gallardo [Tue, 22 Mar 2022 16:59:51 +0000 (16:59 +0000)]
Fix bug 1927 for EPA_04 test (exception management error)

Change-Id: I3e75de24a12b7fc88ee63f68dfea0c6c87877905
Signed-off-by: gallardo <sgallardor@indra.es>
2 years agoFix Bug 1910 Enabling stage-test failing by tox results 51/11751/4
aticig [Fri, 11 Mar 2022 12:03:55 +0000 (15:03 +0300)]
Fix Bug 1910 Enabling stage-test failing by tox results

Change-Id: I9d8fd2104916a1b16fccb68d21126891ac512b9f
Signed-off-by: aticig <gulsum.atici@canonical.com>
2 years agoFix bug 1904 for EPA tests (no valid hostname) 54/11754/3
gallardo [Mon, 14 Mar 2022 18:16:41 +0000 (18:16 +0000)]
Fix bug 1904 for EPA tests (no valid hostname)

Change-Id: Ia2f2b71812e46f33144178d342c3559e54d8a03c
Signed-off-by: gallardo <sgallardor@indra.es>
2 years agoRefactor method deploy 74/11674/23
gallardo [Fri, 11 Feb 2022 12:41:59 +0000 (12:41 +0000)]
Refactor method deploy

This change removes the method `_process_items` and refactors the method
`deploy` to do the following tasks:

- `calculate_all_differences_to_deploy`: returns the list of items to be
  created and deleted
- `define_all_tasks`: creates all the task structures
- `upload_all_tasks`: saves all tasks in the common DB

Change-Id: I5cb59dd697875634a4a92df8673c9842a4578d5f
Signed-off-by: gallardo <sgallardor@indra.es>
2 years agoAdd log to trace task workflow 06/11606/8
gallardo [Mon, 31 Jan 2022 16:50:48 +0000 (16:50 +0000)]
Add log to trace task workflow

Change-Id: I7f65766ca22dad2f9cc3d2968bc10bc8f7a2779d
Signed-off-by: gallardo <sgallardor@indra.es>
2 years agoFix bug 1598 to update the time to refresh the status of CREATE task 37/11537/11
gallardo [Thu, 20 Jan 2022 09:07:08 +0000 (09:07 +0000)]
Fix bug 1598 to update the time to refresh the status of CREATE task

Change-Id: I350e0e8cbfb7818dcd26ffcb23799c16ff8282a2
Signed-off-by: gallardo <sgallardor@indra.es>
2 years agoFix bug 1859 for VNET supporting in a different resource group 26/11526/9
gallardo [Mon, 17 Jan 2022 17:37:51 +0000 (17:37 +0000)]
Fix bug 1859 for VNET supporting in a different resource group

Change-Id: Iaddd2515995eb4c49977c7c705b7634638bb3071
Signed-off-by: gallardo <sgallardor@indra.es>
2 years agoFix Bug1832-Use existing flavors with true 35/11535/5
preethika.p [Thu, 20 Jan 2022 07:24:18 +0000 (07:24 +0000)]
Fix Bug1832-Use existing flavors with true

Change-Id: I0025b2be85c4153f1812ebbb9108ea14b92770c8
Signed-off-by: preethika.p <preethika.p@tataelxsi.co.in>
2 years agoAdding header to release notes 48/11548/2
sousaedu [Tue, 25 Jan 2022 14:11:04 +0000 (14:11 +0000)]
Adding header to release notes

Change-Id: I66726de18610a4405f519371d0ca3edcec1eb252
Signed-off-by: sousaedu <eduardo.sousa@canonical.com>
2 years agoUpdating Dockerfile.local to align latest Bug-1849 47/11547/1
preethika.p [Tue, 25 Jan 2022 05:09:58 +0000 (05:09 +0000)]
Updating Dockerfile.local to align latest Bug-1849

Change-Id: I188fa8e7cbbd3ae5a02523c7ba68ffe2af870bb8
Signed-off-by: preethika.p <preethika.p@tataelxsi.co.in>
2 years agoBug 1849: LTS Support 21/11521/3
beierlm [Thu, 13 Jan 2022 18:21:53 +0000 (13:21 -0500)]
Bug 1849: LTS Support

Updates base to Ubuntu 20.04
Updates python to 3.8
Updates pip dependencies to more recent versions
Adds apt cache to stage 2 dockerfile

Fixes bug 1849

Change-Id: I8a589bbc76bb11f4bc0c42ebb727729da5c5c906
Signed-off-by: beierlm <mark.beierl@canonical.com>
2 years agoFix Bug 1781 RO does not create management networks where appropriate 90/11490/9
aticig [Fri, 10 Dec 2021 09:59:20 +0000 (12:59 +0300)]
Fix Bug 1781 RO does not create management networks where appropriate

If there is mgmt-network in the descriptor,
there is no mapping of that network to a VIM network in the descriptor,
also there is no mapping in the "--config" parameter or at VIM creation;
that mgmt-network will be created.

Change-Id: Ic3ba8bed0417c49bf7d205b91c04703c6aa1b6a3
Signed-off-by: aticig <gulsum.atici@canonical.com>
2 years agoExtracting Ns._process_vdu_params() and creating unit test 83/11483/7
sousaedu [Tue, 7 Dec 2021 15:33:46 +0000 (15:33 +0000)]
Extracting Ns._process_vdu_params() and creating unit test

Change-Id: Ie5bf2a57d85114d3eacc9a416004423a18d1f27c
Signed-off-by: sousaedu <eduardo.sousa@canonical.com>
2 years agoAdding Unit tests for TestVimInteractionNet Class 02/11502/13
aticig [Sat, 1 Jan 2022 08:42:23 +0000 (11:42 +0300)]
Adding Unit tests for TestVimInteractionNet Class

Unit tests are added for TestVIMInteractionNet Class which belongs to osm_ng_ro.ns_thread

Change-Id: I66a096083667c0c25f663b15cd5080850b69212b
Signed-off-by: aticig <gulsum.atici@canonical.com>
2 years agoEnabling Flake8 and import sorting 03/11503/2
sousaedu [Wed, 5 Jan 2022 11:39:35 +0000 (11:39 +0000)]
Enabling Flake8 and import sorting

Enabling flake8 verifications in tox.ini and adding import sorting.
All the plugins have been fixed for flake8 errors and the imports
have been sorted.

Change-Id: Icdefe9a877e891a683cc833315e4c3f94fffbab9
Signed-off-by: sousaedu <eduardo.sousa@canonical.com>
2 years agoRemoving Fog05 VIM RO Plugin 91/11491/5
sousaedu [Fri, 10 Dec 2021 14:53:11 +0000 (14:53 +0000)]
Removing Fog05 VIM RO Plugin

Change-Id: I90e81463ac804d52ea65635f5da6386c2cc3e7df
Signed-off-by: sousaedu <eduardo.sousa@canonical.com>
2 years agoExtracting Ns._process_net_params() and creating unit test 79/11479/4
sousaedu [Mon, 6 Dec 2021 00:17:54 +0000 (00:17 +0000)]
Extracting Ns._process_net_params() and creating unit test

Change-Id: I97165a76371cdf46e472642e3d75d95ef5256650
Signed-off-by: sousaedu <eduardo.sousa@canonical.com>
2 years agoExtracting Ns._ip_profile_to_ro() and creating unit test 78/11478/1
sousaedu [Sun, 5 Dec 2021 19:31:03 +0000 (19:31 +0000)]
Extracting Ns._ip_profile_to_ro() and creating unit test

Change-Id: I0a04a7b2cbe24660529389926f7b4d51f010ca7d
Signed-off-by: sousaedu <eduardo.sousa@canonical.com>
2 years agoExtracting Ns._process_flavor_params() and creating unit test 04/11404/11
sousaedu [Wed, 24 Nov 2021 02:16:11 +0000 (02:16 +0000)]
Extracting Ns._process_flavor_params() and creating unit test

Change-Id: I7146a1a7a2fa703443bf218be351e39f6d98d699
Signed-off-by: sousaedu <eduardo.sousa@canonical.com>
2 years agoRevert "Revert "Removing OpenNebula code"" 71/11471/1
almagia [Wed, 1 Dec 2021 08:52:30 +0000 (09:52 +0100)]
Revert "Revert "Removing OpenNebula code""

This reverts commit 37d0befd4a0e244c1fee3ea0ea68be23f89b7c1d.

Requested by TSC

Change-Id: I4c53c0fcb29acef1ee082acd28738296ea7e8a80

2 years agoRevert "Removing OpenNebula code" 67/11467/1
sousaedu [Tue, 30 Nov 2021 21:00:20 +0000 (21:00 +0000)]
Revert "Removing OpenNebula code"

This reverts commit 5af67b3295859894c458e94c979834e6a20ffb52.

Change-Id: I0d758b038057af83df007c153a7baa23e974c7c0
Signed-off-by: sousaedu <eduardo.sousa@canonical.com>
2 years agoRemoving OpenNebula code 62/11462/1
sousaedu [Tue, 30 Nov 2021 16:16:16 +0000 (16:16 +0000)]
Removing OpenNebula code

Change-Id: Iae91ed12897a6d99b37b13585a9aefd556069d8c
Signed-off-by: sousaedu <eduardo.sousa@canonical.com>
2 years agoFix bug 1807 - Disabling RO OpenNebula plugin 49/11449/8
sousaedu [Mon, 29 Nov 2021 09:28:15 +0000 (09:28 +0000)]
Fix bug 1807 - Disabling RO OpenNebula plugin

Change-Id: I52a7947450d83b91fac92170348f7d474a878d97
Signed-off-by: sousaedu <eduardo.sousa@canonical.com>
3 years agoExtracting Ns._get_resource_allocation_params() and creating unit test 93/11393/1
sousaedu [Mon, 22 Nov 2021 23:56:28 +0000 (23:56 +0000)]
Extracting Ns._get_resource_allocation_params() and creating unit test

Change-Id: I5081c94f48a745b957cb2410403830812a5a1913
Signed-off-by: sousaedu <eduardo.sousa@canonical.com>
3 years agoFix bug 1798 - adding swap disks 84/11384/4
sousaedu [Mon, 22 Nov 2021 14:09:15 +0000 (14:09 +0000)]
Fix bug 1798 - adding swap disks

Change-Id: I447a1da59d1efdd9209950a185b819e32c696012
Signed-off-by: sousaedu <eduardo.sousa@canonical.com>
3 years agoFix bug 1797 - adding ephemeral disks 83/11383/4
sousaedu [Mon, 22 Nov 2021 14:02:17 +0000 (14:02 +0000)]
Fix bug 1797 - adding ephemeral disks

Change-Id: Ie29e598271b1aa5ab78d65826f513c31d0b580be
Signed-off-by: sousaedu <eduardo.sousa@canonical.com>
3 years agoExtracting Ns._process_image_params() and creating unit test 79/11379/4
sousaedu [Sun, 21 Nov 2021 16:21:13 +0000 (16:21 +0000)]
Extracting Ns._process_image_params() and creating unit test

Extracted the _process_image_params() to ease the testability of that code.
Introduced a unit test to cover that function.

Change-Id: I84ab38b5921deeea25376e433af7e374f436238e
Signed-off-by: sousaedu <eduardo.sousa@canonical.com>
3 years agoExtracting Ns._create_ro_task() and creating unit test 74/11374/1
sousaedu [Fri, 19 Nov 2021 16:41:38 +0000 (16:41 +0000)]
Extracting Ns._create_ro_task() and creating unit test

Extracted the _create_ro_task() to ease the testability of that code.
Introduced a unit test to cover that function.

Change-Id: I684ba7fc63e1d77545c84517024f541a9e630573
Signed-off-by: sousaedu <eduardo.sousa@canonical.com>
3 years agoExtracting Ns._create_task() and creating unit test 72/11372/2
sousaedu [Fri, 19 Nov 2021 01:01:32 +0000 (01:01 +0000)]
Extracting Ns._create_task() and creating unit test

Extracted the _create_task() to ease the testability of that code.
Introduced a unit test to cover that function.
Re-enabled unit tests and black now is mandatory.

Change-Id: I6b304b14b60b182dee6b274cf95228a81ddc2771
Signed-off-by: sousaedu <eduardo.sousa@canonical.com>
3 years agoFix bug 1733 to add integration tests to GCP 32/11332/9
gallardo [Thu, 11 Nov 2021 10:58:29 +0000 (10:58 +0000)]
Fix bug 1733 to add integration tests to GCP

Change-Id: I9359a83720fd644a56dd53ef784ee55e91398f41
Signed-off-by: gallardo <sgallardor@indra.es>
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
3 years agoFix bug 1763 - adding support for persistent volumes 44/11344/2
sousaedu [Thu, 11 Nov 2021 22:00:27 +0000 (22:00 +0000)]
Fix bug 1763 - adding support for persistent volumes

Change-Id: I5691f7d7b1cc5b72e676c4181c94c9aee620cbd4
Signed-off-by: sousaedu <eduardo.sousa@canonical.com>
3 years agoFix bug 1735 to assign floating IP addresses only when use_floating_ip set to true 09/11309/1
garciadeblas [Mon, 8 Nov 2021 09:30:56 +0000 (10:30 +0100)]
Fix bug 1735 to assign floating IP addresses only when use_floating_ip set to true

Change-Id: I9d3eb727ae0c9954082b63ea416c57b1217bfb46
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
3 years agoGoogle Cloud connector 46/11246/41 release-v11.0-start
gallardo [Fri, 8 Oct 2021 11:50:00 +0000 (11:50 +0000)]
Google Cloud connector

Change-Id: Ic6c834c6f0f538950c6afcb81f045850712886d2
Signed-off-by: gallardo <sgallardor@indra.es>
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
3 years agoFix bug 1725 to indicate region during NIC creation in Azure connector 96/11296/2
garciadeblas [Tue, 26 Oct 2021 16:38:49 +0000 (18:38 +0200)]
Fix bug 1725 to indicate region during NIC creation in Azure connector

Change-Id: I45d68d1ea840fa6f64030a1f85839d89fa6d406e
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
3 years agoRemoving networking-l2gw as a dependency 34/11134/5
sousaedu [Tue, 31 Aug 2021 21:47:58 +0000 (22:47 +0100)]
Removing networking-l2gw as a dependency

Change-Id: I766c32f5387b0209dc998aabd9440a6123b57961
Signed-off-by: sousaedu <eduardo.sousa@canonical.com>
3 years agoFix bug 1598 - tweaking timings in the locks 63/11063/2
sousaedu [Thu, 15 Jul 2021 09:48:14 +0000 (11:48 +0200)]
Fix bug 1598 - tweaking timings in the locks

Tweaking the locking timings to see if it decreases starvation locks.

Change-Id: If62aa28d5652dc707a1eebee22a25353bcb76ae9
Signed-off-by: sousaedu <eduardo.sousa@canonical.com>
3 years agoFix bug 1572 - Reading availability-zone-hint for neutron from config 26/11026/3
sousaedu [Thu, 17 Jun 2021 14:39:29 +0000 (15:39 +0100)]
Fix bug 1572 - Reading availability-zone-hint for neutron from config

Fixes bug 1572 by reading the neutron-availability-zone-hint from VIM
plugin configuration, which is then applied at network-creation time.

Note: this patch also fixes some formatting issues that black showed.

Change-Id: Iaf152657ae31748ea6b4a123e8b0a0d9513cb692
Signed-off-by: sousaedu <eduardo.sousa@canonical.com>
3 years agoFix bug 1544 to read properly size capabilities in Azure 92/10892/7
garciadeblas [Thu, 27 May 2021 10:00:30 +0000 (12:00 +0200)]
Fix bug 1544 to read properly size capabilities in Azure

Change-Id: Iff772db93b2d862848361ad40276dc8185379d63
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
3 years agoFeature 10591: Azure connector 88/10788/8
lloretgalleg [Wed, 31 Mar 2021 07:12:06 +0000 (07:12 +0000)]
Feature 10591: Azure connector

Change-Id: Ie3651177f5c228e408887af8baa647222fd51927
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
3 years agoFix bug 1537 to send dummy message to all kafka topics during startup 54/10854/2
garciadeblas [Thu, 20 May 2021 11:08:05 +0000 (13:08 +0200)]
Fix bug 1537 to send dummy message to all kafka topics during startup

Change-Id: I1ceeae4236f45fad1c971276412c71b6eb67c9de
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
3 years agoReformat missing files to standardized Python to pass black check 53/10853/2 release-v10.0-start
garciadeblas [Fri, 14 May 2021 15:22:01 +0000 (17:22 +0200)]
Reformat missing files to standardized Python to pass black check

Change-Id: If0a656e88c1b08d6ed225918906c82b26b6b4115
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
3 years agoFixing language environment variables in stage2 dockerfile 56/10856/1
sousaedu [Thu, 20 May 2021 13:20:14 +0000 (15:20 +0200)]
Fixing language environment variables in stage2 dockerfile

Change-Id: I7332799da5f4d96ad09156bae2f1814552be0d1b
Signed-off-by: sousaedu <eduardo.sousa@canonical.com>
3 years agoRevert "Revert "Removing deprecated/unused/outdated code"" 20/10820/2
almagia [Mon, 17 May 2021 08:21:57 +0000 (10:21 +0200)]
Revert "Revert "Removing deprecated/unused/outdated code""

This reverts commit 51cc9c4c78bb54c84a5d2399207d206eb30ea247.

Approved by TSC

Change-Id: I43a29c6d2830e515cefbc9aab676aafcb1bb5112

3 years agoFix 1475 - Incorrect description in instantiating error 85/10785/1
sousaedu [Tue, 11 May 2021 11:22:37 +0000 (13:22 +0200)]
Fix 1475 - Incorrect description in instantiating error

Change-Id: I099c07f8a66400fa4d3130d6234dd17867ad387f
Signed-off-by: sousaedu <eduardo.sousa@canonical.com>
3 years agoIncluding upstream requirements 94/10694/2
beierlm [Thu, 22 Apr 2021 17:01:09 +0000 (13:01 -0400)]
Including upstream requirements

Now that internal OSM software does not specify python modules in
setup.py, we need to include the requirements.txt from the module
in the requirements-dev.in to generate the full list properly.

Change-Id: Iba7ef22a84371077f687b837d96d0397d72d7722
Signed-off-by: beierlm <mark.beierl@canonical.com>
3 years agoFixed bug 1452: Deploy KNF on dummy VIM 03/10703/2
lloretgalleg [Fri, 23 Apr 2021 11:25:09 +0000 (11:25 +0000)]
Fixed bug 1452: Deploy KNF on dummy VIM

Change-Id: I21160233b99a1cfe27ec2bbc3ab3005a81160d84
Signed-off-by: lloretgalleg <illoret@indra.es>
3 years agoAdding release_notes to tox 41/10641/3 branch-ng-ro-refactor-start branch-sol006v331-start
sousaedu [Wed, 14 Apr 2021 23:18:59 +0000 (01:18 +0200)]
Adding release_notes to tox

Change-Id: Ic003e61f79dd967b2eabbf49bf82c3915f23976a
Signed-off-by: sousaedu <eduardo.sousa@canonical.com>
3 years agoUse template for scanners 69/10669/2
beierlm [Mon, 19 Apr 2021 19:42:10 +0000 (15:42 -0400)]
Use template for scanners

Update the gitlab ci file to use the same standard template that
all the other OSM projects use

Change-Id: I6412a1b5b035561d768e6fbf8b3208f7a19456cb
Signed-off-by: beierlm <mark.beierl@canonical.com>
3 years agoAdding hierarchical requirements.in 22/10622/7
sousaedu [Tue, 13 Apr 2021 10:59:54 +0000 (12:59 +0200)]
Adding hierarchical requirements.in

Change-Id: I20783795754989ef7a9873d91a3a0b6d4f3033c5
Signed-off-by: sousaedu <eduardo.sousa@canonical.com>
3 years agoAdding initial release notes 25/10525/4
sousaedu [Tue, 23 Mar 2021 00:02:02 +0000 (01:02 +0100)]
Adding initial release notes

Change-Id: I60be7e49bc9f0bc9b42f9c2dc5a4be4bf204e8a5
Signed-off-by: sousaedu <eduardo.sousa@canonical.com>
3 years agoRevert "Removing deprecated/unused/outdated code" 12/10612/1
sousaedu [Fri, 9 Apr 2021 16:03:02 +0000 (18:03 +0200)]
Revert "Removing deprecated/unused/outdated code"

This reverts commit 9f40121f66e644ddf700720d8d4bdf464f6dd414.

Change-Id: I3a414c4f253285c87b662af89ec418b762c0c44b
Signed-off-by: sousaedu <eduardo.sousa@canonical.com>
3 years agoRemoving deprecated/unused/outdated code 09/10609/2
sousaedu [Fri, 9 Apr 2021 13:52:44 +0000 (15:52 +0200)]
Removing deprecated/unused/outdated code

Change-Id: I067cf651b0a49ec4427aef4b82f2d86bf3002ffd
Signed-off-by: sousaedu <eduardo.sousa@canonical.com>
3 years agoAdding cover to tox.ini default envs 02/10602/1
sousaedu [Thu, 8 Apr 2021 19:43:09 +0000 (21:43 +0200)]
Adding cover to tox.ini default envs

Change-Id: I258ebfa6fca69ff3f39e90230743ccce3c66890f
Signed-off-by: sousaedu <eduardo.sousa@canonical.com>
3 years agoFixing Dockerfile.local 96/10596/5
sousaedu [Thu, 8 Apr 2021 09:53:34 +0000 (11:53 +0200)]
Fixing Dockerfile.local

Change-Id: I711dc0a8a3d8eeb0509611ef41b86b884a8d1fd3
Signed-off-by: sousaedu <eduardo.sousa@canonical.com>
3 years agoBugfix 1491: Replacing pkg_resources for importlib.metadata 95/10595/2
sousaedu [Wed, 7 Apr 2021 22:16:18 +0000 (00:16 +0200)]
Bugfix 1491: Replacing pkg_resources for importlib.metadata

Change-Id: I729ee2d5d3628c30a0a265978a355eb26f3a9bb2
Signed-off-by: sousaedu <eduardo.sousa@canonical.com>
3 years agoPip standerdization and tox replacement 55/10355/28
sousaedu [Thu, 18 Feb 2021 13:57:01 +0000 (14:57 +0100)]
Pip standerdization and tox replacement

Change-Id: Ic8e6495c9c0a4b46e876fb9f2f8376b7c210f545
Signed-off-by: sousaedu <eduardo.sousa@canonical.com>
3 years agoFix bug 1407 12/10412/5
sousaedu [Mon, 1 Mar 2021 23:15:52 +0000 (00:15 +0100)]
Fix bug 1407

Change-Id: I694f47c2403983c87850447f027f370a6f375eb2
Signed-off-by: sousaedu <eduardo.sousa@canonical.com>
3 years agoFix bug 1408 14/10414/1
sousaedu [Tue, 2 Mar 2021 00:42:51 +0000 (01:42 +0100)]
Fix bug 1408

Change-Id: I6ab12eb0aa9532676642cbf59db8ccc2f33c420b
Signed-off-by: sousaedu <eduardo.sousa@canonical.com>
3 years agoFix bug 1446: NS ends in state BUILDING 50/10350/1
lloretgalleg [Fri, 19 Feb 2021 12:06:52 +0000 (12:06 +0000)]
Fix bug 1446: NS ends in state BUILDING

Change-Id: Ideb6f0ac72637aca78d1b8906581409e153c4c7d
Signed-off-by: lloretgalleg <illoret@indra.es>
3 years agoFix bug 1445: Error service with SRIOV interfaces 49/10349/1
lloretgalleg [Fri, 19 Feb 2021 10:57:50 +0000 (10:57 +0000)]
Fix bug 1445: Error service with SRIOV interfaces

Change-Id: I838bbe41188b17f023569e2fdbd34173070b457c
Signed-off-by: lloretgalleg <illoret@indra.es>
3 years agoReformatting RO 34/10334/3
sousaedu [Wed, 17 Feb 2021 14:05:18 +0000 (15:05 +0100)]
Reformatting RO

Change-Id: I86e6a102b5bf2e0221b29096bbb132ca656844c5
Signed-off-by: sousaedu <eduardo.sousa@canonical.com>
3 years agoFixing bug 1437 82/10282/5
sousaedu [Tue, 9 Feb 2021 14:30:01 +0000 (15:30 +0100)]
Fixing bug 1437

This patchset fixes bug 1437. There will need to be done extra
changes to make logging better.

Change-Id: I2b0e477093eba798c6cd4ce7bcc105ee78b610ed
Signed-off-by: sousaedu <eduardo.sousa@canonical.com>
3 years agoPartial fix for Bug 1408 51/10251/4
sousaedu [Wed, 3 Feb 2021 14:03:44 +0000 (15:03 +0100)]
Partial fix for Bug 1408

This fixes the access to a non-exisiting key.
There is another bug that is causing this in LCM (bug 1431).

Change-Id: Ied80beb56657ead95eefa9ed967eca84e623f9c3
Signed-off-by: sousaedu <eduardo.sousa@canonical.com>
3 years agoTesting security scanners 80/10180/2
sousaedu [Fri, 15 Jan 2021 12:14:13 +0000 (12:14 +0000)]
Testing security scanners

Change-Id: I0e019b81a636a6fafbf7dab18b36241c89b98942
Signed-off-by: sousaedu <eduardo.sousa@canonical.com>
3 years agofix 1386: enhance on lock procedure 91/10091/3
tierno [Wed, 9 Dec 2020 15:06:01 +0000 (15:06 +0000)]
fix 1386: enhance on lock procedure

locking of ro_tasks for HA enhancements:
- lock time is configurable by ro.cfg or ENV
(OSMRO_SERVER_TASK_LOCKED_TIME)
- lock time is reduced to 10min by default
- lock is renewed when needed by a new asyncio task at vim_admin

Change-Id: Icae02803e57713aca2f028884142fa152ee3d032
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
3 years agofix 1385: enhance unload vim from ns_thread when not needed 80/10080/6
tierno [Sun, 6 Dec 2020 18:27:16 +0000 (18:27 +0000)]
fix 1385: enhance unload vim from ns_thread when not needed

control of threads in in idle status (without vims to process)
and reuse it when needed

Change-Id: Ib7c5023eec18229fb86a1632b63aca5aef8d2a14
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
3 years agoremove osm-im dependency from generated debian package 43/10143/1
tierno [Thu, 17 Dec 2020 22:55:31 +0000 (22:55 +0000)]
remove osm-im dependency from generated debian package

Change-Id: I6f7248a4c0b7204f1f37dab9aab0c4db6a96fa99
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
3 years agoremove osm-im instalation at debug Dockerfile.local 90/10090/1 release-v9.0-start v9.0.0 v9.0.0rc1
tierno [Wed, 9 Dec 2020 18:19:34 +0000 (18:19 +0000)]
remove osm-im instalation at debug Dockerfile.local

Change-Id: I41b3514a502016cf3b23914b1f92a8ca494f6034
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
3 years agoremoved im dependency for NG-RO 88/10088/1
lloretgalleg [Wed, 9 Dec 2020 11:59:17 +0000 (11:59 +0000)]
removed im dependency for NG-RO

Change-Id: I5902969bc65d697543bea2bc26acadf57ace3055
Signed-off-by: lloretgalleg <illoret@indra.es>
3 years agofix error on task_depends not defined 87/10087/2
tierno [Tue, 8 Dec 2020 23:11:53 +0000 (23:11 +0000)]
fix error on task_depends not defined

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