osm/LCM.git
5 days agoBug 2056 - _on_update_k8s_db and _on_update_n2vc_db take too much time on large models 53/12153/2 master
Guillermo Calvino [Wed, 1 Jun 2022 08:55:58 +0000 (10:55 +0200)]
Bug 2056 - _on_update_k8s_db and _on_update_n2vc_db take too much time on large models

Change-Id: Ifb8fff0b5a3f03821fea4863d6d8e6a51e0a3da0
Signed-off-by: Guillermo Calvino <guillermo.calvino@canonical.com>
11 days agoManual update of pip requirements 59/12259/1 release-v12.0-start
beierlm [Sat, 25 Jun 2022 01:17:53 +0000 (21:17 -0400)]
Manual update of pip requirements

Change-Id: Iefd554bf703f44223b53f5395da163676e7ddef9
Signed-off-by: beierlm <mark.beierl@canonical.com>
13 days agoFeature 10911-Vertical scaling of VM instances from OSM 84/11984/12
govindarajul [Mon, 2 May 2022 14:32:41 +0000 (20:02 +0530)]
Feature 10911-Vertical scaling of VM instances from OSM

Added implementation code for Vertical Scaling of VDUs in OSM LCM

Review comments addressed
Change-Id: If36df196ecbadc6f1f348bd9d43f3b7cf0365602
Signed-off-by: govindarajul <Jayaprakash.g@tataelxsi.co.in>
2 weeks agoFix Bug 2028 Multi-site VNF creation fails 99/12199/4
aticig [Tue, 14 Jun 2022 00:01:36 +0000 (03:01 +0300)]
Fix Bug 2028 Multi-site VNF creation fails

This fix will provide to use  the vim_network_name from instantiation parameters if it exists,
if not, network which is given in NSD will be used for the NS which is instantiated on multi-site VIMs.

Change-Id: Ie39e3444428474c8db01d59ef1a1995644ea6a81
Signed-off-by: aticig <gulsum.atici@canonical.com>
2 weeks agoFeature 10922: Stop, start and rebuild 87/11987/7
k4.rahul [Mon, 2 May 2022 16:35:02 +0000 (16:35 +0000)]
Feature 10922: Stop, start and rebuild

Added support for feature start stop rebuild of VNF instances
Added unit test case for feature start stop rebuild of VNF instances
Change-Id: I4a56fc116c998d0698be7e97118ce85207814b4b
Signed-off-by: k4.rahul <rahul.k4@tataelxsi.co.in>
3 weeks agoFeature 10909: Heal operation for VDU 49/11849/7
garciadeblas [Thu, 9 Jun 2022 07:42:58 +0000 (09:42 +0200)]
Feature 10909: Heal operation for VDU

Change-Id: I609dc47a2253fc40bc712479eafac18b7d653785
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
Signed-off-by: gallardo <sgallardor@indra.es>
Signed-off-by: palaciosj <jmpalacios@indra.es>
3 weeks agoFix for test_remove_vnf failing in Heal VDU 92/12192/1
elumalai [Fri, 10 Jun 2022 09:58:49 +0000 (15:28 +0530)]
Fix for test_remove_vnf failing in Heal VDU

Change-Id: I0283d3d2c1f709f991d07fac7276cba1244bbd6b
Signed-off-by: elumalai <deepika.e@tataelxsi.co.in>
4 weeks agoFix Bug 2012 use existing volumes as instantiation parameters 83/12083/4
aticig [Thu, 19 May 2022 09:29:35 +0000 (12:29 +0300)]
Fix Bug 2012 use existing volumes as instantiation parameters

This fix parses the vdu instantiation parameters regarding with the persistent
volumes and than RO can process it.
Additionally corrected some Black and Flake8 errors.

Change-Id: If6fb41684555364914af52af334d70f794f133a2
Signed-off-by: aticig <gulsum.atici@canonical.com>
5 weeks agoUse revision number for updated vnfd 41/12141/3
aticig [Mon, 30 May 2022 17:45:55 +0000 (20:45 +0300)]
Use revision number for updated vnfd

This patch fixes the Robot Basic 25 after NBI patch 12071.

Change-Id: Iec98a7b9b61f2c8f59fafaacaf586669b1eaa10d
Signed-off-by: aticig <gulsum.atici@canonical.com>
5 weeks agoBug 2050 fixed: avoid trying to insert pk in a VM for a KNF VCA 36/12136/3
Pedro Escaleira [Mon, 30 May 2022 14:37:01 +0000 (15:37 +0100)]
Bug 2050 fixed: avoid trying to insert pk in a VM for a KNF VCA

Change-Id: I62bb34d29848c57fda2af6556d5e8fce6795f0c8
Signed-off-by: Pedro Escaleira <escaleira@av.it.pt>
5 weeks agoBug 1999 fixed: DeployedK8sResource is now obtaining the model name from the namespace 02/11902/2
Pedro Escaleira [Wed, 20 Apr 2022 17:00:17 +0000 (18:00 +0100)]
Bug 1999 fixed: DeployedK8sResource is now obtaining the model name from the namespace

Change-Id: Id7e08031097b3a1e66475c49af4fe1cfd233930e
Signed-off-by: Pedro Escaleira <escaleira@av.it.pt>
5 weeks agoBug 2000 fixed: the namespace for the Juju Bundle is now updated within the KDU insta... 09/11909/14
Pedro Escaleira [Thu, 21 Apr 2022 15:31:06 +0000 (16:31 +0100)]
Bug 2000 fixed: the namespace for the Juju Bundle is now updated within the KDU installation

Change-Id: If0d863ad8a9c53c12a9385e68bf3bf9d4cb06682
Signed-off-by: Pedro Escaleira <escaleira@av.it.pt>
5 weeks agoFixes bug 2031: Increasing KDU instantiation timeout from 10 to 30 minutes. 70/12070/5
Alexis Romero [Tue, 17 May 2022 16:18:02 +0000 (18:18 +0200)]
Fixes bug 2031: Increasing KDU instantiation timeout from 10 to 30 minutes.

Change-Id: I402cf3987db41220abdb4196ea42339e41ddd2c7
Signed-off-by: Alexis Romero <garomero@indra.es>
5 weeks agoFeature 10904: Make all deployment methods optional for K8s cluster 73/11773/3
Gabriel Cuba [Tue, 22 Mar 2022 16:12:12 +0000 (11:12 -0500)]
Feature 10904: Make all deployment methods optional for K8s cluster

Change-Id: I0901d946096bb07d38efbba8b5bbd3c24f36cd2d
Signed-off-by: Gabriel Cuba <gcuba@whitestack.com>
5 weeks agoFeature 10912: NS Update Change VNF Package for SW Changes 43/11943/13
elumalai [Wed, 27 Apr 2022 04:28:38 +0000 (09:58 +0530)]
Feature 10912: NS Update Change VNF Package for SW Changes

Added support for feature Change VNF Package in NS Update

Change-Id: I03161ddca656b861d0cc10be0067fbfa7e32eb2f
Signed-off-by: elumalai <deepika.e@tataelxsi.co.in>
5 weeks agoFeature 10916 Remove VNF Instance from NS - NS Update 76/11876/14
elumalai [Tue, 12 Apr 2022 07:17:32 +0000 (12:47 +0530)]
Feature 10916 Remove VNF Instance from NS - NS Update

Added feature support to remove a VNF using NS Update
Added unit test cases

Change-Id: Ib8f8309544502fd8e580b8e62bcabb7dee64fddc
Signed-off-by: elumalai <deepika.e@tataelxsi.co.in>
6 weeks agoadded namespace argument to the N2VC's KDU uninstall function call 13/11913/5
Pedro Escaleira [Thu, 21 Apr 2022 23:46:14 +0000 (00:46 +0100)]
added namespace argument to the N2VC's KDU uninstall function call

This is needed for the fix to the N2VC's bug 1995. This because when
uninstalling a KDU based on Helm Charts, we need to know thenamespace/model
associated to the Juju Bundle. However, if we try to obtain the
namespace from the database in the uninstall method on N2VC, most of the
times the nsrs associated data was already removed, which means that
N2VC will not be able to obtain it there (in the end, the
model/namespace is not removed). The most easy way is to pass the
namespace to the method, as done here.

Change-Id: I70bf67b301aa3036c9456f5c2c9c5d3176f7b58e
Signed-off-by: Pedro Escaleira <escaleira@av.it.pt>
6 weeks agoFeature 10910: Migration of Openstack based VM instances 65/11965/4
elumalai [Thu, 28 Apr 2022 12:35:01 +0000 (18:05 +0530)]
Feature 10910: Migration of Openstack based VM instances

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

Change-Id: If0263ce05aff34ff008fef850f8861146b10c2dd
Signed-off-by: elumalai <deepika.e@tataelxsi.co.in>
6 weeks agoFeature 10908: LCM process NS update request 78/11878/17
aticig [Tue, 12 Apr 2022 12:27:53 +0000 (15:27 +0300)]
Feature 10908: LCM process NS update request

This feature updates the running VNF instance in a network service.

Change-Id: I5531cdf1b977aff3508da5f105accff34d6817e0
Signed-off-by: aticig <gulsum.atici@canonical.com>
6 weeks agoFeature 10908: LCM process NS update request 88/11988/2
aticig [Mon, 2 May 2022 16:49:23 +0000 (19:49 +0300)]
Feature 10908: LCM process NS update request

This feature updates the running VNF instance in a network service.
It includes the method upgrade charms in VNFs.
Change-Id: I98867cd5db8053a66612ce130fbe4d053ffd6dcd
Signed-off-by: aticig <gulsum.atici@canonical.com>
7 weeks agoAdd unit tests for osm_config 19/12019/2
David Garcia [Mon, 9 May 2022 14:18:27 +0000 (16:18 +0200)]
Add unit tests for osm_config

Change-Id: Ica9caf96191808dd27036dbd9b14ff0837d5393c
Signed-off-by: David Garcia <david.garcia@canonical.com>
8 weeks agoFix bug 2025: Execute Helm Kdu actions in Proxy charms 28/12028/1
David Garcia [Tue, 10 May 2022 12:07:12 +0000 (14:07 +0200)]
Fix bug 2025: Execute Helm Kdu actions in Proxy charms

Change-Id: Ief88be9a49b00d6f8ae96ea0dfd85c4665aca9b9
Signed-off-by: David Garcia <david.garcia@canonical.com>
2 months agoAdd implicit osm-config configuration parameter to charm 71/11971/2
David Garcia [Fri, 29 Apr 2022 03:50:46 +0000 (05:50 +0200)]
Add implicit osm-config configuration parameter to charm

- feature 10800: day-2 primitives for Helm Charts
- osm-config is only used for now in KDUs

Change-Id: I7c8c3f8d4c7d5281038b243de48d704f781b5d47
Signed-off-by: David Garcia <david.garcia@canonical.com>
2 months agoBug 1957 fixed: added the functionality of obtaining the KDU status for KNFs based... 18/11818/14
Pedro Escaleira [Fri, 1 Apr 2022 00:49:22 +0000 (01:49 +0100)]
Bug 1957 fixed: added the functionality of obtaining the KDU status for KNFs based on both versions of Helm Charts

Change-Id: I4e94f96a3b65d5976ae5166f014b4e57a3bd7718
Signed-off-by: Pedro Escaleira <escaleira@av.it.pt>
3 months agoBug 1949 fixed to update the deploy_params_kdu dict instead of overwriting it 03/11803/4
Pedro Escaleira [Wed, 30 Mar 2022 23:08:05 +0000 (00:08 +0100)]
Bug 1949 fixed to update the deploy_params_kdu dict instead of overwriting it

Change-Id: I47ffa741679a6942bd3f4e46ec0a382e8a55422c
Signed-off-by: Pedro Escaleira <escaleira@av.it.pt>
3 months agoFix bug 1865: Manually scaling VDU from 0 to 1 instance fails 72/11772/2
vegall [Tue, 22 Mar 2022 16:23:30 +0000 (16:23 +0000)]
Fix bug 1865: Manually scaling VDU from 0 to 1 instance fails

Now it's possible scale to 0 and then scale back to 1 again

Change-Id: I295f1ae34d15da0186ba470897a9d6834fe9168b
Signed-off-by: vegall <lvega@whitestack.com>
3 months agoFeature 10906: Support for Anti-Affinity groups 46/11746/3
Alexis Romero [Fri, 11 Mar 2022 14:29:18 +0000 (15:29 +0100)]
Feature 10906: Support for Anti-Affinity groups

Change-Id: Ibea6072b6907815d8be80ccb532e17221503f71a
Signed-off-by: Alexis Romero <garomero@indra.es>
3 months agoFix Bug 1425 NG-RO unable to pin VNF with vim_account config 46/11546/9
aticig [Mon, 24 Jan 2022 09:51:26 +0000 (12:51 +0300)]
Fix Bug 1425 NG-RO unable to pin VNF with vim_account config

If vnf vim-accounts has been changed during instantiation,
the binding between new vim-account information and
ns vld is provided through this fix.
Fixing some code format errors

Change-Id: I183c01d284047d5e49b7219eb88e6d85c0e2666c
Signed-off-by: aticig <gulsum.atici@canonical.com>
4 months agoBug 1875 - Scale of KDUs fails when the KDU is instantiated with additional params 20/11620/3
Guillermo Calvino [Wed, 2 Feb 2022 18:04:50 +0000 (19:04 +0100)]
Bug 1875 - Scale of KDUs fails when the KDU is instantiated with additional params

Change-Id: Id51434772bbcc4ccdc50d6bde6c559e835c640dc
Signed-off-by: Guillermo Calvino <guillermo.calvino@canonical.com>
5 months agoBug 1841: LTS Support helm 12/11612/6
aticig [Tue, 1 Feb 2022 12:51:29 +0000 (15:51 +0300)]
Bug 1841: LTS Support helm

Helm versions in LCM has been upgraded to  2.17.0 and 3.7.2.

Change-Id: I5f59fa180afa913d029ba6a7484e0f26cbbf6f86
Signed-off-by: aticig <gulsum.atici@canonical.com>
5 months agoBug 1837 fix - Fix issue executing actions 14/11614/1
Guillermo Calvino [Tue, 1 Feb 2022 17:59:50 +0000 (18:59 +0100)]
Bug 1837 fix - Fix issue executing actions

Change-Id: Ia0bf89036b7601f1ba9f3fe9b724c6693f1ea79a
Signed-off-by: Guillermo Calvino <guillermo.calvino@canonical.com>
5 months agoBug 1837 fix - Helm based KNF cannot be instantiated if values files contains a label... 88/11588/3
Guillermo Calvino [Wed, 26 Jan 2022 16:40:31 +0000 (17:40 +0100)]
Bug 1837 fix - Helm based KNF cannot be instantiated if values files contains a label with special characters '.'

Change-Id: I3c3e806fcc38d18cc4446bb4542dd84c6d0033f9
Signed-off-by: Guillermo Calvino <guillermo.calvino@canonical.com>
5 months agoBug 1863: LTS Support 30/11530/2
beierlm [Tue, 18 Jan 2022 13:52:27 +0000 (08:52 -0500)]
Bug 1863: LTS Support

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

Fixes bug 1863

Change-Id: If82a6f3169f7e800c6284c7f3e7f232b7fc73ea5
Signed-off-by: beierlm <mark.beierl@canonical.com>
5 months agoFeature 10886 manual scaling for KNF (helm chart) deployment 61/11461/2
aktas [Mon, 29 Nov 2021 15:41:42 +0000 (18:41 +0300)]
Feature 10886 manual scaling for KNF (helm chart) deployment

Change-Id: Icacddc7681f1b5be73e09f186c1aed19fbfabcab
Signed-off-by: aktas <emin.aktas@ulakhaberlesme.com.tr>
7 months agoAdd more logs to ns.py to know nsr and nsd retrieved from db 94/11394/2
garciadeblas [Tue, 23 Nov 2021 09:04:12 +0000 (10:04 +0100)]
Add more logs to ns.py to know nsr and nsd retrieved from db

Change-Id: Id4a9dd111ccc26fd98e9fcce60f74d6d24af66d1
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
7 months agofeat(prometheus): prometheus config no longer depends on LCM 87/10787/2
bravof [Tue, 11 May 2021 11:38:47 +0000 (07:38 -0400)]
feat(prometheus): prometheus config no longer depends on LCM

Change-Id: I444ede724b50142244d2149fc276ae171a72a112
Signed-off-by: bravof <fbravo@whitestack.com>
7 months agoFix bug 1761: support entities in relations for backwards compatibility 45/11345/3
David Garcia [Thu, 11 Nov 2021 15:35:26 +0000 (16:35 +0100)]
Fix bug 1761: support entities in relations for backwards compatibility

Change-Id: Ic257ca354c881b059c38283263049f8de52a79a1
Signed-off-by: David Garcia <david.garcia@canonical.com>
7 months agobugfix(filesystem sync): sync vnf descriptor files before running a primitive. Bug... 58/11258/2
bravof [Wed, 13 Oct 2021 20:37:36 +0000 (17:37 -0300)]
bugfix(filesystem sync): sync vnf descriptor files before running a primitive. Bug 1690

Change-Id: I8ccad0836c8392d97be9417b61f438316fc2e6d4
Signed-off-by: bravof <fbravo@whitestack.com>
7 months agofeature: sol004 and sol007 14/11314/2
bravof [Mon, 8 Nov 2021 20:18:50 +0000 (17:18 -0300)]
feature: sol004 and sol007

Change-Id: Ic53b1b349f9306a0ce2ec01a61837b32cf0bcfb7
Signed-off-by: bravof <fbravo@whitestack.com>
8 months agoFeature 10887: Add cross-model relations support 98/11298/4 release-v11.0-start
David Garcia [Thu, 28 Oct 2021 00:00:43 +0000 (02:00 +0200)]
Feature 10887: Add cross-model relations support

Changes:
- Update the `osm_lcm.ns.NsLcm._add_vca_relations` function, and
decouple it into simpler and smaller functions.
- Get relation data for the descriptor taking into account the changes
introduced here: https://osm.etsi.org/gerrit/11212/
- Add `osm_lcm.data_utils.vca` module to take care of VCA related parts
in the IM
- Add a couple of functions into the `osm_lcm.data_utils` package:
  - nsd: get_vnf_profile(), get_ns_configuration(),
get_ns_configuration_relation_list()
  - nsr: get_nsd(), get_deployed_vca_list(), get_deployed_vca()
  - vnfd: get_relation_list()
- Rename `osm_lcm.data_utils.vnfd.get_kdu_profile` to `osm_lcm.data_utils.vnfd.get_kdu_resource_profile`

Change-Id: I6da29e656d092e17c85b44f5b3960a6ca3aa3ad8
Signed-off-by: David Garcia <david.garcia@canonical.com>
8 months agoFix 1716: get nsr vca id from vim account 85/11285/1
David Garcia [Thu, 21 Oct 2021 15:03:48 +0000 (17:03 +0200)]
Fix 1716: get nsr vca id from vim account

Change-Id: I814e8c2e9f4ad4fb973958abe5c9453138f701fb
Signed-off-by: David Garcia <david.garcia@canonical.com>
10 months agoBug 1609 fix 85/11085/6
aktas [Thu, 29 Jul 2021 14:42:49 +0000 (17:42 +0300)]
Bug 1609 fix

The fix requires merging this https://osm.etsi.org/gerrit/c/osm/N2VC/+/11086 commit.
Then it can pass the jenkins w/o failure

Change-Id: Icef9a467b8b037db33a0cf3c444247378ff6499b
Signed-off-by: aktas <emin.aktas@ulakhaberlesme.com.tr>
11 months agomisspelling fix 81/11081/1
aktas [Thu, 29 Jul 2021 04:56:27 +0000 (07:56 +0300)]
misspelling fix

Change-Id: Ief505adac777cf6269a34b01b20ef718e9d586f4
Signed-off-by: aktas <emin.aktas@ulakhaberlesme.com.tr>
11 months agoFix bug 1606 - Adding fs.sync() at startup 72/11072/1
sousaedu [Mon, 26 Jul 2021 13:24:21 +0000 (15:24 +0200)]
Fix bug 1606 - Adding fs.sync() at startup

Change-Id: I9931b0c87923ade9cae36b59c8a2cab939c3bb93
Signed-off-by: sousaedu <eduardo.sousa@canonical.com>
12 months agoFix 1582 : deploy juju units = number-of-instances 32/11032/1
endika [Mon, 21 Jun 2021 16:55:07 +0000 (18:55 +0200)]
Fix 1582 : deploy juju units = number-of-instances

Change-Id: I938715344294150ed99da719cae4efb0d1bf975a
Signed-off-by: endika <endika.aldecoa@ehu.eus>
13 months agoFix Bug 1556 - redundant input param in calling _check_or_add_scale_suboperation 45/10945/1
Dat Le [Thu, 3 Jun 2021 02:50:21 +0000 (09:50 +0700)]
Fix Bug 1556 - redundant input param in calling _check_or_add_scale_suboperation

Change-Id: I19e58252df4ba2dd18aa372d6043713866cae17b
Signed-off-by: Dat Le <datle.it@gmail.com>
13 months agoUpdate Dockerfile.local to work with cloned common and N2VC 18/10918/2
garciadeblas [Mon, 31 May 2021 13:39:04 +0000 (15:39 +0200)]
Update Dockerfile.local to work with cloned common and N2VC

Change-Id: I7bc5c2b551c52c2c0d3455deabe02412872ff162
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
13 months agoBugfix 1550: Setting a custom release name for Helm based kdus 06/10906/3
romeromonser [Fri, 28 May 2021 10:00:08 +0000 (12:00 +0200)]
Bugfix 1550: Setting a custom release name for Helm based kdus

Change-Id: I38a04094d6b2327f0758451ed6d8619f8a121687
Signed-off-by: romeromonser <garomero@indra.es>
13 months agoFix 1533 (nscharms): read juju from descriptor 09/10909/1
David Garcia [Fri, 28 May 2021 10:08:18 +0000 (12:08 +0200)]
Fix 1533 (nscharms): read juju from descriptor

In the VNFD, the juju section has been removed and included inside the
execution environment list. Since then basic_12 (nscharms) has not been
properly working because we are only looking for the
execution-environment-liist key inside the descriptor, but that does not
apply to the NSD.

Additionally, I fixed the deletion of the nscharm, that was failing due
to the member-vnf-index key not existing in the deployed VCA.

Change-Id: Icb3220f28e373cf8ac3f978c9a3a83b179540512
Signed-off-by: David Garcia <david.garcia@canonical.com>
13 months agoFeature 10509 manual scaling for native k8s charm 88/10488/15 release-v10.0-start
aktas [Mon, 15 Mar 2021 08:26:10 +0000 (11:26 +0300)]
Feature 10509 manual scaling for native k8s charm

Also includes improvements for scale function

Change-Id: I23f51b8c1b219681841d0b1f7f4db3a0d9ed4c7b
Signed-off-by: aktas <emin.aktas@ulakhaberlesme.com.tr>
13 months agoReformat LCM to standardized format 34/10534/3
garciadeblas [Wed, 24 Mar 2021 08:17:02 +0000 (09:17 +0100)]
Reformat LCM to standardized format

Change-Id: I2259f4fc330129ff2d6c805618c2e069aa74564c
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
13 months agofix(FS): sync problems fixed syncing only the particular NSD and VNFD that the instan... 78/10478/2
bravof [Thu, 11 Mar 2021 15:03:30 +0000 (12:03 -0300)]
fix(FS): sync problems fixed syncing only the particular NSD and VNFD that the instantiation needs

Change-Id: I7410f6f39aa58a57ab91410c45dc7d7042b0293d
Signed-off-by: bravof <fbravo@whitestack.com>
13 months agofix/feat(relations): external connection point ref now works with multiple KDU 05/10405/6
bravof [Thu, 25 Feb 2021 20:20:35 +0000 (17:20 -0300)]
fix/feat(relations): external connection point ref now works with multiple KDU

Change-Id: I01fac4167617450670999c87200bd3d8179f7293
Signed-off-by: bravof <fbravo@whitestack.com>
14 months agoBug 1526 Fix 35/10735/2
aktas [Tue, 4 May 2021 16:32:45 +0000 (19:32 +0300)]
Bug 1526 Fix

If vnfd:id and vnfd:df:lcm-operations-configuration:operate-vnf-op-config:day1-2:id
are not the same, it fails to add the relation defined in NSD.

Change-Id: I15e0a23c726fe4257c1b628faae2b2b50c0675e9
Signed-off-by: aktas <emin.aktas@ulakhaberlesme.com.tr>
14 months agoFix 1462 00/10400/14
aktas [Fri, 26 Feb 2021 12:41:45 +0000 (15:41 +0300)]
Fix 1462

asyncio.sleep is not needed with the changes on https://osm.etsi.org/gerrit/c/osm/N2VC/+/10399.

Change-Id: Ie7179140011c0c13d4957b8b7824125ac0cac4dd
Signed-off-by: aktas <emin.aktas@ulakhaberlesme.com.tr>
14 months agoFix bug 1525 28/10728/1
David Garcia [Tue, 4 May 2021 11:15:57 +0000 (13:15 +0200)]
Fix bug 1525

This patch adds **kwargs in the LCMHelmConn methods that are not used.
The feature 10239 added the vca_id parameter for the LCM and N2VC
communication for Juju related execution environments. The current patch
will avoid having to add extra parameters that are not needed nor used
in the LCMHelmmConn.

Change-Id: I673a36c7c13891a53de1d7dc547f13c81616d373
Signed-off-by: David Garcia <david.garcia@canonical.com>
14 months agoFeature 10239: Distributed VCA 75/10575/9
David Garcia [Wed, 31 Mar 2021 17:12:02 +0000 (19:12 +0200)]
Feature 10239: Distributed VCA

- Handle VCATopic: https://osm.etsi.org/gerrit/#/c/osm/NBI/+/10574/
- Pass vca_id to calls in N2VC, so N2VC can know to which VCA it needs
to talk

Depends on the following patch: https://osm.etsi.org/gerrit/#/c/osm/N2VC/+/10616/

Change-Id: I080c1aab94f70de83f2d33def74ccd03450dbdd6
Signed-off-by: David Garcia <david.garcia@canonical.com>
14 months agoIncluding upstream requirements 87/10687/2
beierlm [Thu, 22 Apr 2021 16:58:58 +0000 (12:58 -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: Ieebd667829444217d1d38e05261d6f50b9f0d180
Signed-off-by: beierlm <mark.beierl@canonical.com>
14 months agoFixed bug 1476: VLD params (ip-profile) inside a NS not used 61/10661/2
lloretgalleg [Mon, 19 Apr 2021 11:40:18 +0000 (11:40 +0000)]
Fixed bug 1476: VLD params (ip-profile) inside a NS not used

Change-Id: I3f330610659a1b627dd74bfd9e1dd4d722ebf7d2
Signed-off-by: lloretgalleg <illoret@indra.es>
14 months agoAdding GitLab Scanner 67/10667/1 branch-ng-ro-refactor-start branch-sol006v331-start
beierlm [Mon, 19 Apr 2021 19:31:57 +0000 (15:31 -0400)]
Adding GitLab Scanner

Adds gitlab-ci yaml file to enable security scans in GitLab mirror

Change-Id: Ie660d19b4e9a834abe38589e5c32447531345d63
Signed-off-by: beierlm <mark.beierl@canonical.com>
14 months agoFeature 10296 Pip Standardization 04/10504/11
beierlm [Wed, 17 Mar 2021 12:11:23 +0000 (08:11 -0400)]
Feature 10296 Pip Standardization

Creates standard template for tox.ini
Introduces 'safety' for listing upstream CVEs
Pins all versions of all upstream modules
Removes Makefile step and places all build logic into tox.ini

Change-Id: I15c8ec22ad911d5bfa67df5a85175642a59da971
Signed-off-by: beierlm <mark.beierl@canonical.com>
15 months agoBug 1422 - NSR record contain stale vcaStatus after successful completion of day... 86/10486/2 ELCM
ksaikiranr [Mon, 15 Mar 2021 05:37:29 +0000 (11:07 +0530)]
Bug 1422 - NSR record contain stale vcaStatus after successful completion of day 2 fixed.

Addressed review comments

Change-Id: I2f5585ee48d4641136c6ac146bb10b3cf928b006
Signed-off-by: Priyadharshini G S <priyadharshini.g@tataelxsi.co.in>
Signed-off-by: ksaikiranr <saikiran.k@tataelxsi.co.in>
15 months agoFeature-9904: Enhancing NG-UI to enable Juju operational view dashboard 85/10485/5
ksaikiranr [Wed, 17 Mar 2021 06:11:22 +0000 (11:41 +0530)]
Feature-9904: Enhancing NG-UI to enable Juju operational view dashboard

Added unit tests for vca status refresh in lcm

Change-Id: Ic2009a321991526f284d88858fd6ee19a2eed960
Signed-off-by: gspri <priyadharshini.g@tataelxsi.co.in>
Signed-off-by: ksaikiranr <saikiran.k@tataelxsi.co.in>
15 months agoFeature-9904: Enhancing NG-UI to enable Juju operational view dashboard 84/10484/5
ksaikiranr [Fri, 19 Feb 2021 04:55:18 +0000 (10:25 +0530)]
Feature-9904: Enhancing NG-UI to enable Juju operational view dashboard

In ns.py file

Added _on_update_k8s_db function to update KNF vcaStatus in NSR record
Integrated the vca status refresh function for updating KNF status

Change-Id: Ieba74e3d6d45766ad4b808665a3c62b046a42b2a
Signed-off-by: jayaramans <selvi.j@tataelxsi.co.in>
Signed-off-by: ksaikiranr <saikiran.k@tataelxsi.co.in>
15 months agoFeature-9904: Enhancing NG-UI to enable Juju operational view dashboard 46/10346/4
ksaikiranr [Wed, 27 Jan 2021 16:43:22 +0000 (22:13 +0530)]
Feature-9904: Enhancing NG-UI to enable Juju operational view dashboard

Integrated functions implemented in n2vc module for
actions list, configs list and executed actions/history of actions

Change-Id: I25db0d9fe4535b9908883a6f2175c3e80997e7cf
Signed-off-by: ksaikiranr <saikiran.k@tataelxsi.co.in>
15 months agoFeature-9904: Enhancing NG-UI to enable Juju operational view dashboard 45/10345/3
ksaikiranr [Mon, 15 Mar 2021 05:09:06 +0000 (10:39 +0530)]
Feature-9904: Enhancing NG-UI to enable Juju operational view dashboard

Implemented functions to receive vcaStatus update message from kafka
and update nsr record in mongo.
Addressed review comments

Change-Id: I54f526c74fd27328c88721002d41bd85a182f9eb
Signed-off-by: Priyadharshini G S <priyadharshini.g@tataelxsi.co.in>
Signed-off-by: ksaikiranr <saikiran.k@tataelxsi.co.in>
15 months agoFix Pre and Post Scale operations 89/10489/1
limon [Mon, 15 Mar 2021 08:39:43 +0000 (09:39 +0100)]
Fix Pre and Post Scale operations

Change-Id: If865dec846b0d28e31f272d512cb47ad62b2948a
Signed-off-by: limon <alimonj@indra.es>
16 months agoAdd missing parameter to generate_kdu_instance_name 59/10459/1
David Garcia [Fri, 5 Mar 2021 14:01:54 +0000 (15:01 +0100)]
Add missing parameter to generate_kdu_instance_name

In the commit c4da25cc that fixes 1412 I forgot to add the kdu_name
variable.

Change-Id: I12697d66e590660fe27b3a5abd32634b509a4fbd
Signed-off-by: David Garcia <david.garcia@canonical.com>
16 months agoFix minor issue in LCMHelmConn 52/10452/1
David Garcia [Thu, 4 Mar 2021 12:12:48 +0000 (13:12 +0100)]
Fix minor issue in LCMHelmConn

scaling_in argument has been added to the delete_execution_environment
for the juju connector. This patch adds kwargs to the helm connector.
The scaling_in is not currently used by helm.

Change-Id: I4723d6f194cdd64a4b3bbef348457fb6c2a1e47c
Signed-off-by: David Garcia <david.garcia@canonical.com>
16 months agoFixes 1440 with proper iteration of dict 25/10425/1
garciaale [Tue, 2 Mar 2021 13:49:28 +0000 (10:49 -0300)]
Fixes 1440 with proper iteration of dict

Change-Id: If1cdf143aaebb8c5246a8cae6cc6aff239ab0637
Signed-off-by: garciaale <agarcia@whitestack.com>
16 months agoFix bug 1412: Generate kdu instance from LCM 90/10390/3
David Garcia [Thu, 25 Feb 2021 19:19:18 +0000 (20:19 +0100)]
Fix bug 1412: Generate kdu instance from LCM

Change-Id: Ic8fbcd1d78eeef60ec0c943bcd233f8d8ee4f166
Signed-off-by: David Garcia <david.garcia@canonical.com>
16 months agoBug 585 Fix for scaling 11/10311/9
aktas [Fri, 12 Feb 2021 19:19:10 +0000 (22:19 +0300)]
Bug 585 Fix for scaling

This fix should be merged with this
https://osm.etsi.org/gerrit/c/osm/N2VC/+/10364

Change-Id: I43fb4e5c81dbbaed07f01ba1a3ba399f7425b347
Signed-off-by: aktas <emin.aktas@ulakhaberlesme.com.tr>
16 months agofix(configuration): juju related changes to honor descriptor changes introduced in... 74/10374/2
bravof [Mon, 22 Feb 2021 21:02:07 +0000 (18:02 -0300)]
fix(configuration): juju related changes to honor descriptor changes introduced in v8 and fixes for new configuration model

Change-Id: Ib5131a94b944c1aed985c2a612cf2b5d871673de
Signed-off-by: bravof <fbravo@whitestack.com>
16 months agoFix bug 1442: set SDN target in vim_info for NS VLD 02/10302/4
garciadeblas [Fri, 12 Feb 2021 11:26:46 +0000 (11:26 +0000)]
Fix bug 1442: set SDN target in vim_info for NS VLD

Change-Id: Ie4ed89c261604c74a504adbed8482036b7db4951
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
16 months agofix(configurations): LCM adapted for new configuration container in IM 38/10338/2
bravof [Wed, 17 Feb 2021 22:09:12 +0000 (19:09 -0300)]
fix(configurations): LCM adapted for new configuration container in IM

Change-Id: I5511a659e257a42d6bbdb48c495f93078bd12928
Signed-off-by: bravof <fbravo@whitestack.com>
16 months agoUpdates LCM test descriptors to SOL006 3.3.1 24/10324/2
garciaale [Tue, 16 Feb 2021 18:47:52 +0000 (15:47 -0300)]
Updates LCM test descriptors to SOL006 3.3.1

Change-Id: Ic86d62bafe9fa4fdcaf7b750501d002851022f78
Signed-off-by: garciaale <agarcia@whitestack.com>
16 months agoFix bug 1432: No support for alternative images for sol006 66/10266/2
lloretgalleg [Mon, 8 Feb 2021 11:49:50 +0000 (11:49 +0000)]
Fix bug 1432: No support for alternative images for sol006

Change-Id: Icc4a9871c0ae44fc516b6c60fd6e0a641324fcdd
Signed-off-by: lloretgalleg <illoret@indra.es>
16 months agoFix minor issue 28/10328/1
David Garcia [Tue, 16 Feb 2021 20:07:58 +0000 (21:07 +0100)]
Fix minor issue

If initial-config-primitive or config-primitive do not exists, there was
an error.

Change-Id: If43cef7369a5f6d57c99347ba8a4b7b08790d057
Signed-off-by: David Garcia <david.garcia@canonical.com>
(cherry picked from commit 95cc9c5f864ef0d5b78eca278e41a023d7e79281)

17 months agoBug 1417 solved: Timeout contacting EE grpc server 18/10218/1
lloretgalleg [Tue, 26 Jan 2021 12:12:03 +0000 (12:12 +0000)]
Bug 1417 solved: Timeout contacting EE grpc server

Change-Id: Ie1b67cc20726bf0358f3a96fb0549455a32e7957
Signed-off-by: lloretgalleg <illoret@indra.es>
18 months agoChanges for IM change 10095: remove kdu-model 12/10112/3 release-v9.0-start v9.0.0 v9.0.0rc1
lloretgalleg [Tue, 15 Dec 2020 10:54:02 +0000 (10:54 +0000)]
Changes for IM change 10095: remove kdu-model

Change-Id: I14dff0d94e8deb389d915f43e2a8aa41c618ca76
Signed-off-by: lloretgalleg <illoret@indra.es>
18 months agoFix bug for ns-primitives (manual testing) 96/10096/5
David Garcia [Thu, 10 Dec 2020 19:10:53 +0000 (20:10 +0100)]
Fix bug for ns-primitives (manual testing)

db_vnfr was None. Therefore, the get_osm_params was raising some errors.
That's fixed now

Change-Id: Ied4b0fdb9f374dbfaeb0f4947e75a8a310678a1e
Signed-off-by: David Garcia <david.garcia@canonical.com>
18 months agofix(sapd): sapd used to specify exposed connections at NS level. Fixes Bug 1321 03/10103/1
bravof [Fri, 11 Dec 2020 19:37:01 +0000 (16:37 -0300)]
fix(sapd): sapd used to specify exposed connections at NS level. Fixes Bug 1321

Change-Id: I61b52f77102cc70da01da7f35bdbf79dedcd6ae9
Signed-off-by: bravof <fbravo@whitestack.com>
18 months agofix(kdu): kdu-profiles uses name instead of id 00/10100/1
bravof [Fri, 11 Dec 2020 14:08:13 +0000 (11:08 -0300)]
fix(kdu): kdu-profiles uses name instead of id

Change-Id: If0539994cdfe857fe44120c41f26d9ebfdec9646
Signed-off-by: bravof <fbravo@whitestack.com>
18 months agoFix bug 1368 and 1369 93/10093/6
David Garcia [Thu, 10 Dec 2020 11:52:52 +0000 (12:52 +0100)]
Fix bug 1368 and 1369

Change-Id: I3c88b3a9295ce0b105410a76356e88da0f1e24a5
Signed-off-by: David Garcia <david.garcia@canonical.com>
18 months agoBug 1306 solved 94/10094/1
lloretgalleg [Thu, 10 Dec 2020 14:21:10 +0000 (14:21 +0000)]
Bug 1306 solved

Corrected problem introduced at commit aae391fc that changed parameters
to deploy ee for helm

Change-Id: I33e5971e5620d8d37134cbb2dfa499f5eaa17bc4
Signed-off-by: lloretgalleg <illoret@indra.es>
18 months agofix(scale): manual scaling now works 81/10081/2
bravof [Mon, 7 Dec 2020 15:57:31 +0000 (12:57 -0300)]
fix(scale): manual scaling now works

Change-Id: I1f54930996368626d292ace5b55e45e9472775a7
Signed-off-by: bravof <fbravo@whitestack.com>
19 months agofeat(sol006): LCM migration to SOL006 38/10038/8
bravof [Wed, 25 Nov 2020 00:21:43 +0000 (21:21 -0300)]
feat(sol006): LCM migration to SOL006

Change-Id: I48a3ec2fec0b1e0173bb0f3aaa83a774d46b3955
Signed-off-by: bravof <fbravo@whitestack.com>
19 months agofix minor error at k8scluster helm v3 deletion 04/10004/3
tierno [Wed, 18 Nov 2020 12:47:52 +0000 (12:47 +0000)]
fix minor error at k8scluster helm v3 deletion

Change-Id: I842ec05cbdd221599eb8b5e458f3e5b8131a08b1
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
19 months agoFix bug 1297 08/10008/3
David Garcia [Thu, 19 Nov 2020 12:06:54 +0000 (13:06 +0100)]
Fix bug 1297

Change-Id: I8e4b4be847dcd592bbb7c2e69d7065adc7336740
Signed-off-by: David Garcia <david.garcia@canonical.com>
19 months agoFix bug introduced in aae391fc: 03/10003/1
David Garcia [Wed, 18 Nov 2020 12:09:58 +0000 (13:09 +0100)]
Fix bug introduced in aae391fc:

config parameter does not exist in the create_execution_environment
function

Change-Id: I445fd3ef7e78f2a8f565829291b264632a0f56d5
Signed-off-by: David Garcia <david.garcia@canonical.com>
19 months agoFeature 7184 New Generation RO enhancemnt 85/9885/12
tierno [Mon, 19 Oct 2020 16:38:59 +0000 (16:38 +0000)]
Feature 7184 New Generation RO enhancemnt

- Adding ssh-key injection
- Adding parameter instantiation to NG-RO
- Removing for NG-RO vim creation and edition
- Autodetect if it is old RO or new generatio RO
- Provide cloud init text for new generatio RO
- scaling for new generation RO
- Adding sdn creation info at new generation RO

Change-Id: I322c2a8989b58e89ad981926f11cfdd3e630b75a
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
19 months agoFeature 9952: Distributed Proxy Charms 57/9957/10
David Garcia [Mon, 9 Nov 2020 10:12:54 +0000 (11:12 +0100)]
Feature 9952: Distributed Proxy Charms

This feature allows to specify the destination clouds for Proxy Charms
associated with a specific VIM Account

- Remove N2VCJujuConnectorLCM usage.
- Parse VIM config parameters to get vca_k8s_cloud,
vca_k8s_cloud_credential, vca_cloud, and vca_cloud_credential
parameters.
- Pass the above parsed parameters to N2VC

Change-Id: I660d9b7245ae30d8fdc0dc3df470ee003abbba75
Signed-off-by: David Garcia <david.garcia@canonical.com>
19 months agoAdded support for helm v3 05/9905/9
lloretgalleg [Thu, 22 Oct 2020 09:54:51 +0000 (09:54 +0000)]
Added support for helm v3

Change-Id: Ib64dfc56d72d58e344088f4aad8d38353ce4c01b
Signed-off-by: lloretgalleg <illoret@indra.es>
19 months agoSyncronize with fs before deploy package with ee 74/9674/5
lloretgalleg [Wed, 2 Sep 2020 09:55:05 +0000 (09:55 +0000)]
Syncronize with fs before deploy package with ee

Change-Id: Ic9ce2f93c82217976a665b5adb099b4b51b49bc0
Signed-off-by: lloretgalleg <illoret@indra.es>
19 months agoSupport for mongodb replicaset connection (HA). 62/9762/4
Vijay Nag B S [Tue, 29 Sep 2020 12:02:29 +0000 (17:32 +0530)]
Support for mongodb replicaset connection (HA).

Added replicaset field in lcm.cfg file, which is used in
mongodb connection string (osm_common/db_mongo.py).

Change-Id: If5b00e9442ac738bcb081c8be8e5a726cbfe7484
Signed-off-by: Vijay Nag B S <vijaynag.bs@tataelxsi.co.in>
20 months agoRevert gerrit 9831 "provide juju parameters to the config primitives" 10/9910/1
tierno [Thu, 22 Oct 2020 14:12:46 +0000 (14:12 +0000)]
Revert gerrit 9831 "provide juju parameters to the config primitives"

This reverts commit 0e434cac4d986da7e85d075daf9b78d0f8d1039d.

Change-Id: Iafb9f0a5d70b5542f2cd071e784e1ac00210207c
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
20 months agoUse vca_config and loop options in K8sJujuConnector 50/9850/2
David Garcia [Fri, 16 Oct 2020 11:05:34 +0000 (13:05 +0200)]
Use vca_config and loop options in K8sJujuConnector

This is related to the feature 9751.

Patch 9849 needs to land before.

Change-Id: Ic89a797b74501dc86cbce9cf1b9d9998423656a0
Signed-off-by: David Garcia <david.garcia@canonical.com>
20 months agoprovide juju parameters to the config primitives 78/9878/1
tierno [Wed, 14 Oct 2020 15:13:28 +0000 (15:13 +0000)]
provide juju parameters to the config primitives

Change-Id: I87c3e895a7065bab5658c74756ed7305af403fab
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
20 months agofix 1261: change parameter to int/bool according to data-type 77/9877/1
tierno [Wed, 14 Oct 2020 14:59:36 +0000 (14:59 +0000)]
fix 1261: change parameter to int/bool according to data-type

when executing a VCA primitive, parameter values are always a
string (defined at yang model), but key 'data-type' can indicate
that this is a STRING, INTEGER or BOOLEAN. In case of not a string
data is converted to the target type

Change-Id: I77babb1859b99df9290373deb3568686663d2015
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
20 months agofix 1201 get kdur from vnfr properly 76/9876/1
tierno [Fri, 9 Oct 2020 12:03:24 +0000 (12:03 +0000)]
fix 1201 get kdur from vnfr properly

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