osm/NBI.git
13 months agoUpdate pip requirements to pass stage2 and stage3 in all modules 13/13913/1
garciadeblas [Mon, 2 Oct 2023 16:28:52 +0000 (18:28 +0200)]
Update pip requirements to pass stage2 and stage3 in all modules

Change-Id: Ia817468611de2b18044fd42bcb6d2d3be594abf1
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
13 months agoFix flake8 error caused by using type instead of isinstance 12/13912/1
gatici [Mon, 31 Jul 2023 11:37:32 +0000 (14:37 +0300)]
Fix flake8 error caused by using type instead of isinstance

Change-Id: Iccbf5a3a61e7b1c76c8e4e062fd8c24a09a39314
Signed-off-by: gatici <gulsum.atici@canonical.com>
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
15 months agoUpdate version of PyYAML 43/13743/2
Mark Beierl [Fri, 21 Jul 2023 17:13:33 +0000 (17:13 +0000)]
Update version of PyYAML

Change-Id: I9672c4cfc5e1aa3abcb67ee328fab299068c141c
Signed-off-by: Mark Beierl <mark.beierl@canonical.com>
(cherry picked from commit 79276b21b9c1b57a16cb3d000ae2c1dc055d3f46)

16 months agoUpdate requirements-dev to point to branch 09/13609/2 v14.0.0 v14.0.0rc1
garciadeblas [Mon, 10 Jul 2023 16:21:45 +0000 (18:21 +0200)]
Update requirements-dev to point to branch

Change-Id: I2d42ea17bfbc1e11874d2505a92f99aa9800f354
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
17 months agoCoverity-CWE 295: Improper Certificate Validation 15/13315/4 release-v14.0-start
selvi.j [Fri, 28 Apr 2023 06:47:48 +0000 (06:47 +0000)]
Coverity-CWE 295: Improper Certificate Validation

Added fix for CWE 295: Improper Certificate Validation
(SSL certificate validation disabled)

Change-Id: Ibdf84e00a79d42c695a25ce96e13c515e85b11f2
Signed-off-by: selvi.j <selvi.j@tataelxsi.co.in>
17 months agoBug 2250 fixed 79/13479/2
Pedro Escaleira [Wed, 31 May 2023 13:32:17 +0000 (14:32 +0100)]
Bug 2250 fixed

Change-Id: I82a525d06cbc4e824b37afecd9a0116691326e19
Signed-off-by: Pedro Escaleira <escaleira@av.it.pt>
17 months agoFix bug 2088 by validating helm-chart value on VNF 34/13534/4
Daniel Arndt [Thu, 15 Jun 2023 14:43:33 +0000 (16:43 +0200)]
Fix bug 2088 by validating helm-chart value on VNF

CVE-2022-35503

Change-Id: If8949daad2fb6d6d2aa72b851358cae9bf19d142
Signed-off-by: Daniel Arndt <daniel.arndt@canonical.com>
17 months agoRevert "Revert "Feature 10941: User Management Enhancements"" 51/13551/2
garciadeblas [Mon, 19 Jun 2023 20:34:49 +0000 (22:34 +0200)]
Revert "Revert "Feature 10941: User Management Enhancements""

This reverts commit 5f3111606f278c4b21c9f0d37b7c5c9af92cfe43.

Change-Id: I2250c1b52487f6de7d56014e3da29eb1f78ec166
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
17 months agoFeature 10972: Support of volume multi-attach 99/13499/4
vegall [Fri, 2 Jun 2023 21:25:32 +0000 (21:25 +0000)]
Feature 10972: Support of volume multi-attach
Fixes issue with volume rename

Change-Id: I067dca33b366a8ded869b0a4bb2b4bdd6fded26d
Signed-off-by: vegall <lvega@whitestack.com>
17 months agoRevert "Feature 10941: User Management Enhancements" 49/13549/1
garciadeblas [Mon, 19 Jun 2023 20:33:45 +0000 (22:33 +0200)]
Revert "Feature 10941: User Management Enhancements"

This reverts commit 536bb568cd1c79d16d36cd13bdd20d167337d30d.

Change-Id: I238e646546088f9135c272f9ff4890b65959a570
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
17 months agoRevert "Revert "Feature 10941: User Management Enhancements"" 36/13536/2
garciadeblas [Thu, 15 Jun 2023 09:47:15 +0000 (11:47 +0200)]
Revert "Revert "Feature 10941: User Management Enhancements""

This reverts commit 86ec75c0970e672638d4f0d27bc6f471fe256bfb.

Change-Id: I00db6e24782f9cb42f49eeab21b2a35467809f5c
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
17 months agoRevert "Feature 10941: User Management Enhancements" 35/13535/1
garciadeblas [Thu, 15 Jun 2023 09:47:08 +0000 (11:47 +0200)]
Revert "Feature 10941: User Management Enhancements"

This reverts commit acdb5d4d3d2452b5a7f3be87190875d3a06e6999.

Change-Id: Idbd0a3532991de5d5dba81f96a1ff0e2ac55d7bd
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
17 months agoFeature 10941: User Management Enhancements 07/13207/2
selvi.j [Tue, 18 Apr 2023 04:24:13 +0000 (04:24 +0000)]
Feature 10941: User Management Enhancements

Added the implementation code for the user management enhancements feature

Change-Id: I728816c454c1c9b509606fb30df374f1b443e893
Signed-off-by: selvi.j <selvi.j@tataelxsi.co.in>
17 months agoCoverity-CWE 476: NULL Pointer Dereference 84/13284/3
selvi.j [Wed, 26 Apr 2023 12:22:13 +0000 (12:22 +0000)]
Coverity-CWE 476: NULL Pointer Dereference

Added fix for CWE 476: NULL Pointer Dereference (Bad use of null-like value)

Change-Id: I58f3298ee5d7a49fe209e257ef73f4bdbdc1742d
Signed-off-by: selvi.j <selvi.j@tataelxsi.co.in>
17 months agoCoverity-CWE 569: Expression Issues 20/13320/3
selvi.j [Fri, 28 Apr 2023 11:00:21 +0000 (11:00 +0000)]
Coverity-CWE 569: Expression Issues

Added fix for CWE 569: Expression Issues (Same on both sides)

Change-Id: Idfd9c3ef387da9250768b4bd0f42ba81c5edd86a
Signed-off-by: selvi.j <selvi.j@tataelxsi.co.in>
17 months agoFeature 10972: Support of volume multi-attach 46/13046/6
vegall [Mon, 6 Mar 2023 13:49:21 +0000 (13:49 +0000)]
Feature 10972: Support of volume multi-attach

Change-Id: I6e22ec266f56074176ce8cbd0d7f92545a3b00f3
Signed-off-by: vegall <lvega@whitestack.com>
18 months agoFeature 10958: Audit Logs for OSM 63/13263/6
elumalai [Mon, 24 Apr 2023 15:08:32 +0000 (20:38 +0530)]
Feature 10958: Audit Logs for OSM

Added support for audit logs following CEF format in nbi.py,
auth.py and authconn_internal.py.

Change-Id: Ia4ef2fd7097a81d031d6e1bc68a779f536675fef
Signed-off-by: elumalai <deepika.e@tataelxsi.co.in>
18 months agoCoverity-CWE 330: Use of Insufficiently Random Values 83/13283/3
selvi.j [Wed, 26 Apr 2023 12:13:10 +0000 (12:13 +0000)]
Coverity-CWE 330: Use of Insufficiently Random Values

Added fix for CWE 330: Use of Insufficiently Random Value (Cryptographically weak PRNG)

Change-Id: If17007c4e14fa91b3c378a504e7fbd03ea44a69b
Signed-off-by: selvi.j <selvi.j@tataelxsi.co.in>
18 months agoUpdate to Python 3.10 and Ubuntu 22.04 66/13366/2
Mark Beierl [Wed, 10 May 2023 17:55:55 +0000 (13:55 -0400)]
Update to Python 3.10 and Ubuntu 22.04

Removed stale test file that has linting errors
Removed event loops
Updated Python dependencies

Change-Id: I9462b0d67ea6b5bd4c869b5f2bc8d6c57d78660c
Signed-off-by: Mark Beierl <mark.beierl@canonical.com>
19 months agoClean stage-archive.sh and use allowlist_externals in tox.ini 12/13212/2
garciadeblas [Tue, 18 Apr 2023 12:42:40 +0000 (14:42 +0200)]
Clean stage-archive.sh and use allowlist_externals in tox.ini

Change-Id: I214df1372915a96db81ba36faff93dabffe18b6b
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
19 months agoFeature 10975: adds vim-flavor-id to ns_instantiate_vdu schema 62/13162/2
Gabriel Cuba [Wed, 5 Apr 2023 20:24:52 +0000 (15:24 -0500)]
Feature 10975: adds vim-flavor-id to ns_instantiate_vdu schema

Change-Id: Ib638fa9d29f3899bcc4609634d3a99e485152e5d
Signed-off-by: Gabriel Cuba <gcuba@whitestack.com>
19 months agoFix Bug 2229 Set fixed IP address for VDU through VNFD and the instantiation params 00/13100/6
Gulsum Atici [Tue, 28 Mar 2023 14:50:48 +0000 (17:50 +0300)]
Fix Bug 2229 Set fixed IP address for VDU through VNFD and the instantiation params

Change-Id: Ia912cd52a0965a6c2b23faa2b88d9b4d0569fd3f
Signed-off-by: Gulsum Atici <gulsum.atici@canonical.com>
21 months agoUse ip_profile_schema in validation.py 94/12994/2
garciadeblas [Wed, 22 Feb 2023 15:52:24 +0000 (16:52 +0100)]
Use ip_profile_schema in validation.py

Change-Id: If5742f94acba919d5400fabc4c601e45b05c1bdb
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
21 months agoReplace yaml.load by yaml.safe_load 68/12968/1
garciadeblas [Tue, 14 Feb 2023 18:05:34 +0000 (19:05 +0100)]
Replace yaml.load by yaml.safe_load

Change-Id: I4f6c3802e40d763fc2175dbb2bd94dbc79b813c2
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
21 months agoEnable pylint, black and flake8 in tox.ini 59/12859/7
garciadeblas [Tue, 24 Jan 2023 15:56:54 +0000 (16:56 +0100)]
Enable pylint, black and flake8 in tox.ini

Change-Id: I5e252eb4802b79497a3fdfea63488668d8a8c692
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
21 months agoFeature 10950: Replace pycrypto with pycryptodome 15/12915/1
Gulsum Atici [Fri, 3 Feb 2023 17:39:56 +0000 (20:39 +0300)]
Feature 10950: Replace pycrypto with pycryptodome

Change-Id: I187330a6563cb5f4ce19ce3694519e87d692ec3b
Signed-off-by: Gulsum Atici <gulsum.atici@canonical.com>
21 months agoUpdating python dependencies 91/12891/1
Mark Beierl [Fri, 27 Jan 2023 21:23:41 +0000 (21:23 +0000)]
Updating python dependencies

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

Change-Id: If354cd6b4f13592bbe33cc3496b553bc01033a27
Signed-off-by: Mark Beierl <mark.beierl@canonical.com>
2 years agoBug 1954 fixed: I added the <OSM> parameter as one of the valid ones that will be... 08/11808/2 release-v13.0-start
Pedro Escaleira [Thu, 31 Mar 2022 10:50:49 +0000 (11:50 +0100)]
Bug 1954 fixed: I added the <OSM> parameter as one of the valid ones that will be automatically auto-populated by the LCM

Change-Id: I534aff21f2ecb9621c54c45e86ae3b0835e6cf53
Signed-off-by: Pedro Escaleira <escaleira@av.it.pt>
2 years agoBug 2038 fixed 12/12112/3
Pedro Escaleira [Fri, 20 May 2022 14:29:20 +0000 (15:29 +0100)]
Bug 2038 fixed

The method _format_additional_params of the instance_topics.py was
changed in order to verify the target object (VNF|NS|VDU|KDU) where
we need to populate the params with the additional ones given by the
user

Change-Id: I599bb6320054e15917e11d81d6971b33f13f20fd
Signed-off-by: Pedro Escaleira <escaleira@av.it.pt>
2 years agoFixing Bug 2103 and Bug 2134 in NBI 47/12447/3
aticig [Wed, 10 Aug 2022 14:30:12 +0000 (17:30 +0300)]
Fixing Bug 2103 and Bug 2134 in NBI

Update usageStatus in DB properly and do not validate the
descriptors which are not in actively in use.

Change-Id: I671b183cd1537643a32d51db6268379068661f0a
Signed-off-by: aticig <gulsum.atici@canonical.com>
2 years agoRefactoring NBI decriptor_topics unit tests, 61/12461/6
aticig [Mon, 15 Aug 2022 20:48:23 +0000 (23:48 +0300)]
Refactoring NBI decriptor_topics unit tests,
enabling stage-test to fail with tox results

Test_VnfdTopic and Test_NsdTopic classes are refactored.

Change-Id: Ic8e8310f2c2913cf07ff25755f1a2196d16eb944
Signed-off-by: aticig <gulsum.atici@canonical.com>
2 years agoBug 2068 - show_content_artifacts error for zip uploaded packages (sol004 and sol007) 89/12489/2
selvi.j [Thu, 25 Aug 2022 06:24:49 +0000 (06:24 +0000)]
Bug 2068 - show_content_artifacts error for zip uploaded packages (sol004 and sol007)

NG-UI throws an error while clicking content button inside action dropdown
For zip based onboarded packages (sol004 and sol007), facing issues while retrieving the file contents from NG-UI.

API used: /osm/vnfpkgm/v1/vnf_packages/<id>/artifacts

Error detail: Packages does not contains artifacts

Changes made: Zip based packages will check for the folder name, if it doesn't have folder name,
then it will raise the exception else it will pass and print the required output.

Change-Id: I0e6ea93a37162a646ddf2a08103d2a99791a8777
Signed-off-by: selvi.j <selvi.j@tataelxsi.co.in>
2 years agoFix bug 2151 to encrypt correct WIM account password field and check WIM accounts. 10/12510/1
gifrerenom [Mon, 7 Mar 2022 16:57:25 +0000 (16:57 +0000)]
Fix bug 2151 to encrypt correct WIM account password field and check WIM accounts.

Change-Id: I424453286bd057b3c95d5a1bc839ced3ac72ba50
Signed-off-by: gifrerenom <lluis.gifre@cttc.es>
2 years agoBug 2108: Fix for editing polices in VNFD 21/12421/1
elumalai [Fri, 8 Jul 2022 06:36:27 +0000 (12:06 +0530)]
Bug 2108: Fix for editing polices in VNFD

Added fix for extracting policies from VNFD

Change-Id: I7bb55f32c4e5524030f92a0afed920e003a764bf
Signed-off-by: elumalai <deepika.e@tataelxsi.co.in>
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
2 years agoUnit tests for Feature 10910 50/12150/2
elumalai [Wed, 1 Jun 2022 07:27:24 +0000 (12:57 +0530)]
Unit tests for Feature 10910

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

Change-Id: Ied4ef3cb4b9754ace4667fe43abc303fc374e9b8
Signed-off-by: elumalai <deepika.e@tataelxsi.co.in>
2 years agoBugzilla - Bug 2101 : Vertical Scaling Json schema issue 05/12305/2
govindarajul [Wed, 6 Jul 2022 10:24:38 +0000 (10:24 +0000)]
Bugzilla - Bug 2101 : Vertical Scaling Json schema issue

Change-Id: I65c756b18c0f70b51517c09b65fa07d445f7d146
Signed-off-by: govindarajul <Jayaprakash.g@tataelxsi.co.in>
2 years agoBug 2097: Fix for flavor name 01/12301/2
elumalai [Tue, 5 Jul 2022 12:23:59 +0000 (17:53 +0530)]
Bug 2097: Fix for flavor name

Added member-vnf-index and revision number in flavor name to keep it unique.

Change-Id: Ie1e3bc23cba30812a0b917f1518bc4567c9e31b3
Signed-off-by: elumalai <deepika.e@tataelxsi.co.in>
2 years agoJenkins refresh 38/12338/2
Mark Beierl [Thu, 14 Jul 2022 13:39:15 +0000 (09:39 -0400)]
Jenkins refresh

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

Change-Id: I8758d7d5e38ef34ffba16555994e6b15511719bb
Signed-off-by: Mark Beierl <mark.beierl@canonical.com>
2 years agoManual update of pip requirements 54/12254/1 release-v12.0-start
beierlm [Fri, 24 Jun 2022 17:40:58 +0000 (17:40 +0000)]
Manual update of pip requirements

Change-Id: I963e8f63e80e6b35f090b5c03a0ada223118e65e
Signed-off-by: beierlm <mark.beierl@canonical.com>
2 years agoFix Bug 1607 interface position is not taken into account 07/12207/3
aticig [Wed, 15 Jun 2022 22:39:44 +0000 (01:39 +0300)]
Fix Bug 1607 interface position is not taken into account

This fix provides to pass the position information to LCM.

Change-Id: Ic3ddc376932ad52e09205484202542b0c50a6cd3
Signed-off-by: aticig <gulsum.atici@canonical.com>
2 years agoFeature 10911-Vertical scaling of VM instances from OSM 80/11980/4
govindarajul [Fri, 29 Apr 2022 13:35:22 +0000 (19:05 +0530)]
Feature 10911-Vertical scaling of VM instances from OSM

Added implementation code for Vertical Scaling of VDUs in OSM NBI.

Change-Id: I13a30ec3da9eccaf04219023f33ec0a6e6061f0e
Signed-off-by: govindarajul <Jayaprakash.g@tataelxsi.co.in>
2 years agoFeature 10922: Stop, start and rebuild 76/11976/4
k4.rahul [Fri, 29 Apr 2022 12:30:36 +0000 (12:30 +0000)]
Feature 10922: Stop, start and rebuild

Added support for feature start stop rebuild of VNF instances
Change-Id: Ica068b9a4716a7ccaf80d98a9665cc91f119b1ee
Signed-off-by: k4.rahul <rahul.k4@tataelxsi.co.in>
2 years agoBug 1970 fixed 29/11829/2
Pedro Escaleira [Sun, 3 Apr 2022 17:31:50 +0000 (18:31 +0100)]
Bug 1970 fixed

Now the Dockerfile.local uses Ubuntu 20.04;
The paths in the format `/[...]/python<version>/[...]` where replaced
with the new Python version (3.8 instead of 3.6)

Change-Id: Iccccecb2bd4f4d8156357dba582b0460987b060f
Signed-off-by: Pedro Escaleira <escaleira@av.it.pt>
2 years agoChange idna version to 3.3 30/12130/2
aticig [Thu, 26 May 2022 15:20:52 +0000 (18:20 +0300)]
Change idna version to 3.3

Change-Id: I936356c00647c58a48edaa87c0bb4782b7458173
Signed-off-by: aticig <gulsum.atici@canonical.com>
2 years agoFix Bug 2009 use existing volumes as instantiation parameters 80/12080/2
aticig [Wed, 18 May 2022 15:55:23 +0000 (18:55 +0300)]
Fix Bug 2009 use existing volumes as instantiation parameters

Change-Id: I8bed540aea41c23eef5ff4bf25f7ea03d77ba064
Signed-off-by: aticig <gulsum.atici@canonical.com>
2 years agoFeature 10909: Heal operation for VDU 65/11665/8
garciadeblas [Thu, 10 Feb 2022 23:43:44 +0000 (00:43 +0100)]
Feature 10909: Heal operation for VDU

Change-Id: I9cda701cc265f8acad82574dab96a374cc399fa2
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
2 years agoBug 2024 71/12071/3
beierlm [Wed, 18 May 2022 01:25:29 +0000 (21:25 -0400)]
Bug 2024

Creates a rollback for deleting files created before validation
failure

Fixes Bug 2024

Change-Id: I7c3ab4ace06acad073dac492a25b78c2d5a11427
Signed-off-by: beierlm <mark.beierl@canonical.com>
2 years agoFeature 10904: Make all deployment methods optional for K8s cluster 75/11775/3
Gabriel Cuba [Tue, 22 Mar 2022 19:01:26 +0000 (14:01 -0500)]
Feature 10904: Make all deployment methods optional for K8s cluster

Change-Id: Ie299c87b647a25d838e698da841cc27e5bb478e2
Signed-off-by: Gabriel Cuba <gcuba@whitestack.com>
2 years agoFix for Basic25 issue - NS Update Change VNF Package 28/12128/2
elumalai [Thu, 26 May 2022 10:02:06 +0000 (15:32 +0530)]
Fix for Basic25 issue - NS Update Change VNF Package

Added default software-version values to fix the robot test issue

Change-Id: Ifc7ab9747261136acc29b58056c16feb0d822b7a
Signed-off-by: elumalai <deepika.e@tataelxsi.co.in>
2 years agoFeature 10912: NS Update Change VNF Package 34/11934/5
elumalai [Mon, 25 Apr 2022 16:57:59 +0000 (22:27 +0530)]
Feature 10912: NS Update Change VNF Package

Added support for NS Update Change VNF Package feature

Change-Id: I1a20b170f33e64f20814245602c9412133064ca6
Signed-off-by: elumalai <deepika.e@tataelxsi.co.in>
2 years agoFeature 10916: Remove VNF Instance from NS - NS Update 54/11954/9
elumalai [Wed, 27 Apr 2022 18:45:59 +0000 (00:15 +0530)]
Feature 10916: Remove VNF Instance from NS - NS Update

Added support for input validation of Remove VNF update type
Added unit test cases

Change-Id: Ia294114ef093a0cf8a8ba141fc4710cef1bd3b98
Signed-off-by: elumalai <deepika.e@tataelxsi.co.in>
2 years agoFeature 10926 - Subscription feature for SOL003 VNF-LCM 72/11972/2
selvi.j [Fri, 29 Apr 2022 05:42:35 +0000 (05:42 +0000)]
Feature 10926 - Subscription feature for SOL003 VNF-LCM

Added the subscription and notification implementation code
for SOL003 Life cycle management interface

Change-Id: Id73f83f4bf1bbbd07f0b3844a9a89442f8cdfb95
Signed-off-by: selvi.j <selvi.j@tataelxsi.co.in>
2 years agoFeature 10910: Migration of Openstack based VM instances 64/11964/3
elumalai [Thu, 28 Apr 2022 11:56:24 +0000 (17:26 +0530)]
Feature 10910: Migration of Openstack based VM instances

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

Change-Id: I7db836401c5b9fee71f032884064593135fb88d9
Signed-off-by: elumalai <deepika.e@tataelxsi.co.in>
2 years agoRevert "Revert "Feature 10915: SOL003 STD Support for OSM"" 65/12065/2
almagia [Tue, 17 May 2022 12:12:22 +0000 (14:12 +0200)]
Revert "Revert "Feature 10915: SOL003 STD Support for OSM""

This reverts commit b1186b0b9ea287010c9f37ba6062512ea93f0ed4.
As requested by TSC Chair

Change-Id: I811ceec9e7d458b9a528f131cf44c2807f45efb2

2 years agoAdd timeout_ns_update to the NS update params in valdation.py 82/12082/1
garciadeblas [Thu, 19 May 2022 08:31:52 +0000 (10:31 +0200)]
Add timeout_ns_update to the NS update params in valdation.py

Change-Id: I1def985bd805ecf9320ea548c5f51b2a679ba859
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
2 years agoFeature 10908: Update Charms in Running VNF instances 43/11843/14
aticig [Tue, 5 Apr 2022 06:00:17 +0000 (09:00 +0300)]
Feature 10908: Update Charms in Running VNF instances

New URL in NBI to accept the update and put the
update task into Kafka bus.

Change-Id: Iaeaabc4e33a0662f9e7afaf7794cddd2bd6dea1a
Signed-off-by: aticig <gulsum.atici@canonical.com>
2 years agoFeature 10908: NBI Validation of packages upload 66/11866/12
aticig [Thu, 7 Apr 2022 08:57:18 +0000 (11:57 +0300)]
Feature 10908: NBI Validation of packages upload

Descriptor validation methods are added for package update operations.

Change-Id: I38aa0319c698fcc7ff87f95712d2cef83c3aff8b
Signed-off-by: aticig <gulsum.atici@canonical.com>
2 years agoFeature 10920: Monitoring of NFVI-leve VNF metrics form Prometheus TSDB 52/11952/2
vegall [Wed, 27 Apr 2022 15:31:49 +0000 (15:31 +0000)]
Feature 10920: Monitoring of NFVI-leve VNF metrics form Prometheus TSDB

Change-Id: Icd8632036d01368b72fd44a06678ef9403ee8009
Signed-off-by: vegall <lvega@whitestack.com>
2 years agoRevert "Feature 10915: SOL003 STD Support for OSM" 62/12062/1
almagia [Tue, 17 May 2022 08:23:11 +0000 (10:23 +0200)]
Revert "Feature 10915: SOL003 STD Support for OSM"

This reverts commit 59e9d88971c2f513c85ca7095a1e8493f9ebb513.

As requested by TSC chair

Change-Id: I9ec74f1498e9eb0aabac1a41cbb4477cbc930f0d

2 years agoFeature 10915: SOL003 STD Support for OSM 08/11908/11
selvi.j [Thu, 21 Apr 2022 14:52:15 +0000 (14:52 +0000)]
Feature 10915: SOL003 STD Support for OSM

Added implementation code for SOL003 STD support API's for VNF Lifecycle management interface

Change-Id: Ibd483a99aec24b1e7d8166d9e17a899e70b27647
Signed-off-by: selvi.j <selvi.j@tataelxsi.co.in>
2 years agoFeature 10914: Enforce Password change on First login 33/11833/2
selvi.j [Mon, 4 Apr 2022 06:54:30 +0000 (06:54 +0000)]
Feature 10914: Enforce Password change on First login

Added Implementation code for Enforce Password change on First login
and expire password after preset number of days feature

Change-Id: Id1ac670a8f4f27d701aef430f426e911b290b885
Signed-off-by: selvi.j <selvi.j@tataelxsi.co.in>
2 years agoFixes bug 2013 : Passing Anti-affinity group as additionalParamsForVnf 41/11941/1
Alexis Romero [Tue, 26 Apr 2022 17:10:21 +0000 (19:10 +0200)]
Fixes bug 2013 : Passing Anti-affinity group as additionalParamsForVnf

Change-Id: I965ad7339573ecfe8f2eb699a354396f096cf9c5
Signed-off-by: Alexis Romero <garomero@indra.es>
2 years agoBug 1989 Do not use trailing / for directory 80/11880/1
beierlm [Wed, 13 Apr 2022 10:28:58 +0000 (06:28 -0400)]
Bug 1989 Do not use trailing / for directory

When storing package contents in fsmongo, the tar format does not have a trailing
/ on directories, but zip format does.  As a result, when searching for the charm
directory, logic was added to append the / on the end of the directory name.

This is no longer needed as the reverse sync is being used now to store package
content and it handles directory names properly.

Fixes bug 1989

Change-Id: I31540c817113f393e222ae47c3420f374769e3ed
Signed-off-by: beierlm <mark.beierl@canonical.com>
2 years agoFeature 10908: NBI Revisions 98/11798/10
beierlm [Tue, 29 Mar 2022 21:42:48 +0000 (17:42 -0400)]
Feature 10908: NBI Revisions

Changes to package management and instance creation to support
revisions.
Change the file store to also create directories of revisions
and clean them up on package deletion.

Change-Id: Ice3586247d08532efe8a5ab00bbadaa71a6c1b99
Signed-off-by: beierlm <mark.beierl@canonical.com>
2 years agoFix bug 1961 to allow IPv6 addresses besides IPv4 as instantiation param 25/11825/4
garciadeblas [Mon, 4 Apr 2022 14:33:59 +0000 (16:33 +0200)]
Fix bug 1961 to allow IPv6 addresses besides IPv4 as instantiation param

Change-Id: Ib362e7749b67a279b0268d4939f8474289988c58
Signed-off-by: rodriguezgar <frodriguezg@indra.es>
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
2 years agoFeature 10906: Support for Anti-Affinity groups 45/11745/2
Alexis Romero [Fri, 11 Mar 2022 14:53:40 +0000 (15:53 +0100)]
Feature 10906: Support for Anti-Affinity groups

Change-Id: I4ba62d2da9f03c2b26ec60d885673f906268887a
Signed-off-by: Alexis Romero <garomero@indra.es>
2 years agoBug 1926: Update version of Six 71/11771/2
beierlm [Tue, 22 Mar 2022 13:14:32 +0000 (09:14 -0400)]
Bug 1926: Update version of Six

The IM now uses six 1.16.0, so the requirements-dev.txt needs to be
updated to match

Additional dependencies updated:
  lxml
  pyang
  idna
  requests

Fixes bug 1926

Change-Id: I7d8f9ca9a0fd5e0d0e2bdb1900ef247a5b41fccc
Signed-off-by: beierlm <mark.beierl@canonical.com>
2 years agoBug 1837 fix - Helm based KNF cannot be instantiated if values files contains a label... 87/11587/2
Guillermo Calvino [Wed, 26 Jan 2022 16:37:56 +0000 (17:37 +0100)]
Bug 1837 fix - Helm based KNF cannot be instantiated if values files contains a label with special characters '.'

Change-Id: I1888e9402449ef67898b7ebe6a0d68f5cc282978
Signed-off-by: Guillermo Calvino <guillermo.calvino@canonical.com>
2 years agoBug 1844: LTS Support 12/11512/2
beierlm [Thu, 13 Jan 2022 16:40:06 +0000 (11:40 -0500)]
Bug 1844: 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 1844

Change-Id: I66a80d649fa5beaaf0821c9e307ca7215ede9fd4
Signed-off-by: beierlm <mark.beierl@canonical.com>
2 years agoFix bug 1723 to support IPv6 schema for PDU IP address 94/11294/4
garciadeblas [Tue, 26 Oct 2021 15:27:35 +0000 (17:27 +0200)]
Fix bug 1723 to support IPv6 schema for PDU IP address

Change-Id: I3301e6d82408eceafae25f7219294310677a7bb5
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
3 years agofeature: sol004 and sol007 13/11313/9
bravof [Mon, 8 Nov 2021 12:44:54 +0000 (09:44 -0300)]
feature: sol004 and sol007

Change-Id: Icca9da37cdb97e129e2cb239e1e317e327b266ad
Signed-off-by: bravof <fbravo@whitestack.com>
3 years agoBug 1759 fix 29/11329/3
Gulsum Atici [Wed, 10 Nov 2021 17:59:06 +0000 (20:59 +0300)]
Bug 1759 fix

This fix makes ip-address (v4) assignment funtional in NSD.

Change-Id: I1731c22806f49e0365800e6ba197f85ff2fc8a2c
Signed-off-by: Gulsum Atici <gulsum.atici@ulakhaberlesme.com.tr>
3 years agobugfix(VNFR): virtual storages added to VDU section inside the VNFR. bug 1511 30/11330/2
bravof [Wed, 10 Nov 2021 20:58:58 +0000 (17:58 -0300)]
bugfix(VNFR): virtual storages added to VDU section inside the VNFR. bug 1511

Change-Id: I60b33c5e4066545ba39e5dcaf1b7d9f27e6905d2
Signed-off-by: bravof <fbravo@whitestack.com>
3 years agoFix bug 1716: remove vcaId from NSR instantiation parameter 84/11284/1 release-v11.0-start
David Garcia [Thu, 21 Oct 2021 14:39:21 +0000 (16:39 +0200)]
Fix bug 1716: remove vcaId from NSR instantiation parameter

Change-Id: I9b19f09309886608a04e779d18702c1bdf32052c
Signed-off-by: David Garcia <david.garcia@canonical.com>
3 years agoFix bug 1701: remove vcaId parameter in NS deployment 56/11256/2
David Garcia [Wed, 13 Oct 2021 15:14:01 +0000 (17:14 +0200)]
Fix bug 1701: remove vcaId parameter in NS deployment

With this change, in the deployment request, the NBI will get the vca id
from the vim id, which is information that already has.

Change-Id: I31ec3d82da8f55641c3b4869cb3afed465073549
Signed-off-by: David Garcia <david.garcia@canonical.com>
3 years agoFix bug 1688 - widening validation parameters 41/11241/1
sousaedu [Thu, 7 Oct 2021 14:17:32 +0000 (15:17 +0100)]
Fix bug 1688 - widening validation parameters

Change-Id: Ic6d0f00cc77682392b2f151ee3e01892029016e5
Signed-off-by: sousaedu <eduardo.sousa@canonical.com>
3 years agoBug 1538 Fixed 48/10848/5
K Sai Kiran [Thu, 20 May 2021 05:39:49 +0000 (11:09 +0530)]
Bug 1538 Fixed

In case if df is not available in an NSD then  nsd.get("df", [[]])[0].get("vnf-profile", ())
raises an exception. Since [[]][0] returns a list and list does not have a get() function.
Fix is to change [[]] to [{}] such that when [{}][0] is executed we get a dict instead of
list.

Change-Id: I7e7ce62a44720dcc368ce7a4fa3d0bc1d7beb43b
Signed-off-by: K Sai Kiran <saikiran.k@tataelxsi.co.in>
3 years agoIncluding upstream requirements 90/10690/2
beierlm [Thu, 22 Apr 2021 17:00:11 +0000 (13:00 -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: I15a61b1ba000de6acd2e1757a362cc92812c0b0a
Signed-off-by: beierlm <mark.beierl@canonical.com>
3 years agoFix bug 1592 - fix import for IM 89/11089/4
sousaedu [Thu, 29 Jul 2021 15:40:16 +0000 (17:40 +0200)]
Fix bug 1592 - fix import for IM

Change-Id: Ie65ceb116eb7fbb5478e989ca100835334527427
Signed-off-by: sousaedu <eduardo.sousa@canonical.com>
3 years agoFeature5950: Management of quotas in VIM Account 99/10799/3
vijay.r [Fri, 14 May 2021 11:54:59 +0000 (11:54 +0000)]
Feature5950: Management of quotas in VIM Account

Adding code support for Openstack quota resources in vim_accounts

Change-Id: I80b557824729fd6aedcc11dbc70d1f284497a0ea
Signed-off-by: vijay.r <vijay.r@tataelxsi.co.in>
3 years agoFix bug 1595 - Can not create Openstack vim due to special characters in username 62/11062/2
sousaedu [Mon, 12 Jul 2021 08:21:06 +0000 (10:21 +0200)]
Fix bug 1595 - Can not create Openstack vim due to special characters in username

I've checked the code in common and in NBI to see if there was a
possible vector for NoSQL Injection and there wasn't.

Change-Id: I9f1626f8d943999d94d82444aec12efa0f66ddc7
Signed-off-by: sousaedu <eduardo.sousa@canonical.com>
3 years agoFix bug 1587 - TypeError fix 58/11058/1
sousaedu [Thu, 8 Jul 2021 15:17:23 +0000 (17:17 +0200)]
Fix bug 1587 - TypeError fix

Fixes the formatting error reported by bug 1587.

Change-Id: I00446760ce4ab781ef6ca783e3a5f3221c94a774
Signed-off-by: sousaedu <eduardo.sousa@canonical.com>
3 years agobugfix(ip/mac): increments only in extra VDU, not the first one. Bug 1578 54/11054/3
bravof [Thu, 1 Jul 2021 13:32:30 +0000 (09:32 -0400)]
bugfix(ip/mac): increments only in extra VDU, not the first one. Bug 1578

Change-Id: I21a0c2e15934e58d22a3a373a6ea6ef68c9b6ebf
Signed-off-by: bravof <fbravo@whitestack.com>
3 years agoBugfix 1550: Setting a custom release name for Helm based kdus 00/10900/2
romeromonser [Fri, 28 May 2021 08:51:35 +0000 (10:51 +0200)]
Bugfix 1550: Setting a custom release name for Helm based kdus

Change-Id: I63fed6ca98633a8d7bdedec56d4db661cef5dc63
Signed-off-by: romeromonser <garomero@indra.es>
3 years agoFeature 10339 - Enhanced Alarm Mgmt. (SOL005 FM Interface) 11/10511/8
Atul Agarwal [Thu, 18 Mar 2021 08:19:32 +0000 (08:19 +0000)]
Feature 10339 - Enhanced Alarm Mgmt. (SOL005 FM Interface)

Change-Id: I80ee1fb48fe3ad7ac48cd3c346d2d8b8c3181c8c
Signed-off-by: Atul Agarwal <atul.agarwal@altran.com>
Signed-off-by: Atul Agarwal <Atul.Agarwal@Altran.com>
3 years agoFeature-9904: Enhancing NG-UI to enable Juju operational view dashboard 69/10469/6 release-v10.0-start
K Sai Kiran [Wed, 27 Jan 2021 16:08:34 +0000 (21:38 +0530)]
Feature-9904: Enhancing NG-UI to enable Juju operational view dashboard

Added query parameter to NSR api and to send a message to kafka when
conditions are met to trigger vca status refresh. Included unit tests
for functions implemented

Change-Id: Ibf691082cde15d8ee42f1a4ebaebedd99d674e8c
Signed-off-by: ksaikiranr <saikiran.k@tataelxsi.co.in>
3 years agoReformat NBI to standardized format 35/10535/5
garciadeblas [Wed, 24 Mar 2021 08:19:48 +0000 (09:19 +0100)]
Reformat NBI to standardized format

Change-Id: I17c2b029b83af84fbc97559bd2b616dfb6aef0fb
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
3 years agoFix Dockerfile.local 44/10744/4
sousaedu [Wed, 5 May 2021 10:51:45 +0000 (12:51 +0200)]
Fix Dockerfile.local

Replacing Dockerfile.local to mimic the Dockerfile in Devops.

Change-Id: I7b7ce23475cef13e1dfa2e17a91b32978e00ce8b
Signed-off-by: sousaedu <eduardo.sousa@canonical.com>
3 years agoFix 1504 - NBI-HA do not manage correctly new roles (RBAC) 43/10743/2
sousaedu [Wed, 5 May 2021 10:48:16 +0000 (12:48 +0200)]
Fix 1504 - NBI-HA do not manage correctly new roles (RBAC)

Reloads the role permission before any authorization is
performed.

Change-Id: Iaedfc6e298467b3156cc06a677c78f23f8b9d3b4
Signed-off-by: sousaedu <eduardo.sousa@canonical.com>
3 years agoFeature 10239: Distributed VCA 74/10574/11
David Garcia [Wed, 31 Mar 2021 17:10:46 +0000 (19:10 +0200)]
Feature 10239: Distributed VCA

Add "vca" topic and operations

Change-Id: Ieb526e65a9c0c25aa186f8372920cdd4b96fc755
Signed-off-by: David Garcia <david.garcia@canonical.com>
3 years agofix(vdu): vdu number of instances now is taking into account. Bug 1477 86/10686/4
bravof [Thu, 22 Apr 2021 14:03:02 +0000 (10:03 -0400)]
fix(vdu): vdu number of instances now is taking into account. Bug 1477

Change-Id: I63c5281cd5c9d935d51d1f1ace27fea782e84b4c
Signed-off-by: bravof <fbravo@whitestack.com>
3 years agoAdding GitLab Scanner 75/10675/2 branch-ng-ro-refactor-start branch-sol006v331-start
beierlm [Mon, 19 Apr 2021 20:00:48 +0000 (16:00 -0400)]
Adding GitLab Scanner

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

Change-Id: I1a90cdfcfd5d4164e7dfa1c2b1aa1be8b18f4798
Signed-off-by: beierlm <mark.beierl@canonical.com>
3 years agoFix bug 1479 to check conflicts on deleting vnpkg 57/10657/3
garciadeblas [Sun, 18 Apr 2021 20:54:13 +0000 (20:54 +0000)]
Fix bug 1479 to check conflicts on deleting vnpkg

This change affects descriptor_topics.py, specifically the method
check_conflict_on_del of class VnfdTopic. When deleting a NF package,
several checks are required. One of them is the search of NS packages
using that NF package. The filter used for that search was not updated
when moving to SOL006 descriptors. That filter is updated by this
change.

In addition, this change updates the messages returned in case of
conflicts. The terms 'instance' and 'package' are added for
clarification.

Change-Id: I312e9955347c7b79286a0fb33970441edfc17ff0
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
3 years agoFeature 10296 Pip Standardization 72/10372/10
beierlm [Mon, 22 Feb 2021 19:30:35 +0000 (14:30 -0500)]
Feature 10296 Pip Standardization

Creates standard template for tox.ini
Introduces 'safety' for listing upstream CVEs
Pins all versions of all upstream modules

Change-Id: I156239b97cd550c5349eb40197d85ce1a8dfde6c
Signed-off-by: beierlm <mark.beierl@canonical.com>
3 years agoFix 1472 - Error executing upgrade action over K8S NS 05/10505/1
limon [Wed, 17 Mar 2021 12:24:00 +0000 (13:24 +0100)]
Fix 1472 - Error executing upgrade action over K8S NS

Change-Id: Ibc9cb5e12d90f5582f49d99bcee002e2813dd9eb
Signed-off-by: limon <alimonj@indra.es>
3 years agoFix bug 1430 13/10413/3
sousaedu [Mon, 1 Mar 2021 23:19:15 +0000 (00:19 +0100)]
Fix bug 1430

Change-Id: I62a8e017345ea5c231248b06b75ea583ebd58e25
Signed-off-by: sousaedu <eduardo.sousa@canonical.com>
3 years agofix(query): new query to get VNFD using the session object. Bug 1390 06/10406/2
bravof [Fri, 26 Feb 2021 19:57:52 +0000 (16:57 -0300)]
fix(query): new query to get VNFD using the session object. Bug 1390

Change-Id: I787f8715314b113f349c9b659b41aa4e0795250d
Signed-off-by: bravof <fbravo@whitestack.com>
3 years agoFixes bug 1456 by returning default empty list in case no vdu-profile is present 10/10410/1
garciaale [Mon, 1 Mar 2021 14:04:50 +0000 (11:04 -0300)]
Fixes bug 1456 by returning default empty list in case no vdu-profile is present

Change-Id: Ia1d65872771f9010f753dfe839cd22ed75d5b02e
Signed-off-by: garciaale <agarcia@whitestack.com>
3 years agofeat/fix(mgmt-cp): allows package creators to specify an external connection as ... 86/10386/3
bravof [Wed, 24 Feb 2021 20:22:24 +0000 (17:22 -0300)]
feat/fix(mgmt-cp): allows package creators to specify an external connection as 'management' through VDU/KDU configuration

Change-Id: I73cf116609e9e5e569db49d7469cbc9ebce50ab9
Signed-off-by: bravof <fbravo@whitestack.com>
3 years agofix(configuration): juju related changes and configuration issues 75/10375/5
bravof [Mon, 22 Feb 2021 21:04:40 +0000 (18:04 -0300)]
fix(configuration): juju related changes and configuration issues

Change-Id: I55db87441ccefd63c09f77c60c2de4097be4915f
Signed-off-by: bravof <fbravo@whitestack.com>