osm/NBI.git
2 years agoBug 1871 fix - Helm based KNF cannot be instantiated if values files contains a label... 90/11690/1 v10.1.0 v10.1.0-rc1 v10.1.0rc2 v10.1.0rc3
Guillermo Calvino [Wed, 26 Jan 2022 16:37:56 +0000 (17:37 +0100)]
Bug 1871 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 99/11599/1
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 1280 to support IPv6 schema for PDU IP address 95/11295/4
garciadeblas [Tue, 26 Oct 2021 15:27:35 +0000 (17:27 +0200)]
Fix bug 1280 to support IPv6 schema for PDU IP address

Change-Id: I3301e6d82408eceafae25f7219294310677a7bb5
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
3 years agobugfix(VNFR): virtual storages added to VDU section inside the VNFR. bug 1511 07/11407/1
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>
(cherry picked from commit 65e22e5b962fc7a90ca12e85355dfd1bac24d4c1)

3 years agoBug 1729 fix 38/11338/1
Gulsum Atici [Wed, 10 Nov 2021 17:59:06 +0000 (20:59 +0300)]
Bug 1729 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 agoFix bug 1717: remove vcaId from NSR instantiation parameter 83/11283/2 v10.0.3
David Garcia [Thu, 21 Oct 2021 14:39:21 +0000 (16:39 +0200)]
Fix bug 1717: remove vcaId from NSR instantiation parameter

Change-Id: I9b19f09309886608a04e779d18702c1bdf32052c
Signed-off-by: David Garcia <david.garcia@canonical.com>
3 years agoFix bug 1700: remove vcaId parameter in NS deployment 74/11274/1
David Garcia [Wed, 13 Oct 2021 15:14:01 +0000 (17:14 +0200)]
Fix bug 1700: 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 1689 - widening validation parameters 42/11242/2
sousaedu [Thu, 7 Oct 2021 14:22:23 +0000 (15:22 +0100)]
Fix bug 1689 - widening validation parameters

Change-Id: I9fcfed281c27aaa3b0053d3ddd92381ff9841690
Signed-off-by: sousaedu <eduardo.sousa@canonical.com>
3 years agoFix bug 1615 - fix import for IM 90/11090/3 v10.0.2
sousaedu [Thu, 29 Jul 2021 15:40:16 +0000 (17:40 +0200)]
Fix bug 1615 - fix import for IM

Change-Id: Ie65ceb116eb7fbb5478e989ca100835334527427
Signed-off-by: sousaedu <eduardo.sousa@canonical.com>
3 years agoFix bug 1594 - Can not create Openstack vim due to special characters in username 61/11061/2 v10.0.1
sousaedu [Mon, 12 Jul 2021 08:21:06 +0000 (10:21 +0200)]
Fix bug 1594 - 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 1591 - TypeError fix 59/11059/2
sousaedu [Thu, 8 Jul 2021 15:17:23 +0000 (17:17 +0200)]
Fix bug 1591 - TypeError fix

Fixes the formatting error reported by bug 1591.

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 55/11055/1
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 04/10904/3 v10.0.0
romeromonser [Fri, 28 May 2021 09:44:53 +0000 (11:44 +0200)]
Bugfix 1550: Setting a custom release name for Helm based kdus

Change-Id: I4270c35078de09f2214e8fdb97ff0a9c039cf154
Signed-off-by: romeromonser <garomero@indra.es>
3 years agoFeature 10339 - Enhanced Alarm Mgmt. (SOL005 FM Interface) 22/10922/1
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 agoPoint dependencies to branch 68/10868/1
beierlm [Fri, 21 May 2021 21:05:53 +0000 (17:05 -0400)]
Point dependencies to branch

Change-Id: I8a15e724b10eb858db185ac4876e33c529d2947c
Signed-off-by: beierlm <mark.beierl@canonical.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>
3 years agoFix bug 1432: Support for alternative images for sol006 65/10265/5
lloretgalleg [Mon, 8 Feb 2021 11:48:48 +0000 (11:48 +0000)]
Fix bug 1432: Support for alternative images for sol006

Change-Id: I9e8488c02a00916e7b6f1c4f9beb7dbdcda49677
Signed-off-by: lloretgalleg <illoret@indra.es>
3 years agoFix bug 1441: set flag in NSR and VNFR to indicate that SRIOV and PT interfaces are... 01/10301/5
garciadeblas [Fri, 12 Feb 2021 11:23:50 +0000 (11:23 +0000)]
Fix bug 1441: set flag in NSR and VNFR to indicate that SRIOV and PT interfaces are used in their VLD

Change-Id: I1ab178d760a15ab4502ef31a211dd67f59a3c79f
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
3 years agofix(model): adaptations to allow new configuration containers 35/10335/2
bravof [Wed, 17 Feb 2021 21:08:01 +0000 (18:08 -0300)]
fix(model): adaptations to allow new configuration containers

Change-Id: Ic32b12e69e0872ca281e22f1395ae17199eefcce
Signed-off-by: bravof <fbravo@whitestack.com>
3 years agobug(descriptor): missing fields in stored descriptors. 1408, 1388 86/10286/3
bravof [Wed, 10 Feb 2021 13:57:52 +0000 (10:57 -0300)]
bug(descriptor): missing fields in stored descriptors. 1408, 1388

Change-Id: I404cb8788458c5c574748e67de1b5f37b0a0c77b
Signed-off-by: bravof <fbravo@whitestack.com>
3 years agobug(port-security): port security keys added to vnfr/vdur. Bug 1430. Bug 1407 54/10254/1
bravof [Thu, 4 Feb 2021 17:58:04 +0000 (14:58 -0300)]
bug(port-security): port security keys added to vnfr/vdur. Bug 1430. Bug 1407

Change-Id: I7ba1def44ad18cb1b5c5847fbe258b158467191c
Signed-off-by: bravof <fbravo@whitestack.com>
3 years agofix(LCM): floating-ip-required parameter missing from vdu. Bug 1375 53/10253/1
bravof [Wed, 3 Feb 2021 18:22:06 +0000 (15:22 -0300)]
fix(LCM): floating-ip-required parameter missing from vdu. Bug 1375

Change-Id: I2bfe9c86daf8655784e4a82cec3fc0fa5f02cfd7
Signed-off-by: bravof <fbravo@whitestack.com>
3 years agoReverted kdur creation following the kdu modeling before SOL006 11/10111/3 release-v9.0-start v9.0.0 v9.0.0rc1
garciadeblas [Tue, 15 Dec 2020 10:33:40 +0000 (10:33 +0000)]
Reverted kdur creation following the kdu modeling before SOL006

Change-Id: I12c5d5fd63c930ccfe311ffd123827c3a0e9286d
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
3 years agoFixes 1367 by preventing pyang discard repeated constituent-base-element-id 04/10104/1
garciaale [Fri, 11 Dec 2020 23:04:11 +0000 (20:04 -0300)]
Fixes 1367 by preventing pyang discard repeated constituent-base-element-id

Change-Id: I5b692498b04494a2182ebc5e1ef28fbcd3ba66be
Signed-off-by: garciaale <agarcia@whitestack.com>
3 years agoFixes kdu-name on kdur indexing for instantiating KDUs 83/10083/1
garciaale [Mon, 7 Dec 2020 21:24:03 +0000 (18:24 -0300)]
Fixes kdu-name on kdur indexing for instantiating KDUs

Change-Id: Ida6dd3b900eea05badffc1b405985e4dd813c5e5
Signed-off-by: garciaale <agarcia@whitestack.com>
3 years agoAdds a clear error message when uploading an old descriptor 78/10078/2
garciaale [Thu, 3 Dec 2020 22:17:28 +0000 (19:17 -0300)]
Adds a clear error message when uploading an old descriptor

Change-Id: Id600b558858f45001adad1bf6a4eb5f3bb28ff14
Signed-off-by: garciaale <agarcia@whitestack.com>
3 years agoFix bug 1322 66/10066/1
David Garcia [Wed, 2 Dec 2020 14:47:46 +0000 (15:47 +0100)]
Fix bug 1322

Change-Id: I6a5b2ee56d8ac2383d846ed2fedc1aec37b9d798
Signed-off-by: David Garcia <david.garcia@canonical.com>
3 years agoFixed scale validation for sol006 60/10060/1
lloretgalleg [Tue, 1 Dec 2020 12:51:52 +0000 (12:51 +0000)]
Fixed scale validation for sol006

Change-Id: Iaee84eb1fcebd797abdaa76b248c167c4936692a
Signed-off-by: lloretgalleg <illoret@indra.es>
3 years agoMerges branch sol006 into master, allowing NBI to use, parse and validate SOL006... 46/10046/1
garciaale [Fri, 27 Nov 2020 13:38:35 +0000 (10:38 -0300)]
Merges branch sol006 into master, allowing NBI to use, parse and validate SOL006 descriptors

Change-Id: I85db721d20c37d82641604a4da27639445ae2a8d
Signed-off-by: garciaale <agarcia@whitestack.com>
4 years agoFeature 8532: Added new plugin authconn tacacs 28/9928/7
K Sai Kiran [Fri, 30 Oct 2020 05:44:44 +0000 (11:14 +0530)]
Feature 8532: Added new plugin authconn tacacs

Added plugin authconn_tacacs.py Created new function validate_user() to
contain the logic for username password validation.
In authconn_tacacs, validate_user will be redefined to connect to TACACS.
Created class variables which will be collections for internal mode. For TACACS mode,
they will be roles_tacacs, projects_tacacs etc.

Change-Id: Ib7fc8900860a492a79f6d0220bcdbb582edad017
Signed-off-by: K Sai Kiran <saikiran.k@tataelxsi.co.in>
4 years agoFeature 7184: Set at instantiation records if vld connect pci interfaces 86/9986/2
tierno [Fri, 13 Nov 2020 15:56:51 +0000 (15:56 +0000)]
Feature 7184: Set at instantiation records if vld connect pci interfaces

Change-Id: I2118c23aa17a5d7a21a56802dede4753f8054da5
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
4 years agoSupport for mongodb replicaset connection (HA). 61/9761/4
Vijay Nag B S [Tue, 29 Sep 2020 11:58:51 +0000 (17:28 +0530)]
Support for mongodb replicaset connection (HA).

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

Change-Id: I5b4c15463a6593319f2d9f097b41a3bb9688fcc6
Signed-off-by: Vijay Nag B S <vijaynag.bs@tataelxsi.co.in>
4 years agoExtracts individual validations for VnfdTopic and NsdTopic classes and adds unit... 95/9895/5
garciaale [Tue, 20 Oct 2020 21:29:45 +0000 (18:29 -0300)]
Extracts individual validations for VnfdTopic and NsdTopic classes and adds unit tests for them

Change-Id: I4eada3cc7207b583f1d47f5fa2cf982152c811e6
Signed-off-by: garciaale <agarcia@whitestack.com>
4 years agoNBI changes for Grafana Multitenancy feature 16/9816/12
agarwalat [Thu, 8 Oct 2020 13:06:14 +0000 (13:06 +0000)]
NBI changes for Grafana Multitenancy feature

Change-Id: If92574606108152fed505dd5c132176721aa1736
Signed-off-by: agarwalat <atul.agarwal@altran.com>
4 years agoAdded support for helm version 40/9940/1
lloretgalleg [Wed, 4 Nov 2020 10:04:28 +0000 (10:04 +0000)]
Added support for helm version

Change-Id: Id6d3a8430c75a3043b2c261db478c36da30af6b9
Signed-off-by: lloretgalleg <illoret@indra.es>
4 years agoFeature 7184: Adding flavor, image info to nsr 72/8972/8
tierno [Tue, 26 May 2020 15:39:18 +0000 (15:39 +0000)]
Feature 7184: Adding flavor, image info to nsr

adding boot-data-drive to vdu
adding vdu interfaces sorted by key position

Change-Id: I6e3aee2e001b3dfb63694c876f414be5bcbbc108
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
4 years agoFixes Bug 1275 - aiokafka 0.7.0 dependency added 26/9926/4
fonsecaj [Thu, 29 Oct 2020 18:35:58 +0000 (18:35 +0000)]
Fixes Bug 1275 - aiokafka 0.7.0 dependency added

Change-Id: I3e7f5e25325dbbb4019e6eac7096ddcbbeee1b07
Signed-off-by: fonsecaj <jpedrofonseca@av.it.pt>
4 years agofix 1272. Fixing aiohttp version to 3.6.2 21/9921/1
tierno [Wed, 28 Oct 2020 10:04:37 +0000 (10:04 +0000)]
fix 1272. Fixing aiohttp version to 3.6.2

library aioresponses 0.7.0 used only by unittests is failing
with the aiohttp version 3.7.x For the moment freezing aiohttp
version

Also allows modern versions of cherrypy and jsonschema in master branch

Change-Id: I45503fd28a2f015773b1f7200d80d5ce412df567
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
4 years agoFix bug 1255: returning UNPROCESSABLE_ENTITY when quota exceeded 40/9840/1
garciadeblas [Thu, 8 Oct 2020 15:25:45 +0000 (15:25 +0000)]
Fix bug 1255: returning UNPROCESSABLE_ENTITY when quota exceeded

When quota exceeded for vnfds, nsds, ns_instances topics, NBI
should return UNPROCESSABLE_ENTITY instead of UNAUTHORIZED

Change-Id: I0a8f4dc1df844e1027ff8234f101b82baa0bcee8
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
4 years agofix 1238: Provide known ip-address, mac-address at created vnf 39/9839/1
tierno [Tue, 6 Oct 2020 08:28:00 +0000 (08:28 +0000)]
fix 1238: Provide known ip-address, mac-address at created vnf

vnf is created at database. Instantiation parameters of
ip-address, mac-adddress are populated to the vnf, so that
it is available for jinja2 cloud-init parsing at LCM

Change-Id: Ida091f713219f702b753a044683d9474a2670cc1
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
4 years agofix validation error oneOf 38/9838/1
tierno [Fri, 18 Sep 2020 14:18:55 +0000 (14:18 +0000)]
fix validation error oneOf

Change-Id: Iaa4ecf3b5b27136d99d26aea59363de1dbb55477
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
4 years agoFixed bug 1176 wims Removed role permission tags 43/9643/2
K Sai Kiran [Fri, 28 Aug 2020 08:58:27 +0000 (14:28 +0530)]
Fixed bug 1176 wims Removed role permission tags

No routes present for wims. Hence wims:<any verb> is invalid
role permission. wims does not have a route in valid url methods.
Hence removed them.

Change-Id: Ib90b55b74d7c485527415bc8683ebb88d5797b70
Signed-off-by: K Sai Kiran <saikiran.k@tataelxsi.co.in>
4 years agoFixed bug 1197 44/9644/1
K Sai Kiran [Fri, 28 Aug 2020 09:41:48 +0000 (15:11 +0530)]
Fixed bug 1197

Added api_req arguments to add show methods to make
them compatible with engine.py call signature.

Change-Id: I161515e0cc71596fde28e138561f7bb399e206fc
Signed-off-by: K Sai Kiran <saikiran.k@tataelxsi.co.in>
4 years agofix project|use|role-list error 95/9595/1
tierno [Fri, 14 Aug 2020 14:25:32 +0000 (14:25 +0000)]
fix project|use|role-list error

it was introduced at commit 2fbb1c6 gerrit 9565

Change-Id: I18826b31f569a9fb34444a3610cc4be96f475c87
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
4 years agofix 1102 At nsi terminate, fix ns terminate operations needed 45/9145/3
tierno [Tue, 23 Jun 2020 15:25:26 +0000 (15:25 +0000)]
fix 1102 At nsi terminate, fix ns terminate operations needed

Check status of nst before creating nsi

Change-Id: I3d8229ba696739a6bc339fec48814b2e5af66cfc
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
4 years agofix 1185: XSS vulnerability in the URL 81/9581/1
tierno [Tue, 21 Jul 2020 12:01:02 +0000 (12:01 +0000)]
fix 1185: XSS vulnerability in the URL

Change-Id: I5c28e2992211529494072e867ee87f395e143589
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
4 years agoenhanced role permission validation 80/9580/1
tierno [Tue, 4 Aug 2020 12:48:15 +0000 (12:48 +0000)]
enhanced role permission validation

this commit avoid incompleted permission keys. For example command:
osm role-update --add "vim_accoun: true"
must fais, as it should be "vim_accounts: true"

Change-Id: Ib5a5d88ae35120e99a43c80d20ccf8b207701780
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
4 years agofix 1107 allow getting single file package with text/plain 79/9579/1
tierno [Tue, 4 Aug 2020 14:14:16 +0000 (14:14 +0000)]
fix 1107 allow getting single file package with text/plain

According to SOL005 this should be available if descriptor
does not contains artifacts

Change-Id: I4def3bdc6193f0a9189eb50e0145a3f60e2f3ca4
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
4 years agofix 1187 create notification task with the proper loop 78/9578/1
tierno [Mon, 10 Aug 2020 13:53:57 +0000 (13:53 +0000)]
fix 1187 create notification task with the proper loop

Also call notifications when there are subscribers

Change-Id: Icf6b4f88aaf633282c2736de85803f845b17d4c6
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
4 years agoFix for 1111 Reordering of format_out 56/9556/1
Frank Bryden [Mon, 10 Aug 2020 11:44:11 +0000 (11:44 +0000)]
Fix for 1111 Reordering of format_out

Change-Id: I59f64d22c39c82bf099c74647d0f128092d24f95
Signed-off-by: Frank Bryden <frank.bryden@etsi.org>
4 years agoFix for Bug 1115: Rename state attributes for SOL005 conformance 34/9434/13
Frank Bryden [Fri, 10 Jul 2020 12:32:02 +0000 (12:32 +0000)]
Fix for Bug 1115: Rename state attributes for SOL005 conformance

Change-Id: I4c6eda2916c59b9631ffc51e419803554f01b574
Signed-off-by: Frank Bryden <frank.bryden@etsi.org>
4 years agoPATCH support for enabling and disabling of NSDs and VNFDs. 83/9483/16
Frank Bryden [Mon, 27 Jul 2020 13:55:11 +0000 (13:55 +0000)]
PATCH support for enabling and disabling of NSDs and VNFDs.

Moved the validation code to _validate_input_edit.
Updated relevant tests.

Change-Id: I0666f28e1f06585f3648b0a88812f7348c622d86
Signed-off-by: Frank Bryden <frank.bryden@etsi.org>
4 years agoFix for Bug 1111 Reordering of format_out 27/9327/9
Frank Bryden [Wed, 3 Jun 2020 13:34:16 +0000 (13:34 +0000)]
Fix for Bug 1111 Reordering of format_out

Change-Id: I926cdb6fc877d5d4d233400f9eb9973ad6b2935d
Signed-off-by: Frank Bryden <frank.bryden@etsi.org>
4 years agoBefore creating a Network Slice, check underlying NST is not in DISABLED state 26/9526/2
Frank Bryden [Tue, 28 Jul 2020 12:50:23 +0000 (12:50 +0000)]
Before creating a Network Slice, check underlying NST is not in DISABLED state

Change-Id: If58bd7fb17e807293b79141f18653fd3350531c5
Signed-off-by: Frank Bryden <frank.bryden@etsi.org>
4 years agoBefore creating an NS, check underlying NSD is not in DISABLED state 94/9494/2
Frank Bryden [Tue, 21 Jul 2020 14:25:32 +0000 (14:25 +0000)]
Before creating an NS, check underlying NSD is not in DISABLED state

Change-Id: Ie31277a4c85092f3bd42b4f865d38d8e8049af7a
Signed-off-by: Frank Bryden <frank.bryden@etsi.org>
4 years agobug 1146 adding vnf.vdur.name for PDUs 52/9452/1
tierno [Tue, 14 Jul 2020 15:39:07 +0000 (15:39 +0000)]
bug 1146 adding vnf.vdur.name for PDUs

Change-Id: I862a1ec95499bd285a44aab3f3527e0c1c80af65
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
4 years agoBug 1139 Adding ns-configuration data 87/9387/1
preethika.p [Fri, 10 Jul 2020 13:14:22 +0000 (13:14 +0000)]
Bug 1139 Adding ns-configuration data

Change-Id: I55f13a301d10ac5ee4332612565c2663f4bb35d8
Signed-off-by: preethika.p <preethika.p@tataelxsi.co.in>
4 years agotest_prom_metric_request re-enabled 31/9031/9
garciadeblas [Wed, 3 Jun 2020 13:34:16 +0000 (13:34 +0000)]
test_prom_metric_request re-enabled

Change-Id: I042a29b382949eb1d38083c3818782aa9b552339
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
4 years agoDockerfile and tox.ini for devops-stages modified to work on ubuntu18.04 52/9252/4
garciadeblas [Wed, 1 Jul 2020 08:03:22 +0000 (08:03 +0000)]
Dockerfile and tox.ini for devops-stages modified to work on ubuntu18.04

Change-Id: I67e8f9078478185ee47bca4301ff16a099baf8af
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
4 years agoAdded coverage tests in tox 19/8619/19
garciadeblas [Wed, 19 Feb 2020 17:11:52 +0000 (18:11 +0100)]
Added coverage tests in tox

Change-Id: Iaf3cae9df2cd421947662dc69b3b67bb361c4fe6
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
4 years agoFeature 7919: Added method to check duplicate subscription 46/9146/4
K Sai Kiran [Mon, 22 Jun 2020 10:03:53 +0000 (15:33 +0530)]
Feature 7919: Added method to check duplicate subscription

New common method for NS, NSD and VNFD subscriptions check_conflict_on_new()
compares new subscription against existing subscriptions. It will reject
new subscription if and only if there exisits a subscription
which has same auth callbackuri, username(if present) and filters.

Change-Id: I0196ee4dfc1207c635cfa4c2ac5798be3579a095
Signed-off-by: K Sai Kiran <saikiran.k@tataelxsi.co.in>
4 years agoparsing instantiation parameter config-units into vnfr 79/9179/3
tierno [Thu, 25 Jun 2020 13:26:28 +0000 (13:26 +0000)]
parsing instantiation parameter config-units into vnfr

Change-Id: I6f6047c5ab49c42556c9cb09c4512a4dc37ac2df
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
4 years agoFeature 8840 Notify without auth and typo fixes 59/9159/3
K Sai Kiran [Thu, 25 Jun 2020 09:15:50 +0000 (14:45 +0530)]
Feature 8840 Notify without auth and typo fixes

Initial implementation always needed auth to make notification.
After going through sol005, understanding is auth can be optional and while subscribing
auth is kept optional. Also fixed some typos.

Change-Id: I89c5cf8f0efa9915b4daebb0f8e0d20d2861f71c
Signed-off-by: K Sai Kiran <saikiran.k@tataelxsi.co.in>
4 years agoAdded NS subscription to html_out 60/9160/2
K Sai Kiran [Thu, 25 Jun 2020 10:53:32 +0000 (16:23 +0530)]
Added NS subscription to html_out

Added Ns subscription url to html_out.
Since in html there was no explict link for favicon.ico, browser by
default makes GET request to /favicon.ico NBI reponse was 404.
Added OSM favicon.ico and gave explicit link to static folder.

Change-Id: Id0088ca09bfc5000e487ab44ac678fab49919c37
Signed-off-by: K Sai Kiran <saikiran.k@tataelxsi.co.in>
4 years agochange to backed keystone by default 49/9149/1 release-v8.0-start v8.0.0rc1
tierno [Wed, 24 Jun 2020 14:49:36 +0000 (14:49 +0000)]
change to backed keystone by default

Change-Id: Ibfce8d1558eb7d43cc39d6397d8714cf8ccd335b
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
4 years agofix 1103. Ensure role system_admin is present 47/9147/1
tierno [Wed, 24 Jun 2020 10:54:11 +0000 (10:54 +0000)]
fix 1103. Ensure role system_admin is present

Change-Id: Ieda404fe35262f2afa51dedddf0404ef00087622
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
4 years agobug 1092 fixing deletion of items referenced by several projects 36/9136/3
tierno [Mon, 22 Jun 2020 12:17:22 +0000 (12:17 +0000)]
bug 1092 fixing deletion of items referenced by several projects

It is only deletes if it the last project referencing it.
Depends on this change at common:  https://osm.etsi.org/gerrit/9134

Change-Id: Id167c0ae3309212b97f59d47a9f3cee7f53fd263
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
4 years agofix option 'authentication.user_not_authorized' used for test 35/9135/3
tierno [Mon, 22 Jun 2020 10:58:26 +0000 (10:58 +0000)]
fix option 'authentication.user_not_authorized' used for test

Change-Id: Ie0e9d8a1dd6741a57c575ee18bd9dd39d762c6b7
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
4 years agofixing in vnf/ns-package artifacts 11/9111/3
tierno [Thu, 18 Jun 2020 10:52:37 +0000 (10:52 +0000)]
fixing in vnf/ns-package artifacts

Change-Id: I4c59c88fa380211f07e91016fbdefbbf807117fa
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
4 years agoallow with kwargs (option override) to create nested objects 98/9098/4
tierno [Wed, 17 Jun 2020 07:42:30 +0000 (07:42 +0000)]
allow with kwargs (option override) to create nested objects

Change-Id: I4ca24e1117f86eaf6e4d18863c478a4d536e2374
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
4 years agoFeature 8840 Notification to OSS/BSS for subscribed events. 28/8828/7
K Sai Kiran [Tue, 28 Apr 2020 09:18:31 +0000 (14:48 +0530)]
Feature 8840 Notification to OSS/BSS for subscribed events.

osm_nbi/subscriptions.py: Existing thread which analyze kafka messages for ns topic, if the message
can be used for nslcm notification, then it will invoke NsLcmNotification.send_notification().

osm_nbi/notifications.py: (new file)Holds classes for NS, NSD, VNFD notifications. Used asyncio and aiohttp to send notifications.
Wait time for failed notification will increase in powers of 2. Reusing session of aiohttp client for performance.
Notifications are SOL005 compliant. But some data is missing in kafka message, for such keys N/A value is assigned in notification body.

Change-Id: I142ffc12f3b4e3720d41562f7ffca3b2280f4fd4
Signed-off-by: K Sai Kiran <saikiran.k@tataelxsi.co.in>
4 years agofeature 7919 - Subscription API for OSS/BSS management systems 11/8811/4
preethika.p [Wed, 22 Apr 2020 06:55:39 +0000 (12:25 +0530)]
feature 7919 - Subscription API for OSS/BSS management systems

Delete_extra used to remove mapped_subscription
Moved code to use db.create_list function
Addressed review comments.

Change-Id: I84bd39e9a9c942d15762d4715843c7c539842767
Signed-off-by: preethika.p <preethika.p@tataelxsi.co.in>
4 years agofix bug 1070: New selfsigned certificate 37/9037/1
tierno [Wed, 3 Jun 2020 22:00:49 +0000 (22:00 +0000)]
fix bug 1070: New selfsigned certificate

Change-Id: I1d14ec8f3a7b180ae49a802cdc5874c768a53e0a
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
4 years agoFeature 9015: use same names for quotas and roles 19/9019/4
tierno [Tue, 2 Jun 2020 10:07:41 +0000 (10:07 +0000)]
Feature 9015: use same names for quotas and roles

add osmrepos to quotas

Change-Id: I8cf11677b8aa5612f78ff10492d432849b33cd08
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
4 years agoFeature 9015: check quotas for admin and return Unauthorize 30/9030/2
tierno [Thu, 28 May 2020 10:41:10 +0000 (10:41 +0000)]
Feature 9015: check quotas for admin and return Unauthorize

Change-Id: I856aea935c03d835fe22176c31c27bce15d59b12
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
4 years agoBug 1078 fixed by using try block for user update 29/9029/1
K Sai Kiran [Wed, 27 May 2020 11:00:10 +0000 (16:30 +0530)]
Bug 1078 fixed by using try block for user update

Following the documentation of LDAP in devops repo, the user profiles are read only.
Try Except block resolves the issue. Raise error to NBI when change
for username/password is requested.

Change-Id: Id5919af575ec7cd128424fc53f7365d6cd4c29a7
Signed-off-by: K Sai Kiran <saikiran.k@tataelxsi.co.in>
4 years agoupdate role project_user with k8scluster and repos 71/8971/2
tierno [Tue, 26 May 2020 15:49:04 +0000 (15:49 +0000)]
update role project_user with k8scluster and repos

Change-Id: I183fb351e8be6a285f5f3f40e5bbea97a9cb9518
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
4 years agoFix bug #1077 slice instantiation with ssh_keys option 28/9028/1
Felipe Vicens [Sun, 24 May 2020 16:57:33 +0000 (18:57 +0200)]
Fix bug #1077 slice instantiation with ssh_keys option

Change-Id: Ied5223046f00b630442043f3e6ecd34f6867c24f
Signed-off-by: Felipe Vicens <felipe.vicens@atos.net>
4 years agoFilter with project in slice nsd selection 27/9027/1
Felipe Vicens [Fri, 22 May 2020 14:37:39 +0000 (16:37 +0200)]
Filter with project in slice nsd selection

Change-Id: Id0141df33b8470bc6739b26da0fd72166c160972
Signed-off-by: Felipe Vicens <felipe.vicens@atos.net>
4 years agofix problem vnfpkg internal-vlds without name 26/9026/1
tierno [Thu, 21 May 2020 15:09:22 +0000 (15:09 +0000)]
fix problem vnfpkg internal-vlds without name

Change-Id: I06fba0317f13e6691b7d9c41177d1178dbd26d2b
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
4 years agoBug 1068 fixed for auth_url in keystone 25/9025/1
K Sai Kiran [Wed, 20 May 2020 06:55:12 +0000 (12:25 +0530)]
Bug 1068 fixed for auth_url in keystone

When we pass auth_url in nbi.cfg -> [authentication], the auth_url is used by password manager
but not by keystone http client. Need to pass auth_url to httpclient so that it uses auth_url
instead of https://keystone:5000 which is in service catalog of keystone.
Added http://keystone:5000/v3 to docker files.
Added regex validation for auth_url.

Change-Id: Ie3e144dd826e73a27c25f917cf54e64cf4c22207
Signed-off-by: K Sai Kiran <saikiran.k@tataelxsi.co.in>
4 years agoFeature 8178 VNF Repositories 54/8854/4
Felipe Vicens [Wed, 6 May 2020 08:11:00 +0000 (10:11 +0200)]
Feature 8178 VNF Repositories

Change-Id: Ifdd15c294331838dd3b18d89dc009bfc54827871
Signed-off-by: Felipe Vicens <felipe.vicens@atos.net>
4 years agofix other flake8 problem 24/9024/1
tierno [Tue, 12 May 2020 14:32:37 +0000 (14:32 +0000)]
fix other flake8 problem

Change-Id: I6a076fa05f734432f48e0ab9826e27bffe0b80ad
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
4 years agofix flake8 problem 23/9023/1
tierno [Tue, 12 May 2020 13:01:19 +0000 (13:01 +0000)]
fix flake8 problem

Change-Id: I6a46a828c0e0ebadb3504e4f71b7cad1b49e6842
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
4 years agofix 1059. Provide rights parameters to ns_terminate for a nsi service 22/9022/1
tierno [Tue, 12 May 2020 09:42:02 +0000 (09:42 +0000)]
fix 1059. Provide rights parameters to ns_terminate for a nsi service

Change-Id: Ic83d30c33f6df148f651f4a06fc4a8d98be8b116
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
4 years agoFeature 8720: instantiate parameters config-units 37/8837/1
tierno [Wed, 29 Apr 2020 13:46:13 +0000 (13:46 +0000)]
Feature 8720: instantiate parameters config-units

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