osm/LCM.git
4 months agoFeature 11014 - Fix upgrade params for KDU in case of reset_values 94/14494/2
garciadeblas [Fri, 19 Jul 2024 10:08:07 +0000 (12:08 +0200)]
Feature 11014 - Fix upgrade params for KDU in case of reset_values

Change-Id: Ia5167ddcbb8c1bee2f9bf85bbce0b82522077412
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
4 months agoFeature 11016: Service KPI Metric Based Scaling of VNF using exporter endpoint in... 67/14367/7
Rahul Kumar [Thu, 9 May 2024 10:04:01 +0000 (15:34 +0530)]
Feature 11016: Service KPI Metric Based Scaling of VNF using exporter endpoint in NGSA

Change-Id: Ia70cca4768651667c9de929e9dcdd97c8767e4ab
Signed-off-by: Rahul Kumar <rahul.k4@tataelxsi.co.in>
4 months agoFeature 11043 Instance name as instantiation parameters - LCM 50/14450/2
kayal2001 [Thu, 27 Jun 2024 02:53:36 +0000 (08:23 +0530)]
Feature 11043 Instance name as instantiation parameters - LCM

Change-Id: I480aecb24f33ac07d200b251658604500b052b3f
Signed-off-by: kayal2001 <kayalvizhi.v@tataelxsi.co.in>
4 months agoFeature 11014: enable option kdu_reset_values to reset values for upgrade operation... 24/14224/6
garciadeblas [Thu, 8 Feb 2024 13:11:51 +0000 (14:11 +0100)]
Feature 11014: enable option kdu_reset_values to reset values for upgrade operation on helm charts

Change-Id: I2d5e8e1436b5be3fcf9d7fd965338df51feb009a
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
4 months agoFeature 11038: Enhancement of Vertical Scale Feature and merge in update API 89/14389/4
Rahul Kumar [Fri, 24 May 2024 09:11:41 +0000 (14:41 +0530)]
Feature 11038: Enhancement of Vertical Scale Feature and merge in update API

Change-Id: Id291cf9138aedbe4226abc6b6ab4cd5ecda48640
Signed-off-by: Rahul Kumar <rahul.k4@tataelxsi.co.in>
5 months agoBug 2042 fixed 15/12115/8
36970 [Fri, 7 Jun 2024 05:44:08 +0000 (05:44 +0000)]
Bug 2042 fixed

Now, the vcaStatus is not overwritten when there are multiple KDUs
inside a KNF, or when there are both KNFs and VNFs inside an NS

Change-Id: I7f8f17d6cc5f5c519bc0895f23e0b8883979d33b
Signed-off-by: Pedro Escaleira <escaleira@av.it.pt>
Signed-off-by: 36970 <jegan.s@tataelxsi.co.in>
5 months agoBug 2365 fixed: Modified time in vnfrs collection of mongo database is not updated... 85/14285/2
36970 [Mon, 1 Apr 2024 10:58:42 +0000 (10:58 +0000)]
Bug 2365 fixed: Modified time in vnfrs collection of mongo database is not updated, after healing operation

Change-Id: I0e188cbb06ee67f8399f5a2d72bb29799b70eb66
Signed-off-by: 36970 <jegan.s@tataelxsi.co.in>
5 months agoBug 2362 fixed:Operational-status is not getting updated when healing is triggered 84/14284/4
36970 [Mon, 1 Apr 2024 11:23:08 +0000 (11:23 +0000)]
Bug 2362 fixed:Operational-status is not getting updated when healing is triggered

Change-Id: I81040ca80f9dba23c7fd873decde7df8cc1a0ff2
Signed-off-by: 36970 <jegan.s@tataelxsi.co.in>
5 months agoCoverity-CWE 22: Improper Limitation of a Pathname to a Restricted Directory ('Path... 39/13339/3
k4.rahul [Fri, 5 May 2023 08:54:31 +0000 (14:24 +0530)]
Coverity-CWE 22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Coverity fix for 137960 Filesystem path, filename, or URI manipulation

Change-Id: Ieaa291ced268216361d865427100fd48bd39ed5a
Signed-off-by: k4.rahul <rahul.k4@tataelxsi.co.in>
6 months agoPin pylint version to 3.1.1 in tox.ini
garciadeblas [Wed, 22 May 2024 21:30:12 +0000 (23:30 +0200)]
Pin pylint version to 3.1.1 in tox.ini

Change-Id: I778aff9868335bcd24a294edb08d9c6b9be5f040
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
7 months agoBug 2367 fixed: Couldn't perform manual scale out for multi-vnf 93/14293/1
36970 [Mon, 1 Apr 2024 15:41:31 +0000 (15:41 +0000)]
Bug 2367 fixed: Couldn't perform manual scale out for multi-vnf

Change-Id: I2547ef2cb128c84edd6cae380cd6282211658786
Signed-off-by: 36970 <jegan.s@tataelxsi.co.in>
8 months agoFixes VCA deletion in NS termination 72/14272/1
Gabriel Cuba [Thu, 21 Mar 2024 22:14:05 +0000 (17:14 -0500)]
Fixes VCA deletion in NS termination

Change-Id: I3abfed8a389620cdc1ef8207a53c53c8c7ba6854
Signed-off-by: Gabriel Cuba <gcuba@whitestack.com>
8 months agoFix 2328: In NS deletion, remove EE objects according to the VCA type 66/14266/2
Gabriel Cuba [Tue, 19 Mar 2024 23:01:13 +0000 (18:01 -0500)]
Fix 2328: In NS deletion, remove EE objects according to the VCA type

Change-Id: I295cb403f2321faf41db91a2bb4240992cf756fe
Signed-off-by: Gabriel Cuba <gcuba@whitestack.com>
8 months agoBug_Fix-2348 NS Update getting failed while using SFC feature 58/14258/1
kayal2001 [Wed, 13 Mar 2024 04:53:16 +0000 (10:23 +0530)]
Bug_Fix-2348 NS Update getting failed while using SFC feature

Change-Id: I3b00d301702a6b84212689d0f90f16a033a91ad0
Signed-off-by: kayal2001 <kayalvizhi.v@tataelxsi.co.in>
8 months agoFix 2280: Random IP's are geeting assigned for Dual stack NS when doing scaling-out... 76/13876/7
rahul [Wed, 30 Aug 2023 09:18:01 +0000 (14:48 +0530)]
Fix 2280: Random IP's are geeting assigned for Dual stack NS when doing scaling-out/in operation

https://osm.etsi.org/bugzilla/show_bug.cgi?id=2280

Change-Id: Ic190de376e975e31840217cdbf6548863dfe5a02
Signed-off-by: rahul <rahul.k4@tataelxsi.co.in>
9 months agoPin black version in tox.ini to 23.12.1 18/14218/1
garciadeblas [Mon, 29 Jan 2024 17:45:45 +0000 (18:45 +0100)]
Pin black version in tox.ini to 23.12.1

Change-Id: I3b792b60f41beac781add0d23255b2ce01da7fb8
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
10 months agoBug Fix - 2305: Automated scaling of Vnf is not happening through metrics collected... 98/13998/4
Rahul Kumar [Thu, 9 Nov 2023 08:34:27 +0000 (08:34 +0000)]
Bug Fix - 2305: Automated scaling of Vnf is not happening through metrics collected by feature Service KPI of VNF using exporter endpoint

Change-Id: I975f5bfe0e23f44d25ba30b29f5f19df463054f2
Signed-off-by: Rahul Kumar <rahul.k4@tataelxsi.co.in>
11 months agoBug 2317: Fix for Able to scale-in parent VM after a failed scale-out and NS update... 26/14026/2 release-v15.0-start
elumalai [Thu, 16 Nov 2023 09:06:05 +0000 (14:36 +0530)]
Bug 2317: Fix for Able to scale-in parent VM after a failed scale-out and NS update sequentially

Change-Id: I0563ea49c423e38c9c1605204eb073bbb9cd9faa
Signed-off-by: elumalai <deepika.e@tataelxsi.co.in>
11 months agoFix Bug 2304: Flavor Not getting Updated in Mongodb nsrs after Vertical scaling 88/13988/3
Rahul Kumar [Wed, 8 Nov 2023 05:15:07 +0000 (05:15 +0000)]
Fix Bug 2304: Flavor Not getting Updated in Mongodb nsrs after Vertical scaling

Change-Id: Iad8657a0574bd40f8be8f9494ab9a412641abfb0
Signed-off-by: Rahul Kumar <rahul.k4@tataelxsi.co.in>
11 months agoRevert "Revert "Remove unused methods"" 80/14080/1
almagia [Thu, 30 Nov 2023 17:50:32 +0000 (19:50 +0200)]
Revert "Revert "Remove unused methods""

This reverts commit 3ff2325f97dda222d286d0d8ceb720de8b1a537c.

TSC request on 30.11

Change-Id: I67469ab5f9253bbb5ab5db61e45ffd74ca4858eb

11 months agoRevert "Remove unused methods" 77/14077/2
cubag [Wed, 29 Nov 2023 21:01:21 +0000 (23:01 +0200)]
Revert "Remove unused methods"

This reverts commit 9e9a923448e6673fc0396265732115b55f1df9da.

Change-Id: I1d8868ed98d83d22da2acbfa3963543ea9dd95ca
Signed-off-by: Gabriel Cuba <gcuba@whitestack.com>
11 months agoFeature 10996: Adds handling of nslcmop cancel event. kafka_read_callback is now... 80/13980/4
Gabriel Cuba [Mon, 30 Oct 2023 18:44:49 +0000 (13:44 -0500)]
Feature 10996: Adds handling of nslcmop cancel event. kafka_read_callback is now an async method.

Change-Id: I2aff05aa282fd469f3ecaa83c3263c0be2fb07c4
Signed-off-by: Gabriel Cuba <gcuba@whitestack.com>
12 months agoFeature 11002: Deorecate helmv2 48/13948/2
Luis Vega [Tue, 10 Oct 2023 22:36:33 +0000 (22:36 +0000)]
Feature 11002: Deorecate helmv2

Change-Id: Ica328f2d806203a22b4d47442de20ec0fa851f88
Signed-off-by: Luis Vega <lvega@whitestack.com>
13 months agoFix multiple minor security vulnerabilities 41/13941/5
Gabriel Cuba [Mon, 9 Oct 2023 18:22:38 +0000 (13:22 -0500)]
Fix multiple minor security vulnerabilities

Change-Id: I7c2a42c8bd025767de12ebca2573ab01d200c100
Signed-off-by: Gabriel Cuba <gcuba@whitestack.com>
13 months agoRemove unused methods 40/13940/3
Gabriel Cuba [Mon, 9 Oct 2023 16:24:48 +0000 (11:24 -0500)]
Remove unused methods

Change-Id: I68a5f853cca5f579086499842fa52b209d747ff9
Signed-off-by: Gabriel Cuba <gcuba@whitestack.com>
13 months agoBug 1830 fixed 88/13888/2
rojass [Mon, 18 Sep 2023 16:08:00 +0000 (11:08 -0500)]
Bug 1830 fixed

Change-Id: I6460cef35cebe7b47784e227f49aae098411cc76
Signed-off-by: rojass <srojas@whitestack.com>
13 months agoUpdate pip requirements to pass stage2 and stage3 in all modules 04/13904/2
garciadeblas [Fri, 29 Sep 2023 06:07:00 +0000 (08:07 +0200)]
Update pip requirements to pass stage2 and stage3 in all modules

Change-Id: I574d227629056298a4d5cd67105dd9fcdb99d424
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
15 months agoROCK image for LCM 05/13805/5
Daniel Arndt [Thu, 10 Aug 2023 18:10:02 +0000 (15:10 -0300)]
ROCK image for LCM

Change-Id: Ia051cf255db96cceb80ac67ece1f9b31e915d0e9
Signed-off-by: Daniel Arndt <daniel.arndt@canonical.com>
16 months agoUpdate version of PyYAML 12/13712/1
Mark Beierl [Fri, 21 Jul 2023 17:13:12 +0000 (17:13 +0000)]
Update version of PyYAML

Change-Id: Ib51829e23f41e87451a53838af0f0ca4437144aa
Signed-off-by: Mark Beierl <mark.beierl@canonical.com>
16 months agoBug 2237 fixed: added a continue to the vdur verification in the update_ns_vld_target... 51/13251/2
Pedro Escaleira [Thu, 20 Apr 2023 14:22:16 +0000 (15:22 +0100)]
Bug 2237 fixed: added a continue to the vdur verification in the update_ns_vld_target function

Change-Id: I2919d846d35a115e9b884ba333a7501b780d1f5b
Signed-off-by: Pedro Escaleira <escaleira@av.it.pt>
17 months agoAdapt prometheus template to use EE dedicated namespace 00/13500/1 release-v14.0-start
Gabriel Cuba [Sat, 3 Jun 2023 00:27:43 +0000 (19:27 -0500)]
Adapt prometheus template to use EE dedicated namespace

Change-Id: I6b436202f5d1862acd132eebfa36abfabe9379cc
Signed-off-by: Gabriel Cuba <gcuba@whitestack.com>
17 months agoUpdate mongo alarm structure for VDU alarms 75/13475/5
aguilard [Wed, 31 May 2023 09:45:00 +0000 (09:45 +0000)]
Update mongo alarm structure for VDU alarms

Change-Id: Ia661c23c902372357aa1efc511060e706065be61
Signed-off-by: aguilard <e.dah.tid@telefonica.com>
17 months agoSupport of VDU alarms in new SA architecture 67/13467/2
garciadeblas [Tue, 30 May 2023 10:51:14 +0000 (12:51 +0200)]
Support of VDU alarms in new SA architecture

Change-Id: I6cbce6267804763063f92a2d9c45c10f4542f9c7
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
17 months agoFeature 10948: Set pod security label to helm EE namespaces 00/13400/2
Gabriel Cuba [Wed, 17 May 2023 06:32:50 +0000 (01:32 -0500)]
Feature 10948: Set pod security label to helm EE namespaces

Change-Id: I1604e5af66df0c5329694fb930a2450a05832cfd
Signed-off-by: Gabriel Cuba <gcuba@whitestack.com>
17 months agoFeature 10957: Set up dedicated namespace for helm based EE and add client side TLS... 74/13274/4
Gabriel Cuba [Tue, 25 Apr 2023 21:48:41 +0000 (16:48 -0500)]
Feature 10957: Set up dedicated namespace for helm based EE and add client side TLS for gRPC

Change-Id: Ic4d931b44372265b7366178cdd912b13a73db334
Signed-off-by: Gabriel Cuba <gcuba@whitestack.com>
17 months agoFeature 10972: Support of volume multi-attach 47/13047/4
vegall [Mon, 6 Mar 2023 14:19:16 +0000 (14:19 +0000)]
Feature 10972: Support of volume multi-attach

Change-Id: I5adb9d3847c8d11b152cadcf82e46d65de93c833
Signed-off-by: vegall <lvega@whitestack.com>
17 months agoFeature 10945: Service KPI of VNF using exporter endpoint 36/13236/6
k4.rahul [Wed, 19 Apr 2023 11:30:52 +0000 (17:00 +0530)]
Feature 10945: Service KPI of VNF using exporter endpoint

Change-Id: Ic62d3e2a5dc315768b851135c800609d3805078b
Signed-off-by: k4.rahul <rahul.k4@tataelxsi.co.in>
18 months agoCoverity-CWE 330: Use of Insufficiently Random Values (137944 Cryptographically weak... 94/13294/2
k4.rahul [Thu, 27 Apr 2023 06:38:48 +0000 (12:08 +0530)]
Coverity-CWE 330: Use of Insufficiently Random Values (137944 Cryptographically weak PRNG)

replaced SystemRandom().randint() instead of randint()

Change-Id: I02dd1387b795c856d0cd05d0366b7bb410016a8b
Signed-off-by: k4.rahul <rahul.k4@tataelxsi.co.in>
18 months agoFix Healing operation: additionalParams KeyError 90/13390/3
Gulsum Atici [Mon, 15 May 2023 12:45:31 +0000 (15:45 +0300)]
Fix Healing operation: additionalParams KeyError

If target_vnf does not have additionalParams
KeyError is raised and additionalParams become optional within this change.

Change-Id: I69cb579882b305befd2a64a60bede450e8e6c10d
Signed-off-by: Gulsum Atici <gulsum.atici@canonical.com>
18 months agoMaking main async 24/13424/1
Mark Beierl [Thu, 18 May 2023 19:11:34 +0000 (15:11 -0400)]
Making main async

The initializers for Helm attempt to schedule tasks in the event loop,
but now that we are not starting one explicitly and passing it around,
we need to have a loop already started at the time of constructor.

By making start() async, there is a running loop, and functions like
k8s_helm_conn.py (~ #81) can call asyncio.create_task

Change-Id: Ia4bf25bd5060dc27f07e63c7395dae3a88247a0e
Signed-off-by: Mark Beierl <mark.beierl@canonical.com>
18 months agoUbuntu 22.04 and Python 3.10 preparation 70/13370/5
Gabriel Cuba [Thu, 11 May 2023 06:57:21 +0000 (01:57 -0500)]
Ubuntu 22.04 and Python 3.10 preparation

Change-Id: I8871964f01afac8f601678249acf779426c25090
Signed-off-by: Gabriel Cuba <gcuba@whitestack.com>
Signed-off-by: Mark Beierl <mark.beierl@canonical.com>
18 months agoClean stage-archive.sh 16/13216/2
garciadeblas [Tue, 18 Apr 2023 13:08:24 +0000 (15:08 +0200)]
Clean stage-archive.sh

Change-Id: Ifc77f07d81a215c0f824f46df85d906917dadf97
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
18 months agoUpdate ns.py to append osm to metric_name to be BWC 42/13342/2
aguilard [Mon, 8 May 2023 15:09:37 +0000 (15:09 +0000)]
Update ns.py to append osm to metric_name to be BWC

Change-Id: I9319296e0f79dcab95878a925977514847c770db
Signed-off-by: aguilard <e.dah.tid@telefonica.com>
18 months agoFeature 10981: added Mongo accesses needed for NGSA 84/12984/11
aguilard [Thu, 16 Feb 2023 17:24:35 +0000 (17:24 +0000)]
Feature 10981: added Mongo accesses needed for NGSA

Change-Id: If3942d060f468382c7796a7e610bce9b21ab93fc
Signed-off-by: aguilard <e.dah.tid@telefonica.com>
18 months agoCoverity-CWE 398: 7PK - Code Quality (137908 Copy-paste error) 06/13306/2
k4.rahul [Thu, 27 Apr 2023 11:08:28 +0000 (16:38 +0530)]
Coverity-CWE 398: 7PK - Code Quality (137908 Copy-paste error)

Coverity fix for CWE 398: 7PK - Code Quality (137908 Copy-paste error)

Change-Id: I9e390dd01ff91d3525f327170e5fcd8074dc3a2f
Signed-off-by: k4.rahul <rahul.k4@tataelxsi.co.in>
18 months agoChange in tox.ini to use allowlist_externals 28/13028/3
garciadeblas [Wed, 1 Mar 2023 10:39:15 +0000 (11:39 +0100)]
Change in tox.ini to use allowlist_externals

Change-Id: Ib9c7c76859fa3e92db8baba65c5b625f40c4fddd
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
18 months agoFeature 10975: Get vim-flavor-id from instantiation params 61/13161/3
Gabriel Cuba [Tue, 14 Mar 2023 03:34:44 +0000 (22:34 -0500)]
Feature 10975: Get vim-flavor-id from instantiation params

Change-Id: If0d5e836a1cd61ac3e62ade1bc5768d1f08ee147
Signed-off-by: Gabriel Cuba <gcuba@whitestack.com>
18 months agoBug 2236 - Upgrade of Helm Charts is failing when the Helm Chart is embeded in the... 88/13288/1
Gabriel Cuba [Wed, 26 Apr 2023 15:50:30 +0000 (10:50 -0500)]
Bug 2236 - Upgrade of Helm Charts is failing when the Helm Chart is embeded in the package

Change-Id: Ib1675664d7eb2363444ba5b0d9438b8673ae8715
Signed-off-by: Gabriel Cuba <gcuba@whitestack.com>
19 months agoBug 2230 fixed: added verification for when there are no WIM accounts 05/13105/2
Pedro Escaleira [Tue, 28 Mar 2023 17:44:11 +0000 (18:44 +0100)]
Bug 2230 fixed: added verification for when there are no WIM accounts

Change-Id: Ib12c9ea9262b8aa46d12f3f760e952ce4df8c056
Signed-off-by: Pedro Escaleira <escaleira@av.it.pt>
20 months agoFeature 10978: Add ipv6_address_mode to ip_profile 54/13054/1
Gabriel Cuba [Tue, 14 Mar 2023 05:27:49 +0000 (00:27 -0500)]
Feature 10978: Add ipv6_address_mode to ip_profile

Change-Id: Ib9c999abe7a80486a0c8283a6ce622ebde9ca6da
Signed-off-by: Gabriel Cuba <gcuba@whitestack.com>
20 months agoAdds TimeoutError handling to the retryer wrapper function. This will ensure that... 27/13027/1
Gabriel Cuba [Tue, 28 Feb 2023 23:51:19 +0000 (18:51 -0500)]
Adds TimeoutError handling to the retryer wrapper function. This will ensure that gRPC calls succed while upgrading a Helm based EE.

Change-Id: I49a0ec370986e45e8b779f361ee4d72ff5a15ef1
Signed-off-by: Gabriel Cuba <gcuba@whitestack.com>
20 months agoBuild IP profile using the format RO expects, so no further translation is needed. 69/12969/4
Gabriel Cuba [Tue, 14 Feb 2023 18:09:18 +0000 (13:09 -0500)]
Build IP profile using the format RO expects, so no further translation is needed.

Related RO change: https://osm.etsi.org/gerrit/12966

Change-Id: I5f686f00a5c1d500255d38ae135f81544df32556
Signed-off-by: Gabriel Cuba <gcuba@whitestack.com>
21 months agoFeature 10950: Replace pycrypto with pycryptodome 19/12919/2
Gulsum Atici [Fri, 3 Feb 2023 17:52:43 +0000 (20:52 +0300)]
Feature 10950: Replace pycrypto with pycryptodome

Change-Id: I21405230434326f7ff7d55dea9d2f68a5237df78
Signed-off-by: Gulsum Atici <gulsum.atici@canonical.com>
21 months agoReformat files according to new black validation 26/12926/1
Gulsum Atici [Mon, 6 Feb 2023 19:06:44 +0000 (22:06 +0300)]
Reformat files according to new black validation

Change-Id: I065d8bfcc2520b296cee3903cb76a98d74185a1c
Signed-off-by: Gulsum Atici <gulsum.atici@canonical.com>
21 months agoBug 2175: K8s-Cluster Update is not implemented 54/12854/5
dariofaccin [Mon, 23 Jan 2023 17:13:27 +0000 (18:13 +0100)]
Bug 2175: K8s-Cluster Update is not implemented

Fix: handle (as agreed) the edit operation.
The update operation does not perform any operation on the K8SCluster.

Change-Id: I8ea45b1479608cdcae2140f1aa3b4cf541b2e643
Signed-off-by: dariofaccin <dario.faccin@canonical.com>
21 months agoUpdating python dependencies 90/12890/2
Mark Beierl [Fri, 27 Jan 2023 21:10:48 +0000 (21:10 +0000)]
Updating python dependencies

Update of Python packages (using pip-compile) in preparation for
Release FOURTEEN

Change-Id: I8107f1f0f7c534679ef20619c264d9a9264c71e5
Signed-off-by: Mark Beierl <mark.beierl@canonical.com>
21 months agoBug 2174: VCA Update is not implemented 30/12830/8
Dario Faccin [Tue, 10 Jan 2023 10:38:41 +0000 (10:38 +0000)]
Bug 2174: VCA Update is not implemented

Fix: Handle the edit operation.
If no update on the VCA configuration is given as input, then the operation is
marked as completed.
Otherwise the validation of the new VCA configuration is performed,
which may cause the edit operation to fail.

Change-Id: Id13604664df3594874877d0cb2ad13b1ce6d2353
Signed-off-by: Dario Faccin <dario.faccin@canonical.com>
22 months agoNeeded for feature 10938: extract_prometheus_scrape_jobs populating prom template... 48/12848/4
Pedro Escaleira [Sat, 11 Jun 2022 20:17:26 +0000 (21:17 +0100)]
Needed for feature 10938: extract_prometheus_scrape_jobs populating prom template with vnf member, vdur name and kdur name (explained in bug 2077)

This fixes merged patch 10938: this previous patch was causing Helm-based EEs to fail their installation within the extract_prometheus_scrape_jobs method when the element was an NS or VNF

Change-Id: I1007cc7d2d75ef573d160e9420d173b14c1cff51
Signed-off-by: Pedro Escaleira <escaleira@av.it.pt>
22 months agoRevert "Needed for feature 10938: extract_prometheus_scrape_jobs populating prom... 38/12838/2
garciadeblas [Mon, 16 Jan 2023 16:08:04 +0000 (17:08 +0100)]
Revert "Needed for feature 10938: extract_prometheus_scrape_jobs populating prom template with vnf member, vdur name and kdur name (explained in bug 2077)"

This reverts commit bd49c837f9d1714597710169ed99255b47251005.

Change-Id: I3306c56bc9851eb9d118d4047db8c115450e944e
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
22 months agoBug 2210 NS instantiation fails in basic12 34/12834/8
Patricia Reinoso [Thu, 12 Jan 2023 09:40:53 +0000 (09:40 +0000)]
Bug 2210 NS instantiation fails in basic12

An exception is raised during NS instantation
when we try to access vnf_profile_id of
a NS charm (VCA) which is None

Change-Id: I7e3a26c6877f117b4ad5834d2b1a86767e7b7756
Signed-off-by: Patricia Reinoso <patricia.reinoso@canonical.com>
22 months agoFix Bug 2208 KeyError while checking SDN assists requirement 31/12831/2
Gulsum Atici [Tue, 10 Jan 2023 11:10:42 +0000 (14:10 +0300)]
Fix Bug 2208 KeyError while checking SDN assists requirement

VIM config is optional so code is fixed by checking the existence of VIM config.

Change-Id: I1aca37cf169a766219630c90968df9d729ffd621
Signed-off-by: Gulsum Atici <gulsum.atici@canonical.com>
22 months agoEnables pylint in LCM and deletes unused methods 26/12826/5
Gabriel Cuba [Fri, 6 Jan 2023 22:23:22 +0000 (17:23 -0500)]
Enables pylint in LCM and deletes unused methods

Change-Id: I09f92fbbcf6270dfda58d2016e2a9804b4e032f5
Signed-off-by: Gabriel Cuba <gcuba@whitestack.com>
22 months agoBug 1234: OSM reports successful deployment when a charm relation fails 27/12827/1
Patricia Reinoso [Fri, 6 Jan 2023 22:28:44 +0000 (22:28 +0000)]
Bug 1234: OSM reports successful deployment when a charm relation fails

Fix : raise exception when a problem occurs during
charm relation addition.

NS is marked as broken if charm relations cannot
be added.

Change-Id: I4dbf4ddde374fcb46b5b1c20ec253fbb25c1f22c
Signed-off-by: Patricia Reinoso <patricia.reinoso@canonical.com>
22 months agoRevert "Bug 1234: OSM reports successful deployment when a charm relation fails"... 02/12802/1
cubag [Wed, 4 Jan 2023 21:45:58 +0000 (22:45 +0100)]
Revert "Bug 1234: OSM reports successful deployment when a charm relation fails" due to failures in cover.

This reverts commit c09b842d41437f1c2bb4a931182afbe7088d696f.

Change-Id: I039d85138edd2814ed9454423dbf5224cc9db86b
Signed-off-by: Gabriel Cuba <gcuba@whitestack.com>
22 months agoBug 1234: OSM reports successful deployment when a charm relation fails 88/12788/6
Patricia Reinoso [Tue, 13 Dec 2022 11:23:37 +0000 (11:23 +0000)]
Bug 1234: OSM reports successful deployment when a charm relation fails

Fix : raise exception when a problem occurs during
charm relation addition.

NS is marked as broken if charm relations cannot
be added.

Change-Id: Ie14f0c0f840e810a945bb603cf6d9360662103fd
Signed-off-by: Patricia Reinoso <patricia.reinoso@canonical.com>
23 months agoNeeded for feature 10938: extract_prometheus_scrape_jobs populating prom template... 96/12196/6
Pedro Escaleira [Sat, 11 Jun 2022 20:17:26 +0000 (21:17 +0100)]
Needed for feature 10938: extract_prometheus_scrape_jobs populating prom template with vnf member, vdur name and kdur name (explained in bug 2077)

Change-Id: I227a6c8581d0b9e4f949b2ff46d13a5e900c978b
Signed-off-by: Pedro Escaleira <escaleira@av.it.pt>
23 months agoFix Bug 2087: Use projects_read when searching for VFND by non-unique id 63/12763/3
Gabriel Cuba [Tue, 20 Sep 2022 02:39:21 +0000 (21:39 -0500)]
Fix Bug 2087: Use projects_read when searching for VFND by non-unique id

Change-Id: Ifa8a7138249403718a4ad957b30f2faffab9b936
Signed-off-by: Gabriel Cuba <gcuba@whitestack.com>
23 months agoFix loading of boolean values in configuration and set missing default values 32/12732/1
Gabriel Cuba [Sat, 26 Nov 2022 23:55:15 +0000 (18:55 -0500)]
Fix loading of boolean values in configuration and set missing default values

Change-Id: I11e5e778e916fc84781bd73cce8a6d050b76ee5b
Signed-off-by: Gabriel Cuba <gcuba@whitestack.com>
23 months agoFeature 10929: LCM saga, Milestone 1. 84/12684/14 release-v13.0-start
Luis Vega [Fri, 11 Nov 2022 20:10:49 +0000 (20:10 +0000)]
Feature 10929: LCM saga, Milestone 1.
Move configurations to ConfigMan class, using our own class (OsmConfigman).

Change-Id: Ia8f4e435d20ac88540aec071ca5cab9e70f112a6
Signed-off-by: Luis Vega <lvega@whitestack.com>
23 months agoFix Bug 2199 Fixing ns update operation for KNF instances 40/12540/6
aticig [Fri, 9 Sep 2022 22:56:58 +0000 (01:56 +0300)]
Fix Bug 2199 Fixing ns update operation for KNF instances

This patch enables ns update operations on KNF instances which are deployed with Helm chart
and using .charm zipped files.

Change-Id: I6c598868ae81243ef598ae5b7df88e26a5b870c0
Signed-off-by: aticig <gulsum.atici@canonical.com>
2 years agoFeature 10947: Create certificates for helm EE: 33/12633/8
Gabriel Cuba [Fri, 7 Oct 2022 16:38:23 +0000 (11:38 -0500)]
Feature 10947: Create certificates for helm EE:

- Add methods to create certificates
- Create and delete certs when NS is created and deleted.
- Add SSL context to gRPC channels

Change-Id: Ib1d86a61b5c5be098218d6892ba935e9b8bfdf9f
Signed-off-by: Gabriel Cuba <gcuba@whitestack.com>
2 years agoHeal: Await heal operation in RO before N2VC part to avoid errors 07/12707/2
Gabriel Cuba [Tue, 8 Nov 2022 00:28:14 +0000 (19:28 -0500)]
Heal: Await heal operation in RO before N2VC part to avoid errors

Change-Id: I1d201be817246fe025cfa4fc77bce5b54151e3a8
Signed-off-by: Gabriel Cuba <gcuba@whitestack.com>
(cherry picked from commit 73d550fb553ef164b3c5512370bdf03175c9ca16)

2 years agoFix black issues and run tox properly in stage-test 05/12705/2
garciadeblas [Fri, 18 Nov 2022 13:36:22 +0000 (14:36 +0100)]
Fix black issues and run tox properly in stage-test

Change-Id: Ie08f3029df03f97f1df1461a564c24ce024974fe
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
2 years agoFeature 10956: Implement upgrade of helm based EEs 77/12577/6
Gabriel Cuba [Mon, 10 Oct 2022 16:34:51 +0000 (11:34 -0500)]
Feature 10956: Implement upgrade of helm based EEs

Change-Id: I24898c29664eab7043c0b6906277465fe45e0111
Signed-off-by: Gabriel Cuba <gcuba@whitestack.com>
2 years agoFeature 10954 to automatically select WIMs for inter-datacenter networks 83/12683/2
gifrerenom [Fri, 11 Nov 2022 14:44:57 +0000 (14:44 +0000)]
Feature 10954 to automatically select WIMs for inter-datacenter networks

Change-Id: I6c772705fd7bc854d1795a05ad1ac5bccd7bcc72
Signed-off-by: gifrerenom <lluis.gifre@cttc.es>
2 years agoBug 2124 fixed: timeout defined when calling the N2VC scale method 01/12401/4
Pedro Escaleira [Sat, 23 Jul 2022 22:16:06 +0000 (23:16 +0100)]
Bug 2124 fixed: timeout defined when calling the N2VC scale method

Change-Id: I45b55c0a402b29bf3bc5d09a80eb4e5da850480c
Signed-off-by: Pedro Escaleira <escaleira@av.it.pt>
2 years agoBug 2160 fixed: verifying if VDUR exists within the method update_ns_vld_target 41/12541/3
Pedro Escaleira [Sun, 11 Sep 2022 23:14:41 +0000 (00:14 +0100)]
Bug 2160 fixed: verifying if VDUR exists within the method update_ns_vld_target

Change-Id: I2f3ce8a8b32a2bc72e5e3022dd88c120300e2b29
Signed-off-by: Pedro Escaleira <escaleira@av.it.pt>
2 years agoFix Bug 2187: Optional atomic flag in helm upgrades 23/12623/1
limon [Fri, 28 Oct 2022 08:39:16 +0000 (10:39 +0200)]
Fix Bug 2187: Optional atomic flag in helm upgrades

Change-Id: I0552ebac311eff509ab601f0e8cdcd49b172c367
Signed-off-by: limon <alimonj@indra.es>
2 years agoUpdate pip packages 80/12580/2
Gulsum Atici [Tue, 11 Oct 2022 13:39:00 +0000 (16:39 +0300)]
Update pip packages

Change-Id: Ic39d00c7a35d035d515fb8cae48a08fc919d489d
Signed-off-by: Gulsum Atici <gulsum.atici@canonical.com>
2 years agoUpdating requirements for libjuju 3.0.0 upgrade 64/12564/3
Gulsum Atici [Mon, 26 Sep 2022 17:57:26 +0000 (20:57 +0300)]
Updating requirements for libjuju 3.0.0 upgrade

Change-Id: I04f63474c96a6a73762331dbc876af6df0f2866d
Signed-off-by: Gulsum Atici <gulsum.atici@canonical.com>
2 years agoUpdate create_execution_environment to pass the chart_model 82/12182/6
garciadeblas [Wed, 8 Jun 2022 11:13:13 +0000 (13:13 +0200)]
Update create_execution_environment to pass the chart_model

The function create_execution_environment has been updated
to allow the deployment from a file or from a reference
(repo/name:version).

This will call to the N2VC Helm connector to install the execution
environment in the local environment.

Change-Id: I03c8e95bf0f6a55d3f62bc7a55dabe3a9b348cde
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
2 years agoFixing flake and black issues in code, enabling the same in tox 60/12560/1
preethika.p [Fri, 23 Sep 2022 07:36:28 +0000 (07:36 +0000)]
Fixing flake and black issues in code, enabling  the same in tox

Change-Id: Id817198c20c039029c8b053e8eac0a8482d72a48
Signed-off-by: preethika.p <preethika.p@tataelxsi.co.in>
2 years agoFix bug 2098 to heal VDU when no VDU is specified in the heal operation 14/12514/2
garciadeblas [Thu, 1 Sep 2022 11:09:47 +0000 (13:09 +0200)]
Fix bug 2098 to heal VDU when no VDU is specified in the heal operation

Change-Id: I1c6f618797f407da856400915d0825767069d6da
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
2 years agoFixing Basic 12 Ns Primitives 75/12475/2
aticig [Sat, 20 Aug 2022 17:56:19 +0000 (20:56 +0300)]
Fixing Basic 12 Ns Primitives

NSD folder name can be different than the NSD package name.
Getting the exact NSD folder name while finding charm name.
Removing redefined the method async def upgrade_charm causing flake8 error.

Change-Id: I772c6a47104271de0a18c748d380ed71849194f0
Signed-off-by: aticig <gulsum.atici@canonical.com>
2 years agoBug 1890: Improve Action Execution 71/12471/2
Mark Beierl [Fri, 19 Aug 2022 19:01:06 +0000 (15:01 -0400)]
Bug 1890: Improve Action Execution

Changes exception handling to put the content of the exception
into the ns action result so failures have meaningful output

Change-Id: I361c4ed6b03012cd4432ba72215c99f9aaf45b55
Signed-off-by: Mark Beierl <mark.beierl@canonical.com>
2 years agoFeature 10944 Change naming of charms 08/12408/7
aticig [Wed, 27 Jul 2022 06:32:06 +0000 (09:32 +0300)]
Feature 10944 Change naming of charms

Adding find_charm_name method and
changing _deploy_n2vc and _heal_n2vc methods in LCM

Change-Id: I62fdf3e66493c26e07e80ba7874badbe7c74c95e
Signed-off-by: aticig <gulsum.atici@canonical.com>
2 years agoSet autoescape to True in Jinja2 environment 22/12422/3
garciadeblas [Tue, 2 Aug 2022 13:12:18 +0000 (15:12 +0200)]
Set autoescape to True in Jinja2 environment

Change-Id: Iae6b37db0fd0a3192a68b1db86a0d79704a93a69
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
2 years agoUse of yaml.safe_load instead of yaml.load 24/12424/2
garciadeblas [Tue, 2 Aug 2022 15:19:14 +0000 (17:19 +0200)]
Use of yaml.safe_load instead of yaml.load

Change-Id: Ic508f205abfd0b71362d3f124b0ec2c4d8f0a17c
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
2 years ago2126 BugFix: use both count-index & vdu_id for finding target vdu 09/12409/2
k4.rahul [Wed, 27 Jul 2022 10:37:26 +0000 (10:37 +0000)]
2126 BugFix: use both count-index & vdu_id for finding target vdu

Change-Id: I1c00273f8f98119b38913cbb9a11ae96171fe3f7
Signed-off-by: k4.rahul <rahul.k4@tataelxsi.co.in>
2 years agoFixing LCM vulnerabilities 94/12294/4
Luis [Fri, 1 Jul 2022 14:35:49 +0000 (14:35 +0000)]
Fixing LCM vulnerabilities

Change-Id: I0b0c5975ce6f3088df19e8facb28f946658378a5
Signed-off-by: Luis <lvega@whitestack.com>
2 years agoLCM Creates health check file according to configuration storage path 96/12296/15
aticig [Wed, 29 Jun 2022 07:43:05 +0000 (10:43 +0300)]
LCM Creates health check file according to configuration storage path

Health check file is created independent from user home directory

Change-Id: Ibb7454857d93b3b7396bd7bd0229533d1b090310
Signed-off-by: aticig <gulsum.atici@canonical.com>
2 years agoJenkins refresh 35/12335/3
Mark Beierl [Thu, 14 Jul 2022 13:38:27 +0000 (09:38 -0400)]
Jenkins refresh

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

Change-Id: Ida8ffa0f41c2467f0ac2a9f67cd326b4d9188ea3
Signed-off-by: Mark Beierl <mark.beierl@canonical.com>
2 years ago2100 Bug fix: added op_status_map key value and in _wait_ng_ro passing operation... 10/12310/2
k4.rahul [Thu, 7 Jul 2022 07:23:53 +0000 (07:23 +0000)]
2100 Bug fix: added op_status_map key value and in _wait_ng_ro passing operation type for feature start_stop_rebuild

Change-Id: I13a8880426f4998ae610a7ac8db550711fe12084
Signed-off-by: k4.rahul <rahul.k4@tataelxsi.co.in>
2 years agoBugzilla – Bug 2102 : Vertical Scaling failed in LCM in _wait_ng_ro method 06/12306/1
govindarajul [Wed, 6 Jul 2022 10:47:00 +0000 (10:47 +0000)]
Bugzilla – Bug 2102 : Vertical Scaling failed in LCM in _wait_ng_ro method

Change-Id: I3e25b40fe7957f8b7b30b530499ffe8843eb0de3
Signed-off-by: govindarajul <Jayaprakash.g@tataelxsi.co.in>
2 years agoBug 2056 - _on_update_k8s_db and _on_update_n2vc_db take too much time on large models 53/12153/2
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>
2 years 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>
2 years 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 years 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 years 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>
2 years 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>