osm/common.git
16 months agoOSMENG-1095 VDU Terminate WF 45/13645/5
aa [Thu, 6 Jul 2023 12:17:24 +0000 (15:17 +0300)]
OSMENG-1095 VDU Terminate WF

Adding stub class of VduTerminateWorkflow

Change-Id: I378fff51241be3ff7c0a97604db0b9fcc7a08931
Signed-off-by: aa <gulsum.atici@canonical.com>
16 months agoBase class for get model names activity 58/13658/3
Daniel Arndt [Mon, 10 Jul 2023 12:49:38 +0000 (09:49 -0300)]
Base class for get model names activity

Change-Id: Ia7eeb2a89eab5c3c4364de7bb6b8f2313d12163f
Signed-off-by: Daniel Arndt <daniel.arndt@canonical.com>
16 months agoOSMENG-1090 OSMENG-1091: Remove model and check model is removed 57/13657/2
Dario Faccin [Mon, 10 Jul 2023 07:28:22 +0000 (09:28 +0200)]
OSMENG-1090 OSMENG-1091: Remove model and check model is removed

Change-Id: I7a4acabb20412b4f737ff95eb8b33723fceaa004
Signed-off-by: Dario Faccin <dario.faccin@canonical.com>
16 months agoUpdate incorrect GetVnfRecord docstrings 52/13652/2
Daniel Arndt [Fri, 7 Jul 2023 15:28:25 +0000 (12:28 -0300)]
Update incorrect GetVnfRecord docstrings

Change-Id: Id54ffae045bb8e70956b43915338513876b06c98
Signed-off-by: Daniel Arndt <daniel.arndt@canonical.com>
16 months agoOSMENG-1096 OSMENG-1097: Delete application and check application is 04/13604/3
Dario Faccin [Mon, 3 Jul 2023 07:19:34 +0000 (09:19 +0200)]
OSMENG-1096 OSMENG-1097: Delete application and check application is
removed

Change-Id: I7c2395c74acb752747565c004ad28466722aea99
Signed-off-by: Dario Faccin <dario.faccin@canonical.com>
16 months agoFixing workflow passthrough 02/13602/2
Mark Beierl [Fri, 30 Jun 2023 19:32:35 +0000 (19:32 +0000)]
Fixing workflow passthrough

LCM Operation Workflow abstract classes should not interfere
with the impl's ability to call super() on wrap_nslcmop method

Change-Id: If46a643f0d7b34f77d47638ad9de8786aba15932
Signed-off-by: Mark Beierl <mark.beierl@canonical.com>
16 months agoOSMENG-1155 Implementation of Constants and Dataclasses 55/13555/16
Dario Faccin [Tue, 20 Jun 2023 14:12:29 +0000 (16:12 +0200)]
OSMENG-1155 Implementation of Constants and Dataclasses

Add stubs for common elements, workflows and activities

Change-Id: If7a2aa8a6e6627df5293154bf48da742dea57e1c
Signed-off-by: Dario Faccin <dario.faccin@canonical.com>
17 months agoOSMENG-1048 Implement day1 configuration for VDU (improved) 53/13353/7
Gulsum Atici [Fri, 5 May 2023 06:44:22 +0000 (09:44 +0300)]
OSMENG-1048 Implement day1 configuration for VDU (improved)

Change-Id: Ic22bb5b1f043c1a0edefc3b281e9722a27d2a24b
Signed-off-by: Gulsum Atici <gulsum.atici@canonical.com>
18 months agoUpdate from master 43/13443/5
Dario Faccin [Wed, 24 May 2023 10:48:37 +0000 (12:48 +0200)]
Update from master

Squashed commit of the following:

commit b5015160aca7f04f2b0fb35c87281c0ab480f429
Author: Pedro Escaleira <escaleira@av.it.pt>
Date:   Wed May 17 00:13:05 2023 +0100

    Bug 2246 fixed

    Change-Id: Ic35d131d4e44686de207b0a6acc3360e04306cb2
Signed-off-by: Pedro Escaleira <escaleira@av.it.pt>
commit 01df3ee231471330760e03b013382464e773eee2
Author: Gulsum Atici <gulsum.atici@canonical.com>
Date:   Thu May 11 11:07:54 2023 +0300

    Fix AttributeError caused by updated pymongo version

    AttributeError: 'Cursor' object has no attribute 'count' is fixed.

    Change-Id: Id1b9133376d5a7dcb3998c623163bb57dd5c534b
Signed-off-by: Gulsum Atici <gulsum.atici@canonical.com>
commit 8f3ab9a82608ffe74e6fd5d0c532822412dbc88a
Author: k4.rahul <rahul.k4@tataelxsi.co.in>
Date:   Fri May 5 14:18:47 2023 +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: I0691a9f231d6b7019fe413c261f50262ea7fb923
Signed-off-by: k4.rahul <rahul.k4@tataelxsi.co.in>
commit bc94e3403ebab364fff7603c1a353c793b52966e
Author: k4.rahul <rahul.k4@tataelxsi.co.in>
Date:   Fri May 5 15:52:47 2023 +0530

    Coverity-CWE 260: Password in Configuration File

    Hardcoded credentials in​ configuration file​
    remove from the cloud-config.txt file as it is not being used anywhere in the test case

    Change-Id: I101e4b9b6f48fa6d34822bc6f400552329f9aa18
Signed-off-by: k4.rahul <rahul.k4@tataelxsi.co.in>
commit db28d4290a34ed1a7ac7a2ca10cab7eb34a55fd1
Author: garciadeblas <gerardo.garciadeblas@telefonica.com>
Date:   Wed May 10 16:26:55 2023 +0200

    Minor updates in Dockerfile

    Change-Id: Ia12406fef38b13c56ebec3be5bee53cd00441181
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
commit 0edc5108ac7e584cac210ed6bae8b8ef09511388
Author: garciadeblas <gerardo.garciadeblas@telefonica.com>
Date:   Tue Apr 18 15:07:15 2023 +0200

    Clean stage-archive.sh and use allowlist_extenals in tox.ini

    Change-Id: I511cd5009563589f54899f667d779239745f2778
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
commit a06b854f2b278aaee015fc1f76015895f8cf50c1
Author: Gulsum Atici <gulsum.atici@canonical.com>
Date:   Tue May 9 13:42:13 2023 +0300

    Ubuntu 22.04 and Python 3.10 preparation

    Change-Id: I740202d48977467a0c2b2afb4b17bd7597331dee
Signed-off-by: Gulsum Atici <gulsum.atici@canonical.com>
commit b2d732a70efa33e4bc478d351d64bc4adb4ea332
Author: k4.rahul <rahul.k4@tataelxsi.co.in>
Date:   Thu Apr 27 16:20:47 2023 +0530

    Coverity-CWE 476: NULL Pointer Dereference (137978 Bad use of null-like value)

    Coverity fix for Bad use of null-like value

    Change-Id: I7437c2b2aeeff25619b5405bcd7c962f3fbd70bb
Signed-off-by: k4.rahul <rahul.k4@tataelxsi.co.in>
commit 09496abf441b0f3730f0288df161da1ca004be69
Author: Gabriel Cuba <gcuba@whitestack.com>
Date:   Tue Apr 4 01:57:17 2023 -0500

    Fix bug 2231: reverse_sync in fsmongo obtains file timestamp with UTC timezone instead of local timezone, so
    that filesystem and mongodb timestamps are correctly compared

    Change-Id: I0056026704a624329aae1ae52a45143d12f6dfdd
Signed-off-by: Gabriel Cuba <gcuba@whitestack.com>
commit 76394efe9fbee088dddd1dc9d4da6f043c3959a5
Author: Gulsum Atici <gulsum.atici@canonical.com>
Date:   Mon Jan 9 23:19:18 2023 +0300

    Feature 10950 Replace pycrypto with pycryptodome

    Remove the pycrypto library and change encrypt and decrypt methods to work with pycryptodome.
    Move encryption methods from N2VC to common.

    Change-Id: I12a5f6138664ab6ebb7100c82523e91750f05f14
Signed-off-by: Gulsum Atici <gulsum.atici@canonical.com>
Change-Id: Iccf3fcafe14305099fcceef65efd6e3c57cf6d2f
Signed-off-by: Dario Faccin <dario.faccin@canonical.com>
18 months agoOSMENG-1048 Implement day1 configuration for VDU 08/13308/2
Gulsum Atici [Thu, 27 Apr 2023 13:31:51 +0000 (16:31 +0300)]
OSMENG-1048 Implement day1 configuration for VDU

Change-Id: I63ef565fe417cf22284ea64d89ece96cc3a491b7
Signed-off-by: Gulsum Atici <gulsum.atici@canonical.com>
19 months agoAdding cloud to VduInstantiateInput dataclass 92/13292/1
Gulsum Atici [Wed, 26 Apr 2023 21:44:26 +0000 (00:44 +0300)]
Adding cloud to VduInstantiateInput dataclass

Change-Id: I72508c8f64bc2912a04af021cfa3a469df9f2433
Signed-off-by: Gulsum Atici <gulsum.atici@canonical.com>
19 months agoOSMENG-1047 Use constraints from VDU definition 69/13269/1
Gulsum Atici [Tue, 25 Apr 2023 11:56:49 +0000 (14:56 +0300)]
OSMENG-1047 Use constraints from VDU definition

Change-Id: I12c8f5f000488c8cd59e094ca7ab332548ea93e8
Signed-off-by: Gulsum Atici <gulsum.atici@canonical.com>
19 months agoRemove unused constants 54/13254/1
Daniel Arndt [Thu, 20 Apr 2023 20:15:56 +0000 (17:15 -0300)]
Remove unused constants

Change-Id: I49f3f33af624c3f5a04fd1b544a25e58041e361b
Signed-off-by: Daniel Arndt <daniel.arndt@canonical.com>
19 months agoAdd placeholders for Get VNF record IDs 42/13242/5
Daniel Arndt [Wed, 19 Apr 2023 17:43:26 +0000 (14:43 -0300)]
Add placeholders for Get VNF record IDs

Change-Id: I44d236056e210b48c9b5b8682a7a434a7ddab165
Signed-off-by: Daniel Arndt <daniel.arndt@canonical.com>
19 months agoOSMENG-987: Implement PrepareVnfWorkflow 05/13205/3
Dario Faccin [Mon, 17 Apr 2023 14:57:48 +0000 (16:57 +0200)]
OSMENG-987: Implement PrepareVnfWorkflow

Change-Id: If7a314a14439bb7ee25157d430d76f0628e121b7
Signed-off-by: Dario Faccin <dario.faccin@canonical.com>
19 months agoFixing typo 21/13221/1
Mark Beierl [Tue, 18 Apr 2023 14:33:05 +0000 (14:33 +0000)]
Fixing typo

Change-Id: I6479783b92044a237ff9bafa520131c1ce835213
Signed-off-by: Mark Beierl <mark.beierl@canonical.com>
19 months agoAdding check charm status input 86/13186/6
Mark Beierl [Tue, 11 Apr 2023 21:01:22 +0000 (21:01 +0000)]
Adding check charm status input

Change-Id: Ie6fc6da97de61bb6fbd78d2c89dc0c441f0a9f9a
Signed-off-by: Mark Beierl <mark.beierl@canonical.com>
19 months agoOSM-989 Fetch vnfrs and vnfds using activity 70/13170/5
Gulsum Atici [Thu, 6 Apr 2023 21:04:28 +0000 (00:04 +0300)]
OSM-989 Fetch vnfrs and vnfds using activity

Change-Id: Ia22464d28969cec0c53f51ec6d8639dd00604ea1
Signed-off-by: Gulsum Atici <gulsum.atici@canonical.com>
19 months agoOSMENG-988: Create ACTIVITY_SEND_NOTIFICATION_FOR_NF 98/13198/2
Dario Faccin [Fri, 14 Apr 2023 08:24:38 +0000 (10:24 +0200)]
OSMENG-988: Create ACTIVITY_SEND_NOTIFICATION_FOR_NF

Change-Id: I6257c47240cfa6bd2c90f08760bad6a9b8d645f9
Signed-off-by: Dario Faccin <dario.faccin@canonical.com>
19 months agoOSMENG-992 - Implement create model activity 91/13191/1
Patricia Reinoso [Wed, 12 Apr 2023 15:57:25 +0000 (15:57 +0000)]
OSMENG-992 - Implement create model activity

in NS Workflow.

An exception is raised if model already exists

Change-Id: I0000f98e2d6c1b458d3234ac83594b9ce5c86f26
Signed-off-by: Patricia Reinoso <patricia.reinoso@canonical.com>
19 months agoDisable release_notes in Paas branch 72/13172/1
Gulsum Atici [Thu, 6 Apr 2023 21:33:37 +0000 (00:33 +0300)]
Disable release_notes in Paas branch

Change-Id: I31bf37594ce5b96240ecbba01ed6ee1773de7b8f
Signed-off-by: Gulsum Atici <gulsum.atici@canonical.com>
19 months agoChange to uppercase 69/13169/1
Mark Beierl [Thu, 6 Apr 2023 16:08:09 +0000 (16:08 +0000)]
Change to uppercase

Change-Id: Ic9378996a6e35c14f0dbbf66c2cf51faa018cd07
Signed-off-by: Mark Beierl <mark.beierl@canonical.com>
19 months agoAdding VNF workflow constants and data_classes 65/13165/2
Gulsum Atici [Thu, 6 Apr 2023 10:41:36 +0000 (13:41 +0300)]
Adding VNF workflow constants and data_classes

Change-Id: Ia32d3c996dafe238bb2cd6d825f28213bc0a2ef1
Signed-off-by: Gulsum Atici <gulsum.atici@canonical.com>
19 months agoAdd Dataclasses and constant for NS instantiate 29/13129/7
Patricia Reinoso [Fri, 31 Mar 2023 11:22:42 +0000 (11:22 +0000)]
Add Dataclasses and constant for NS instantiate

Change-Id: Iac6b0782bbb8a69edb56b4d7df6203b2ac92bd92
Signed-off-by: Patricia Reinoso <patricia.reinoso@canonical.com>
Signed-off-by: Mark Beierl <mark.beierl@canonical.com>
19 months agoNS LCM OP Workflow wrapper 58/13158/1
Mark Beierl [Wed, 5 Apr 2023 20:01:05 +0000 (20:01 +0000)]
NS LCM OP Workflow wrapper

Change-Id: If3784fef5e54f5f41e744cc0ae7ac0d6ee83f97f
Signed-off-by: Mark Beierl <mark.beierl@canonical.com>
19 months agoChange to use Enum 16/13116/2
Mark Beierl [Wed, 29 Mar 2023 17:28:49 +0000 (17:28 +0000)]
Change to use Enum

Changes operation and operational status types to
IntEnums

Change-Id: If204c3a7d3cf0f3407792a5ae54b4c1077898e67
Signed-off-by: Mark Beierl <mark.beierl@canonical.com>
19 months agoAdding Update and Delete 06/13106/2
Mark Beierl [Tue, 28 Mar 2023 18:04:47 +0000 (18:04 +0000)]
Adding Update and Delete

Adds constants and dataclasses for VIM Update and Delete

Change-Id: I5bc3e3a6c2ec0bbb7a99ba531af78b34d51e8a2f
Signed-off-by: Mark Beierl <mark.beierl@canonical.com>
20 months agoUpdating VimCreateInput and UpdateVimStatusInput Dataclass 84/13084/8
Gulsum Atici [Thu, 23 Mar 2023 12:59:56 +0000 (15:59 +0300)]
Updating VimCreateInput and UpdateVimStatusInput Dataclass

Change-Id: I2e0e0ebb943dbdf0a5ae7b33b36fda93b999d9d8
Signed-off-by: Gulsum Atici <gulsum.atici@canonical.com>
Signed-off-by: Mark Beierl <mark.beierl@canonical.com>
20 months agoChanging singleton usage 91/13091/1
Mark Beierl [Thu, 23 Mar 2023 19:19:08 +0000 (19:19 +0000)]
Changing singleton usage

We won't be talking to any more than one temporal cluster at a
time, so it does not make sense to have clients cached by API
endpoint.  Instead the main() of any program wanting to use
temporal can just set the class level variable and then simply
instantiate the class anywhere it is needed and it will
manage the cached client without needing the temporal API URL

Change-Id: Ia22635dc454e8df14ca22bc1e095f625d7e7337b
Signed-off-by: Mark Beierl <mark.beierl@canonical.com>
20 months agoAdding VIM create constants 79/13079/4
Mark Beierl [Thu, 23 Mar 2023 10:24:59 +0000 (10:24 +0000)]
Adding VIM create constants

Change-Id: Id2447738f625fc56f4388fc340fa1e1f9228cd52
Signed-off-by: Mark Beierl <mark.beierl@canonical.com>
20 months agoInitial commit 73/13073/1
Mark Beierl [Wed, 22 Mar 2023 14:32:45 +0000 (10:32 -0400)]
Initial commit

Change-Id: I795682bbe1ad2de76f337b106c56b2020bebd25f
Signed-off-by: Mark Beierl <mark.beierl@canonical.com>
20 months agoInitial commit 71/13071/2
Mark Beierl [Wed, 22 Mar 2023 14:07:35 +0000 (10:07 -0400)]
Initial commit

Change-Id: Iffef985cf07c615a77edca82be5beeb7f25a24ba
Signed-off-by: Mark Beierl <mark.beierl@canonical.com>
20 months agoAdding decorator for activity exceptions 70/13070/2
Gulsum Atici [Wed, 22 Mar 2023 13:08:03 +0000 (16:08 +0300)]
Adding decorator for activity exceptions

Change-Id: I637ce8d2d1e85ba1fb9349cf67b303548937e159
Signed-off-by: Gulsum Atici <gulsum.atici@canonical.com>
20 months agoInitial temporal client 02/13002/9
Mark Beierl [Fri, 24 Feb 2023 21:23:48 +0000 (21:23 +0000)]
Initial temporal client

An initial attempt at defining a temporal workflow client that
can be used from any module

Change-Id: I6095793617acbc7bd2438a28c07eb1d854f3ff1c
Signed-off-by: Mark Beierl <mark.beierl@canonical.com>
21 months agoFeature 10950 Replace pycrypto with pycryptodome 41/12941/1
Gulsum Atici [Mon, 9 Jan 2023 20:19:18 +0000 (23:19 +0300)]
Feature 10950 Replace pycrypto with pycryptodome

Remove the pycrypto library and change encrypt and decrypt methods to work with pycryptodome.
Move encryption methods from N2VC to common.

Change-Id: I12a5f6138664ab6ebb7100c82523e91750f05f14
Signed-off-by: Gulsum Atici <gulsum.atici@canonical.com>
21 months agoForcing a release note 93/12893/4
Mark Beierl [Sat, 28 Jan 2023 02:04:39 +0000 (02:04 +0000)]
Forcing a release note

This is a dummy commit to clear the common stage 2 pipeline

Change-Id: I737659d0a69f1570c889a6726a75aa6e477bdbc0
Signed-off-by: Mark Beierl <mark.beierl@canonical.com>
21 months agoRevert "Change async-timeout pip version" 85/12885/1
Gulsum Atici [Thu, 26 Jan 2023 15:11:11 +0000 (18:11 +0300)]
Revert "Change async-timeout pip version"

This reverts commit 45a073c5ecf42cc4aa6e5ceb49fcf5b04f6a90a9.

Change-Id: Ie41467a04c57a2b8ca0da69d976f37a235b7dfef
Signed-off-by: Gulsum Atici <gulsum.atici@canonical.com>
21 months agoChange async-timeout pip version 75/12875/2
Gulsum Atici [Thu, 26 Jan 2023 11:36:24 +0000 (14:36 +0300)]
Change async-timeout pip version

Change-Id: I3a6501a7f0a824b20faadcbcd8504cd75132d314
Signed-off-by: Gulsum Atici <gulsum.atici@canonical.com>
22 months agoUpdating Python Dependencies 74/12874/3
Mark Beierl [Thu, 26 Jan 2023 02:20:07 +0000 (21:20 -0500)]
Updating Python Dependencies

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

Change-Id: I604fa3686d79d04c9937c2d363889b100e2d1dd2
Signed-off-by: Mark Beierl <mark.beierl@canonical.com>
2 years agoFixing common security vulnerabilities 86/12486/1 release-v13.0-start
aticig [Wed, 24 Aug 2022 19:41:56 +0000 (22:41 +0300)]
Fixing common security vulnerabilities

Correcting try-except-pass usage, removing assert improper usage.

Change-Id: Ic24c7e8a8f579c6dfd4a9740eff11ab1561af5e1
Signed-off-by: aticig <gulsum.atici@canonical.com>
2 years agoJenkins refresh 32/12332/3
Mark Beierl [Wed, 13 Jul 2022 16:48:40 +0000 (12:48 -0400)]
Jenkins refresh

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

Change-Id: I01a971d9253c751f36d507da4bcc62c428c85b95
Signed-off-by: Mark Beierl <mark.beierl@canonical.com>
2 years agoUpdate pip requirements 43/12243/2 release-v12.0-start v12.0.0 v12.0.0rc1
garciadeblas [Fri, 24 Jun 2022 15:35:34 +0000 (17:35 +0200)]
Update pip requirements

Change-Id: I5becd1dd45052c8b1a4024a7be5af18a57e2e3d7
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
2 years agoCode Cleanup and adding unit tests 16/11816/6
aticig [Thu, 31 Mar 2022 20:07:21 +0000 (23:07 +0300)]
Code Cleanup and adding unit tests

Cleaning code to allow only URI type MongoClient connection,
adding unit tests

Change-Id: Iacca44c00006a1072ff70989b0220e2b27bc5fd8
Signed-off-by: aticig <gulsum.atici@canonical.com>
2 years agoAdding release notes and enabling import order check 20/11720/12
aticig [Fri, 4 Mar 2022 16:35:45 +0000 (19:35 +0300)]
Adding release notes and enabling import order check

Enabling Flake8 library import order check,
adding release_notes, enabling stage-test failing by tox results.

Change-Id: I490b4cb3fe5904f54d84f0ce9b41fe91ec8b4f5d
Signed-off-by: aticig <gulsum.atici@canonical.com>
2 years agoIncrease Logging, fix directory delete 99/11899/1
beierlm [Tue, 19 Apr 2022 18:12:50 +0000 (14:12 -0400)]
Increase Logging, fix directory delete

When deleting a directory, we need to do a rexep search of all files that start
with the directory that we want to delete, but not revisions that happen to
share the same UUID.  Changes the regexp for directory delete to include the
trailing '/' so it limits the scope.

Adds logging where needed

Change-Id: Ia60618c17a863417224fadd9c055be658fb4ba4a
Signed-off-by: beierlm <mark.beierl@canonical.com>
2 years agoBug 1977: Strip trailing / 88/11888/1
beierlm [Thu, 14 Apr 2022 18:45:07 +0000 (14:45 -0400)]
Bug 1977: Strip trailing /

Ensure no files or directories are stored with a trailing /

Ensure file/directory lookups happen without trailing /

Change-Id: Id34438495170756883a4adeac3b6970e4f91b6b6
Signed-off-by: beierlm <mark.beierl@canonical.com>
2 years agoBug 1977: FSMongo Reverse Sync 38/11838/2
beierlm [Mon, 4 Apr 2022 15:44:03 +0000 (11:44 -0400)]
Bug 1977: FSMongo Reverse Sync

Directories represented by a symlink are not stored properly on reverse
sync, resulting in empty directories being created instead of preserving
the link

Fixes Bug 1977

Change-Id: Ia6a3b3dfdfde498751a79e04b2824ac38d0b7feb
Signed-off-by: beierlm <mark.beierl@canonical.com>
2 years agoBug 1840: LTS Support 11/11511/2
beierlm [Thu, 13 Jan 2022 16:37:31 +0000 (11:37 -0500)]
Bug 1840: 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 1840

Change-Id: I2cf79d9e697ba1267e2a8d00a180412a2887e1bd
Signed-off-by: beierlm <mark.beierl@canonical.com>
3 years agobugfix: fix for folders missing in mongoFS 09/11409/1
bravof [Tue, 23 Nov 2021 13:34:43 +0000 (10:34 -0300)]
bugfix: fix for folders missing in mongoFS

Change-Id: I9c8a07755457c3c297853bda8e6c5516409a6fde
Signed-off-by: bravof <fbravo@whitestack.com>
3 years agofeature: sol004 and sol007 33/11333/1
bravof [Fri, 5 Nov 2021 00:16:00 +0000 (21:16 -0300)]
feature: sol004 and sol007

Change-Id: Ib4c4656f3660011a0f1ee80e4903a31958068be5
Signed-off-by: bravof <fbravo@whitestack.com>
3 years agoReformat common to standardized format 36/10536/10 release-v10.0-start release-v11.0-start v10.0.0 v10.0.1 v10.0.2 v10.0.3 v11.0.0rc1
garciadeblas [Wed, 24 Mar 2021 08:21:01 +0000 (09:21 +0100)]
Reformat common to standardized format

Change-Id: I9ba54f3510e17de285e1e774d18ee5c7205818ad
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
3 years agoAdding GitLab Scanner 63/10663/1 ng-ro-refactor sol006v331 branch-ng-ro-refactor-start branch-sol006v331-start
beierlm [Mon, 19 Apr 2021 19:15:31 +0000 (15:15 -0400)]
Adding GitLab Scanner

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

Change-Id: I1771c5fcd9d9fb77baaddd7b425054f5e5347dc6
Signed-off-by: beierlm <mark.beierl@canonical.com>
3 years agoFeature 10296 Pip Standardization 97/10297/13
beierlm [Thu, 11 Feb 2021 19:57:14 +0000 (14:57 -0500)]
Feature 10296 Pip Standardization

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

Change-Id: I31129ce9de342595f7ad24603107697ddab831c4
Feature: 10296
Signed-off-by: beierlm <mark.beierl@canonical.com>
3 years agofeat(dbmongo): upsert option for set_one 98/10198/3
bravof [Fri, 15 Jan 2021 14:54:45 +0000 (11:54 -0300)]
feat(dbmongo): upsert option for set_one

Change-Id: I3dd38738e7ef8c1b70df7742d08eb8f8d52529e1
Signed-off-by: bravof <fbravo@whitestack.com>
3 years agoAdds SOL004 package validator with package examples and tests 81/10181/6
garciaale [Fri, 15 Jan 2021 16:04:05 +0000 (13:04 -0300)]
Adds SOL004 package validator with package examples and tests

Change-Id: I173700241415c3cc131c99d221a193e8b60e3ded
Signed-off-by: garciaale <agarcia@whitestack.com>
4 years agoSupport for mongodb replicaset connection (HA). 60/9760/3 bug1511 branch-bug1511-start release-v9.0-start v9.0.0 v9.0.0rc1 v9.1.0 v9.1.1 v9.1.1rc1
Vijay Nag B S [Tue, 29 Sep 2020 11:53:57 +0000 (17:23 +0530)]
Support for mongodb replicaset connection (HA).

Change-Id: I36d582f177d36b93b9913dd781c50ac34b2bbb60
Signed-off-by: Vijay Nag B S <vijaynag.bs@tataelxsi.co.in>
4 years ago Fixes Bug 1273 - aiokafka>0.7.0 needs extra dependency for python < 3.7.0 24/9924/4
fonsecaj [Thu, 29 Oct 2020 15:20:09 +0000 (15:20 +0000)]
 Fixes Bug 1273 - aiokafka>0.7.0 needs extra dependency for python < 3.7.0

Change-Id: I7f698e2c7ed2c7ab34baa0fa651ea3d50c572151
Signed-off-by: fonsecaj <jpedrofonseca@av.it.pt>
4 years agoAdded reverse sync 71/9671/9
lloretgalleg [Wed, 2 Sep 2020 09:36:24 +0000 (09:36 +0000)]
Added reverse sync

Change-Id: Ied5dc10b4b92d900ba8a3f5f88ff64ba68c0804c
Signed-off-by: lloretgalleg <illoret@indra.es>
4 years agofix 1131 Allow to get old kafka messages 49/9449/1
tierno [Thu, 16 Jul 2020 11:22:12 +0000 (11:22 +0000)]
fix 1131 Allow to get old kafka messages

Change-Id: I49c43fd3b2049d32adc7be7a29be0d921624bc88
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
4 years agoRemove symlink if exists 71/9371/1
beierlm [Wed, 8 Jul 2020 20:32:50 +0000 (16:32 -0400)]
Remove symlink if exists

On sync, if the symlink already exists, an exception would
be thrown.  This change removes the file if it already
exists.

Bug 1132

Change-Id: I151a96adcac5d7cd51b84c2770f498a78d7d68be
Signed-off-by: beierlm <mark.beierl@canonical.com>
(cherry picked from commit 6d72d5cfb6f75c62402d493fdc2d81797cd48081)

4 years agoAdded coverage tests in tox 05/9305/2
garciadeblas [Fri, 3 Jul 2020 10:59:34 +0000 (10:59 +0000)]
Added coverage tests in tox

Change-Id: I6a74f5e4b91001f83666709a009d49d8ac8c1aa9
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
4 years agoDockerfile updated to work on ubuntu18.04 06/9306/1
garciadeblas [Fri, 3 Jul 2020 11:06:47 +0000 (11:06 +0000)]
Dockerfile updated to work on ubuntu18.04

Change-Id: I45c9e84e75afccedd16da3e6339dd00ae028288e
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
4 years agoallow partial sync for fsmongo 75/8875/4
tierno [Wed, 6 May 2020 14:22:48 +0000 (14:22 +0000)]
allow partial sync for fsmongo

Change-Id: I8c1d729bcff5a0fa2c58b25d57c5434ac0528668
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
4 years agoFix bug 1112: Save content of symlinks with FSMongo 05/9205/15
David Garcia [Fri, 26 Jun 2020 15:04:37 +0000 (17:04 +0200)]
Fix bug 1112: Save content of symlinks with FSMongo

- Store data for symlinks with GridFS
- Add unit tests: This includes an Example of a tar with a folder, a file, a symlink to folder and a symlink to file

Change-Id: I3ac9cb1a3bc2dc39b58e61658a96c7f97f59c2a5
Signed-off-by: David Garcia <david.garcia@canonical.com>
4 years agodatabase set_one/set_list. Adding pull_list parameter 34/9134/1 release-v8.0-start v8.0.0rc1
tierno [Mon, 22 Jun 2020 12:18:18 +0000 (12:18 +0000)]
database set_one/set_list. Adding pull_list parameter

Change-Id: I5cd5ba66457845d4c31235e4fc04e900a178e268
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
4 years agoallow dabase update with pushlist 97/8897/2
tierno [Tue, 12 May 2020 07:36:41 +0000 (07:36 +0000)]
allow dabase update with pushlist

It can push several items at same time

Change-Id: I5ffbcb0c112a0c539862901ec5659ffca768316d
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
4 years agoFix bug 1069: Add default value for fsmongo.GridByteStream.file_type 03/9103/1
David Garcia [Wed, 20 May 2020 10:09:37 +0000 (12:09 +0200)]
Fix bug 1069: Add default value for fsmongo.GridByteStream.file_type

Change-Id: Icf2b6c76a77526f118facd2053bd8dac33730415
Signed-off-by: David Garcia <david.garcia@canonical.com>
4 years agominor modifications at encrypt_decrypt_fields 02/9102/1
tierno [Tue, 12 May 2020 11:17:54 +0000 (11:17 +0000)]
minor modifications at encrypt_decrypt_fields

Change-Id: I9f1de6249f72fc19665881c3f040fd612c7fe754
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
4 years agoadding create_list to dbmongo 34/8834/4
tierno [Wed, 29 Apr 2020 10:24:28 +0000 (10:24 +0000)]
adding create_list to dbmongo

Change-Id: I72cd3035752d0d053586e966d6f1a5611f60fc09
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
4 years agofix at dbmemory set_list 33/8733/1
tierno [Mon, 30 Mar 2020 08:56:15 +0000 (08:56 +0000)]
fix at dbmemory set_list

Change-Id: Ia3bff987378f5fdaac05b56701fb6326a6cb1105
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
4 years agofix found items at dbmemory.set_list 83/8683/1
tierno [Wed, 18 Mar 2020 07:31:54 +0000 (07:31 +0000)]
fix found items at dbmemory.set_list

Change-Id: I9c6c61cf79ca79bf0833e3aa3846c1d9d5ab3c8d
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
4 years agoMinor fix at dbmemory db_set 75/8675/2
tierno [Thu, 12 Mar 2020 09:54:35 +0000 (09:54 +0000)]
Minor fix at dbmemory db_set

Change-Id: I6026eb35c4eb34670e2231c185a4ffd1aa33ac0a
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
4 years agoFixing bug 1032 76/8676/1
sousaedu [Thu, 12 Mar 2020 11:12:25 +0000 (11:12 +0000)]
Fixing bug 1032

This bugfix introduces the notion of symlink handling in the
FSMongo plugin. The change focus mainly in setting properly
the flags for a symlink file and store that metadata in an
adequate format in MongoDB.

Change-Id: I04ea122d3feed08762c38fa2557113ff2de35e3b
Signed-off-by: sousaedu <eduardo.sousa@canonical.com>
4 years agoadding dbmemory set_list and tests 13/8613/2
tierno [Mon, 17 Feb 2020 12:01:38 +0000 (12:01 +0000)]
adding dbmemory set_list and tests

Change-Id: Iaf9465fb0bae5e12f19a2810b454209ef39614c3
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
4 years agofix fslocal file_exists 12/8612/1
tierno [Wed, 12 Feb 2020 10:46:51 +0000 (10:46 +0000)]
fix fslocal file_exists

Change-Id: I871a4912741a0542f3b70d1fdb0d6ca118aa0da3
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
4 years agoAdd unset/push/pull features to set_list 79/8579/1
delacruzramo [Tue, 11 Feb 2020 11:14:07 +0000 (11:14 +0000)]
Add unset/push/pull features to set_list

Change-Id: I2889a1fcafa3011141b4fb4480a586671d4e13ce
Signed-off-by: delacruzramo <pedro.delacruzramos@altran.com>
4 years agominor spelling changes 06/8506/1
tierno [Tue, 21 Jan 2020 10:11:34 +0000 (10:11 +0000)]
minor spelling changes

Change-Id: I173d9a04049d88b2a9f5c87b6dc82ef057482fe4
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
4 years agoAdd sync function to FSBase, and implementations to fslocal and fsmongo 04/8504/1 v7.0.1 v7.0.1rc2 v7.0.1rc3
David Garcia [Mon, 20 Jan 2020 12:21:06 +0000 (13:21 +0100)]
Add sync function to FSBase, and implementations to fslocal and fsmongo

The reason behind this change is that FSMongo needs to sync the charm to the local storage in order for libjuju to reach it.

Change-Id: Ic5838fd4ab64dd2c3e2cf78c439f33363885dd14
Signed-off-by: David Garcia <david.garcia@canonical.com>
4 years agoGet version from installed package if available 33/8433/1 v7.0.1rc1
tierno [Fri, 20 Dec 2019 14:07:07 +0000 (14:07 +0000)]
Get version from installed package if available

Change-Id: I28ba441351a62f249c5af190ffb9efdd109ccef2
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
4 years agoFix 976. Get serial key after database is inited 80/8380/3
tierno [Wed, 11 Dec 2019 12:32:41 +0000 (12:32 +0000)]
Fix 976. Get serial key after database is inited

Change-Id: Ic6692c5eabdb3ff7d8b1a7fc6501321dc69ea43a
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
4 years agoFix Bug 914: Updating VNFD the first time shows ProducerClosed error 66/8366/1 sol006 v7.0.0
delacruzramo [Tue, 10 Dec 2019 11:06:01 +0000 (12:06 +0100)]
Fix Bug 914: Updating VNFD the first time shows ProducerClosed error

Change-Id: I02f9ad72bbc4256954030b4d338af242d1f81b81
Signed-off-by: delacruzramo <pedro.delacruzramos@altran.com>
4 years agoRemoving pip version and upgrading pyyaml from 3.* to 5.1.2 00/8300/2 v7.0.0rc1
Felipe Vicens [Tue, 3 Dec 2019 11:41:09 +0000 (12:41 +0100)]
Removing pip version and upgrading pyyaml from 3.* to 5.1.2

Change-Id: I5fde569cd8da1d55b4f16b610f0071ce288515a7
Signed-off-by: Felipe Vicens <felipe.vicens@atos.net>
4 years agoAdding FsMongo 03/7603/41
Eduardo Sousa [Tue, 4 Jun 2019 11:55:43 +0000 (12:55 +0100)]
Adding FsMongo

Change-Id: I2380bf7c916533199d686c7448c474ca64635077
Signed-off-by: Eduardo Sousa <eduardo.sousa@canonical.com>
5 years agoAdded method dir_ls to class FsBase 95/8195/1
delacruzramo [Tue, 19 Nov 2019 14:10:49 +0000 (15:10 +0100)]
Added method dir_ls to class FsBase

Change-Id: I0125ecd8ea5e714efdfe6b7b4de1dbb13f9ee2eb
Signed-off-by: delacruzramo <pedro.delacruzramos@altran.com>
5 years agoUtility function for recursive password encryption/decription 93/8093/3
delacruzramo [Fri, 25 Oct 2019 14:50:13 +0000 (16:50 +0200)]
Utility function for recursive password encryption/decription

Change-Id: I3cb00ad4f7d2bf78fd25911c650a1a723e593d37
Signed-off-by: delacruzramo <pedro.delacruzramos@altran.com>
5 years agofix in dbmemory query using '.cont' and '.ncont' 65/7965/2 feature5837 feature7928
tierno [Thu, 19 Sep 2019 09:23:44 +0000 (09:23 +0000)]
fix in dbmemory query using '.cont' and '.ncont'

Change-Id: I12404db1eec2bb68f72fde6dadf884ac949bf30d
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
5 years agoAdd 'count' to DB utilities 59/7959/3
delacruzramo [Tue, 17 Sep 2019 14:05:17 +0000 (16:05 +0200)]
Add 'count' to DB utilities

Change-Id: I1a137ceeea21c70cf9358a7bc812ca4e2fe5a240
Signed-off-by: delacruzramo <pedro.delacruzramos@altran.com>
5 years agoimprovements in dbmemory. Change yaml.load to save_load 00/7900/4
tierno [Mon, 2 Sep 2019 16:04:16 +0000 (16:04 +0000)]
improvements in dbmemory. Change yaml.load to save_load

Change-Id: I577efa64a8c1503a084cb21b49ec7e3665b7b56f
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
5 years agochange version to be aligned with OSM 69/7869/1 v6.0 v6.0.2 v6.0.2rc1 v6.0.3 v6.0.4 v6.0.4rc1
tierno [Wed, 28 Aug 2019 16:08:25 +0000 (16:08 +0000)]
change version to be aligned with OSM

Change-Id: I2753ce279c572c8f06e97083fd4e96a30ef3733f
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
5 years agoallow set/unset group_id at kafka message consumer 89/7189/3 feature7106 v6.0.0 v6.0.1
tierno [Mon, 18 Feb 2019 14:53:54 +0000 (14:53 +0000)]
allow set/unset group_id at kafka message consumer

Change-Id: I138cb29b012536473f6aea21975b06013e84e043
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
5 years agoCapture UnicodeDecodeError if decrypting with wrong key 32/7232/1
tierno [Wed, 30 Jan 2019 09:48:38 +0000 (09:48 +0000)]
Capture UnicodeDecodeError if decrypting with wrong key

Change-Id: If4904c0eeac396eee7082d19784e440991131297
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
5 years agoAdding license header to test files 99/7199/1
Eduardo Sousa [Tue, 5 Feb 2019 15:57:09 +0000 (15:57 +0000)]
Adding license header to test files

Change-Id: I2cac9cf82f871fa20a81835157f761f90c263625
Signed-off-by: Eduardo Sousa <esousa@whitestack.com>
5 years agomsgkafka, provide loop on config 29/7129/1
tierno [Mon, 28 Jan 2019 16:20:18 +0000 (16:20 +0000)]
msgkafka, provide loop on config

Change-Id: I974ce861c6ff88e61594c9983faff5459ac5708a
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
5 years agominor updates at fslocal to capture exceptions 28/7128/1
tierno [Fri, 25 Jan 2019 08:56:17 +0000 (08:56 +0000)]
minor updates at fslocal to capture exceptions

Change-Id: Ia0fb85f23329efe6b1ef373368f4c6af81850b8d
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
5 years agobug 605. New method at fslocal for rename folders 35/7035/3
tierno [Tue, 4 Dec 2018 15:37:23 +0000 (15:37 +0000)]
bug 605. New method at fslocal for rename folders

Change-Id: Ic0acd82873a3790f228641ba676d2da9235059f1
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
5 years agoAdding more parameters to db_set for array edition 72/6972/1 v5.0.0 v5.0.1 v5.0.2
tierno [Tue, 27 Nov 2018 11:03:36 +0000 (12:03 +0100)]
Adding more parameters to db_set for array edition

Change-Id: Ic57f8a8b9780cc1becd206b227f7bed10ad30f4a
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
6 years agourl to uri 94/6894/1
Juan [Fri, 16 Nov 2018 13:47:46 +0000 (10:47 -0300)]
url to uri

Change-Id: I02e971a223c24abda93574147586964463c68674
Signed-off-by: Juan <jquiroga@whitestack.com>
6 years agoAdded support for mongodb High availability, changed cfg from host, port to url 79/6879/3
Juan [Mon, 12 Nov 2018 19:17:08 +0000 (16:17 -0300)]
Added support for mongodb High availability, changed cfg from host, port to url

Change-Id: I8a5d2174927120e2706eaba5bdee38f60d4a4a9d
Signed-off-by: Juan <jquiroga@whitestack.com>
6 years agoBug 559, changes to make optional intenal database key 66/6866/3
tierno [Mon, 12 Nov 2018 10:51:49 +0000 (11:51 +0100)]
Bug 559, changes to make optional intenal database key

Change-Id: I883bb3f874a917d5632b8aa9e937e08d2d7b5507
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
6 years agoMake common methods threading safe. pytest enhancements 48/6848/2
tierno [Mon, 5 Nov 2018 17:18:45 +0000 (18:18 +0100)]
Make common methods threading safe. pytest enhancements

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