cps.git
6 months agoMerge "Update return body of RestOutputCMHandle"
Toine Siebelink [Thu, 26 Oct 2023 13:39:28 +0000 (13:39 +0000)]
Merge "Update return body of RestOutputCMHandle"

6 months agoUpdate return body of RestOutputCMHandle 14/136014/6
emaclee [Sat, 23 Sep 2023 12:46:15 +0000 (13:46 +0100)]
Update return body of RestOutputCMHandle

Issue-ID: CPS-1869
Signed-off-by: emaclee <lee.anjella.macabuhay@est.tech>
Change-Id: I946db9e6785fc50775d1c5ff18e7462e8bad9af6

6 months agoIntroduce and use new Hazelcast map pt. 2 06/136206/10
sourabh_sourabh [Mon, 23 Oct 2023 13:40:25 +0000 (14:40 +0100)]
Introduce and use new Hazelcast map pt. 2

   - modified ModuleSyncService
   - created ModuleSetTagCacheConfig and tests
   - ensure both Create and Upgrade cm Handle use cases work
   - Moved inventory pkg to its right patha as production code.

Issue-ID: CPS-1859
Signed-off-by: leventecsanyi <levente.csanyi@est.tech>
Change-Id: I173dcd81fe2e74d86d85365b2ead461302cad974
Signed-off-by: sourabh_sourabh <sourabh.sourabh@est.tech>
6 months agoCode coverage: Update YANG schema set using moduleSetTag 04/136204/5
sourabh_sourabh [Tue, 17 Oct 2023 13:16:25 +0000 (14:16 +0100)]
Code coverage: Update YANG schema set using moduleSetTag

- Code coverage is increased to 98.
- New groovy test is added to cover new code.

Issue-ID: CPS-1798
Signed-off-by: sourabh_sourabh <sourabh.sourabh@est.tech>
Change-Id: Ia979be3f43ec8e4bbf6f8cb66a8a5e748118f19b
Signed-off-by: sourabh_sourabh <sourabh.sourabh@est.tech>
6 months agoMerging of Subscription schemas 69/136169/5
mpriyank [Fri, 13 Oct 2023 16:03:16 +0000 (17:03 +0100)]
Merging of Subscription schemas

- Added new schema from DMI Plugin to NCMP
- Added new schema from NCMP to the clients
- Renamed existing schemas as per the conventions
- Removed the merge keyword from the schemas and naming. Still the
  package will have merge keyword which will eventually be removed when
  we remove the old code

Issue-ID: CPS-1905
Issue-ID: CPS-1906
Change-Id: I1f8c35e7f6baa25346d9527d58e20bba7f0dddeb
Signed-off-by: mpriyank <priyank.maheshwari@est.tech>
6 months agoFix Sonar code smells 11/136211/3
emaclee [Tue, 17 Oct 2023 23:38:32 +0000 (00:38 +0100)]
Fix Sonar code smells

- Update deprecated methods in webSecurityCOnfig
- Remove 'deprecated' tag on methods that are to be removed in
  EventsPublisher as they are still being used, methods with
  deprecated tag (for removal) must not be used

Issue-ID: CPS-89
Signed-off-by: emaclee <lee.anjella.macabuhay@est.tech>
Change-Id: I104d4b3e362d22bb7fc020580de6cb4f390e54c9

6 months agoMerge "[BUG] Fix for Swagger UI generation"
Toine Siebelink [Tue, 17 Oct 2023 13:23:40 +0000 (13:23 +0000)]
Merge "[BUG] Fix for Swagger UI generation"

6 months agoMerge "Add memory usage to integration tests [UPDATED]"
Toine Siebelink [Tue, 17 Oct 2023 13:17:08 +0000 (13:17 +0000)]
Merge "Add memory usage to integration tests [UPDATED]"

6 months ago[BUG] Fix for Swagger UI generation 58/136158/4
egernug [Thu, 12 Oct 2023 12:33:08 +0000 (13:33 +0100)]
[BUG] Fix for Swagger UI generation

Issue-ID: CPS-1913

Signed-off-by: egernug <gerard.nugent@est.tech>
Change-Id: Ib8a1b5fddc9957bd371fbb4dc54d018b25af3679

6 months agoMerge "Clean up Dependencies"
Toine Siebelink [Mon, 16 Oct 2023 16:14:49 +0000 (16:14 +0000)]
Merge "Clean up Dependencies"

6 months agoMerge "Adding NCMP Stubs documentation"
Toine Siebelink [Mon, 16 Oct 2023 16:12:25 +0000 (16:12 +0000)]
Merge "Adding NCMP Stubs documentation"

6 months agoMerge "Add NCMP Stub documentation to RTD"
Toine Siebelink [Mon, 16 Oct 2023 16:11:21 +0000 (16:11 +0000)]
Merge "Add NCMP Stub documentation to RTD"

6 months agoMerge "Add withTrustLevel condition to CmHandle Query API"
Toine Siebelink [Mon, 16 Oct 2023 13:51:05 +0000 (13:51 +0000)]
Merge "Add withTrustLevel condition to CmHandle Query API"

6 months agoAdding NCMP Stubs documentation 98/136098/3
waqas.ikram [Wed, 4 Oct 2023 09:05:09 +0000 (10:05 +0100)]
Adding NCMP Stubs documentation

Issue-ID: CPS-1858
Change-Id: I90017d9d9c6e937292e9de45c0e8228357414e16
Signed-off-by: waqas.ikram <waqas.ikram@est.tech>
6 months agoAdd NCMP Stub documentation to RTD 92/135892/3
ToineSiebelink [Thu, 31 Aug 2023 16:38:52 +0000 (17:38 +0100)]
Add NCMP Stub documentation to RTD

-add new pages fot Stubs
-fixed spleeting erros
-added file with accepatbel cps terms for spell check

Issue-ID: CPS-1858
Signed-off-by: ToineSiebelink <toine.siebelink@est.tech>
Change-Id: I71fdeb29b015067d208e404bed8ac53b03810c00

6 months agoClean up Dependencies 85/136085/2
egernug [Tue, 3 Oct 2023 11:56:29 +0000 (12:56 +0100)]
Clean up Dependencies

Clean up of dependencies into logical orders and compile/test statuses

Issue-ID: CPS-1873

Signed-off-by: egernug <gerard.nugent@est.tech>
Change-Id: I90ad49b7f1362e8f5b7006b85013c0bdf1b4d4ef

6 months agoMerge "Update Subscription Event Schemas for merge"
Priyank Maheshwari [Fri, 13 Oct 2023 13:18:58 +0000 (13:18 +0000)]
Merge "Update Subscription Event Schemas for merge"

6 months agoUpdate Subscription Event Schemas for merge 28/136028/6
seanbeirne [Mon, 25 Sep 2023 13:02:53 +0000 (14:02 +0100)]
Update Subscription Event Schemas for merge

Issue-ID: CPS-1877
Signed-off-by: seanbeirne <sean.beirne@est.tech>
Change-Id: I7545b1efb71d5032fad31200e874481cf1efe5b0

6 months agoAdd withTrustLevel condition to CmHandle Query API 40/136040/7
halil.cakal [Tue, 26 Sep 2023 14:07:08 +0000 (15:07 +0100)]
Add withTrustLevel condition to CmHandle Query API

- Change untrustworthyCmHandleSet with trustLevelPerCmHandleMap
- Change trust level cache config accordingly
- Change device heartbet consumer accordingly
- Add json schema for device trust level
- Add with_trust_level enum into cm handle query conditions
- Add query cm handle by trustlevel function to cm handle
  queries
- Add query cm handle by trustlevel service to network cm proxy cm
  handle service
- Add unit tests and fix code smells

Issue-ID: CPS-1864
Change-Id: Ie214f0713cef779307d3379df81e2b95115b6d6d
Signed-off-by: halil.cakal <halil.cakal@est.tech>
6 months agoExpose REST endpoint to update YANG schema set using moduleSetTag 31/136031/6
sourabh_sourabh [Tue, 26 Sep 2023 11:11:42 +0000 (12:11 +0100)]
Expose REST endpoint to update YANG schema set using moduleSetTag

- Added new schema to upgrade model into component.
- Modified Ncmp rest input mapper to add upgradedCmHandles attributes.
- Modified cm handle state mapper to add new lock reason.
- Added new method to parse and upgrade Cm handles in DmiRegistration.
- YANG data converter is modified to add "module-set-tag" atribute.
- Cm handle new query method is added for cps path without appending
  ancestor.
- Modified setCompositeStateForRetry to add lock reason.
- New lock reason category is added.
- Existing module sync service is modified to upgrade the model
  "syncAndCreateOrUpgradeSchemaSetAndAnchor".
- Sync util method "getModuleSyncFailedCmHandles" to modified to add
  another lock reason "LOCKED_MISBEHAVING".
- Added new attribute "UpgradedCmHandles" into DmiPluginRegistration and DmiPluginRegistrationResponse.
- New attribute "moduleSetTag" is added into NcmpServiceCmHandle.
- New model "UpgradedCmHandles" is added.
- New method "updateSchemaSetWithExistingModules" is added into cps
  module service to update cm handle with exsting model.
- Code coverage is reducced to 96 percentage that would be addressed and
  pushed into new patch.

Issue-ID: CPS-1798
Signed-off-by: sourabh_sourabh <sourabh.sourabh@est.tech>
Change-Id: I540acb404e38fc434de87a0d959bfde710a18b03
Signed-off-by: sourabh_sourabh <sourabh.sourabh@est.tech>
6 months agoMerge "Conflicting Error code"
Toine Siebelink [Wed, 11 Oct 2023 08:54:57 +0000 (08:54 +0000)]
Merge "Conflicting Error code"

6 months agoAdd memory usage to integration tests [UPDATED] 29/136029/6
emaclee [Tue, 26 Sep 2023 10:01:38 +0000 (11:01 +0100)]
Add memory usage to integration tests [UPDATED]

Issue-ID: CPS-1753
Signed-off-by: emaclee <lee.anjella.macabuhay@est.tech>
Change-Id: I08fd0802f536b8fe333ddbfc9301356095f58171

6 months agoAdd debug port to ncmp in docker-compose 32/136132/1
halil.cakal [Tue, 10 Oct 2023 16:51:27 +0000 (17:51 +0100)]
Add debug port to ncmp in docker-compose

Issue-ID: CPS-1864
Change-Id: I6dd77b29b8a73c8d3b893fb3eafb45292b526be2
Signed-off-by: halil.cakal <halil.cakal@est.tech>
6 months agoMerge "JSON list support when updating multiple datanodes"
Toine Siebelink [Tue, 10 Oct 2023 15:09:03 +0000 (15:09 +0000)]
Merge "JSON list support when updating multiple datanodes"

6 months agoConflicting Error code 10/136110/5
sourabh_sourabh [Fri, 6 Oct 2023 18:18:46 +0000 (19:18 +0100)]
Conflicting Error code

-Used common error codes for NCMP responses

Issue-ID: CPS-1904
Signed-off-by: sourabh_sourabh <sourabh.sourabh@est.tech>
Change-Id: Id2beaa9f3d49dffd0a193b05fbaa7a6dd801e34a
Signed-off-by: sourabh_sourabh <sourabh.sourabh@est.tech>
7 months agoRTD Doc update with error code 18/136118/3
sourabh_sourabh [Mon, 9 Oct 2023 11:18:19 +0000 (12:18 +0100)]
RTD Doc update with error code

-RTD doc is updated with new error codes.

Issue-ID: CPS-1904
Signed-off-by: sourabh_sourabh <sourabh.sourabh@est.tech>
Change-Id: Id234655abe88e3348abc148f8c1eedd36bf58379

7 months agoFix Sonar Code Smells 26/136026/5
mpriyank [Mon, 25 Sep 2023 12:35:47 +0000 (13:35 +0100)]
Fix Sonar Code Smells

- convert normal java strings to text block - feature from java 15
- handling callback for legacy events. Once the deprecated methods are
  removed then this would not be needed.

Issue-ID: CPS-89
Change-Id: I9b537ebee2c284c8109e6cc6c8961a430ee9599d
Signed-off-by: mpriyank <priyank.maheshwari@est.tech>
7 months agoUpdate release version in release notes 66/136066/3
egernug [Fri, 29 Sep 2023 11:12:36 +0000 (12:12 +0100)]
Update release version in release notes

Issue-ID: CPS-1903

Signed-off-by: egernug <gerard.nugent@est.tech>
Change-Id: If28a979513ed48a4382e8069b8b365f4f7f35135

7 months agoAdd 3.3.8 container yaml to CPS 57/136057/1
egernug [Thu, 28 Sep 2023 11:51:27 +0000 (12:51 +0100)]
Add 3.3.8 container yaml to CPS

Issue-ID: CPS-1903

Signed-off-by: egernug <gerard.nugent@est.tech>
Change-Id: Ib801489cbf78c7d806e7f2faa06a9dc74592c732

7 months agoAdd new 3.3.8 release version yaml 56/136056/1
egernug [Thu, 28 Sep 2023 11:46:30 +0000 (12:46 +0100)]
Add new 3.3.8 release version yaml

Issue-ID: CPS-1903

Signed-off-by: egernug <gerard.nugent@est.tech>
Change-Id: I65d0478a7a0ccb3b122aa7af030ed4ebaaa85721

7 months agoJSON list support when updating multiple datanodes 54/136054/1
danielhanrahan [Thu, 28 Sep 2023 10:13:36 +0000 (11:13 +0100)]
JSON list support when updating multiple datanodes

updateDataNodesAndDescendants if supplied with a JSON list such as
 {"branch": [{"name":"Name1"}, {"name":"Name2"}]}
would only replace the first node /test-tree/branch[@name='Name1'],
and ignore any remaining list items. This is caused by the use of a
legacy buildDataNode, which returns only a single DataNode from JSON,
even if the JSON contained a list.

Issue-ID: CPS-1889
Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech>
Change-Id: I257491b6bc3f047a64eb241eaac70fd457b24347

7 months agoUpdate RTD for Spring Boot 3.1.2 53/136053/1
egernug [Thu, 28 Sep 2023 08:57:44 +0000 (09:57 +0100)]
Update RTD for Spring Boot 3.1.2

Issue-ID: CPS-1888

Signed-off-by: egernug <gerard.nugent@est.tech>
Change-Id: I8ef41d3f5563fb6aa2a3090b9164523fed538933

7 months agoMerge "Modify INFO.yaml for committer rights"
Toine Siebelink [Thu, 28 Sep 2023 08:10:18 +0000 (08:10 +0000)]
Merge "Modify INFO.yaml for committer rights"

7 months agoMerge "Uplift Spring Boot to 3.1.2"
Toine Siebelink [Thu, 28 Sep 2023 07:31:07 +0000 (07:31 +0000)]
Merge "Uplift Spring Boot to 3.1.2"

7 months agoMerge "Introduce and use new Hazelcast map for module set tag"
Sourabh Sourabh [Wed, 27 Sep 2023 12:25:53 +0000 (12:25 +0000)]
Merge "Introduce and use new Hazelcast map for module set tag"

7 months agoUplift Spring Boot to 3.1.2 47/136047/1
egernug [Wed, 27 Sep 2023 09:49:45 +0000 (10:49 +0100)]
Uplift Spring Boot to 3.1.2

To align with Ericsson Spring Boot is being uplifted to version 3.1.2

Issue-ID: CPS-1888

Signed-off-by: egernug <gerard.nugent@est.tech>
Change-Id: Icfe97df15ab67a7fb25e0a98e4bbbbe91f332321

7 months agoMerge "CM Data Subscriptions PoC/Performance test fixes"
Toine Siebelink [Tue, 26 Sep 2023 17:17:31 +0000 (17:17 +0000)]
Merge "CM Data Subscriptions PoC/Performance test fixes"

7 months agoCM Data Subscriptions PoC/Performance test fixes 42/136042/1
danielhanrahan [Tue, 26 Sep 2023 12:16:05 +0000 (13:16 +0100)]
CM Data Subscriptions PoC/Performance test fixes

There were some issues in original update test that caused no updates to
be written. This fixes those issues and adds verifies the subscriber
count.

Issue-ID: CPS-1881
Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech>
Change-Id: I7b5a5e95bee247d1b1d52f5bc5e8567b8871a659

7 months agoModify INFO.yaml for committer rights 39/136039/3
emaclee [Tue, 26 Sep 2023 14:04:55 +0000 (15:04 +0100)]
Modify INFO.yaml for committer rights

Issue-ID: CPS-1887
Signed-off-by: emaclee <lee.anjella.macabuhay@est.tech>
Change-Id: I1af27060ad9f38322254517e36c3d13eea24f1e8

7 months agoIntroduce and use new Hazelcast map for module set tag 30/136030/2
leventecsanyi [Tue, 26 Sep 2023 10:57:57 +0000 (12:57 +0200)]
Introduce and use new Hazelcast map for module set tag

  - added new IMap for moduleSetTags, updated SynchronizationCacheConfigSpec
  - updated deployment.rst

Issue-ID: CPS-1859
Signed-off-by: leventecsanyi <levente.csanyi@est.tech>
Change-Id: I5233c5150fd784974d7c1e5ba387119c1eaba194

7 months agoMerge "Rename Subscrption Perf Test class to fit filename"
Priyank Maheshwari [Tue, 26 Sep 2023 07:55:06 +0000 (07:55 +0000)]
Merge "Rename Subscrption Perf Test class to fit filename"

7 months agoRename Subscrption Perf Test class to fit filename 24/136024/1
ToineSiebelink [Tue, 26 Sep 2023 07:20:11 +0000 (08:20 +0100)]
Rename Subscrption Perf Test class to fit filename

Issue-ID: CPS-1881
Signed-off-by: ToineSiebelink <toine.siebelink@est.tech>
Change-Id: I6b18d13fd8f1f877eb21fee783bc3fc8515a575c

7 months agoMerge "CM Data Subscriptions PoC/Performance test"
Priyank Maheshwari [Mon, 25 Sep 2023 16:11:01 +0000 (16:11 +0000)]
Merge "CM Data Subscriptions PoC/Performance test"

7 months agoCM Data Subscriptions PoC/Performance test 22/136022/1
ToineSiebelink [Thu, 21 Sep 2023 13:04:29 +0000 (14:04 +0100)]
CM Data Subscriptions PoC/Performance test

- New model introduced in test can be ported to production code
- Groovy test around the new use-cases can be used as a guid for actau production code solution
- Current worst use-case about 10 secodn son windows laptop. is acceptable as per Requiremenyt of 30 second
- TODO: update test limits/expectations based on CI results

Issue-ID: CPS-1881
Signed-off-by: ToineSiebelink <toine.siebelink@est.tech>
Change-Id: I05f3adf7f9cc4d9a9c94a8435a392ed76f9fad66

7 months agoMerge "RTD change to document migration to Spring Boot 3.0"
Toine Siebelink [Mon, 25 Sep 2023 10:52:41 +0000 (10:52 +0000)]
Merge "RTD change to document migration to Spring Boot 3.0"

7 months agoRefactoring persistence classes 01/136001/5
sourabh_sourabh [Thu, 21 Sep 2023 14:56:19 +0000 (15:56 +0100)]
Refactoring persistence classes

- Created a common ncmppersistence pkg inside ncmp service "api/impl" pkg".
- Move "inventery" into "api/impl" pkg.
- Created common class named as "NcmpPersistence" inside
  "ncmppersistence" pkg.
- Move all the commin constants and methods into "NcmpPersistence".
- SubscriptionPersistence and InventoryPersistence extends
  "NcmpPersistence".
- Find and replace all the constants of NCMP.

Issue-ID: CPS-1883
Signed-off-by: sourabh_sourabh <sourabh.sourabh@est.tech>
Change-Id: Id3e678109766d680589fa7aab965ea251a55f075
Signed-off-by: sourabh_sourabh <sourabh.sourabh@est.tech>
7 months agoMerge "Reinstate Spring Boot 3.0 after revert"
Toine Siebelink [Mon, 25 Sep 2023 08:51:21 +0000 (08:51 +0000)]
Merge "Reinstate Spring Boot 3.0 after revert"

7 months agoMerge "Add DMI to TrustLevel Cache During Registration"
Priyank Maheshwari [Mon, 25 Sep 2023 08:44:26 +0000 (08:44 +0000)]
Merge "Add DMI to TrustLevel Cache During Registration"

7 months agoReinstate Spring Boot 3.0 after revert 02/136002/3
egernug [Thu, 21 Sep 2023 16:51:21 +0000 (17:51 +0100)]
Reinstate Spring Boot 3.0 after revert

Issue-ID: CPS-1789

Signed-off-by: egernug <gerard.nugent@est.tech>
Change-Id: Iee5c514ccdba36a387f83948d8a3ba26e6b1de5b

7 months agoAdd DMI to TrustLevel Cache During Registration 28/135928/4
seanbeirne [Mon, 11 Sep 2023 14:32:41 +0000 (15:32 +0100)]
Add DMI to TrustLevel Cache During Registration

Issue-ID: CPS-1861
Signed-off-by: seanbeirne <sean.beirne@est.tech>
Change-Id: I1e71b78eec9e2a9f536f82ef1ba5a9933ca2bf6b

7 months agoMerge "Set lock state and reason upon request"
Toine Siebelink [Thu, 21 Sep 2023 08:57:40 +0000 (08:57 +0000)]
Merge "Set lock state and reason upon request"

7 months agoBump pom file versions 95/135995/1
danielhanrahan [Wed, 20 Sep 2023 16:10:40 +0000 (17:10 +0100)]
Bump pom file versions

Issue-ID: CPS-1882
Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech>
Change-Id: Iec6b6e8fed17ad8250a39436c7b4fd5572e5c916

7 months agoAdd 3.3.7 container yaml to CPS 94/135994/1
danielhanrahan [Wed, 20 Sep 2023 15:37:03 +0000 (16:37 +0100)]
Add 3.3.7 container yaml to CPS

Issue-ID: CPS-1882
Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech>
Change-Id: I726c8834210fecb5c22b4fce8c4f9ce2e45a4baa

7 months agoAdd new 3.3.7 release version yaml 92/135992/1
danielhanrahan [Wed, 20 Sep 2023 15:36:06 +0000 (16:36 +0100)]
Add new 3.3.7 release version yaml

Issue-ID: CPS-1882
Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech>
Change-Id: I50bc3fae3009c141c84321ace4eaf171f44524ff

7 months agoopenapi yml update for 3.3.7 release 91/135991/1
danielhanrahan [Wed, 20 Sep 2023 14:01:59 +0000 (15:01 +0100)]
openapi yml update for 3.3.7 release

Issue-ID: CPS-1882
Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech>
Change-Id: I2d34631e5a3f8832adb577c0b19384b62b4dd24d

7 months agoRevert "Migrate CPS to Spring-boot 3.0" 39/135939/2
Toine Siebelink [Wed, 20 Sep 2023 09:35:10 +0000 (09:35 +0000)]
Revert "Migrate CPS to Spring-boot 3.0"

This reverts commit 9693ec51cf6526082f0ad0c3ad208d144cbbb163.

Reason for revert: Bug fix delivery

Change-Id: I73bdc1528192c662983b0bbef73b10b6d612a719
Signed-off-by: egernug <gerard.nugent@est.tech>
Signed-off-by: ToineSiebelink <toine.siebelink@est.tech>
7 months agoMerge "Use YangParserFactory to generate schema context"
Toine Siebelink [Wed, 20 Sep 2023 11:09:41 +0000 (11:09 +0000)]
Merge "Use YangParserFactory to generate schema context"

7 months agoUse YangParserFactory to generate schema context 70/135970/6
danielhanrahan [Fri, 15 Sep 2023 11:02:35 +0000 (12:02 +0100)]
Use YangParserFactory to generate schema context

This is presented as a fix for ClassDefNotFoundErrors
from opendaylight yang parser

Issue-ID: CPS-1866
Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech>
Change-Id: If2d1a8f0319cad0a9517ea3652446e2e43f51fd4

7 months agoRTD change to document migration to Spring Boot 3.0 82/135982/1
egernug [Tue, 19 Sep 2023 14:26:42 +0000 (15:26 +0100)]
RTD change to document migration to Spring Boot 3.0

Issue-ID: CPS-1789

Signed-off-by: egernug <gerard.nugent@est.tech>
Change-Id: Iade4f3feb4ac00874f977e0154c7fca65b30106c

7 months agoSet lock state and reason upon request 24/135924/5
leventecsanyi [Fri, 8 Sep 2023 13:52:24 +0000 (15:52 +0200)]
Set lock state and reason upon request

  - added new LockReasonCategories and improved SyncUtils.isReadyForRetry
  - refactored logic aroudn retry times
  - refactored unit tests

Issue-ID: CPS-1860
Signed-off-by: leventecsanyi <levente.csanyi@est.tech>
Change-Id: I4382d6ad1fa0a7d9dacb8c8281b0458a5afc0375

7 months agoMerge "Migrate CPS to Spring-boot 3.0"
Toine Siebelink [Mon, 18 Sep 2023 14:54:22 +0000 (14:54 +0000)]
Merge "Migrate CPS to Spring-boot 3.0"

7 months agoDocs for the distributed datastructures in cps and ncmp 59/135959/3
mpriyank [Wed, 13 Sep 2023 10:42:05 +0000 (11:42 +0100)]
Docs for the distributed datastructures in cps and ncmp

- listed the distributed datastructures that we use in cps and ncmp.
- summary of the usage in the product.

Issue-ID: CPS-1867
Change-Id: I6535f7cfc6ef68731d22c81500ba4b876e7db0f4
Signed-off-by: mpriyank <priyank.maheshwari@est.tech>
7 months agoMigrate CPS to Spring-boot 3.0 08/135608/16
egernug [Wed, 26 Jul 2023 09:36:15 +0000 (10:36 +0100)]
Migrate CPS to Spring-boot 3.0

Issue-ID: CPS-1789

Signed-off-by: egernug <gerard.nugent@est.tech>
Change-Id: I932fca8a50cedf2ae0604401c5e2b27896e4d449

7 months agoMerge "Dmi plugin watchdog cheking aliveness"
Luke Gleeson [Tue, 12 Sep 2023 09:42:32 +0000 (09:42 +0000)]
Merge "Dmi plugin watchdog cheking aliveness"

7 months agoVerify kafka headers by header name 26/135926/6
halil.cakal [Mon, 11 Sep 2023 11:34:37 +0000 (12:34 +0100)]
Verify kafka headers by header name

- Change subscription notification flow
- Change data operations flow

Issue-ID: CPS-1613
Change-Id: I5c8aeb26c925071d810975dd6686309b7ad6b76f
Signed-off-by: halil.cakal <halil.cakal@est.tech>
8 months agoDmi plugin watchdog cheking aliveness 85/135885/6
halil.cakal [Thu, 31 Aug 2023 10:45:47 +0000 (11:45 +0100)]
Dmi plugin watchdog cheking aliveness

- Add capability of GET request into DmiRestClient
- Add watchdog job to check aliveness of dmi plugins
- DmiPluginStatus enum as UP or DOWN
- Add unit tests for the new function in dmi rest client
- Add unit tests for dmi watchdog

Issue-ID: CPS-1856
Change-Id: Ic38a96f0485a0bfe1b6af5bb2f57f6119d8fa563
Signed-off-by: halil.cakal <halil.cakal@est.tech>
8 months agoModify inventory using moduleSetTag as optional attribute 02/135902/1
leventecsanyi [Mon, 4 Sep 2023 08:59:23 +0000 (10:59 +0200)]
Modify inventory using moduleSetTag as optional attribute

    - added moduletSetTag as an optional field for RestInputCmHandle

Issue-ID: CPS-1803
Signed-off-by: leventecsanyi <levente.csanyi@est.tech>
Change-Id: I15c9d1eeb4f7db83ca23c50f3ffe9603cd5b14c9

8 months agoCI: Remove GHA for RTDv3 94/135894/1
Jessica Wagantall [Thu, 31 Aug 2023 20:40:23 +0000 (13:40 -0700)]
CI: Remove GHA for RTDv3

These actions are getting moved to the .github repo since
they need to run for all repos.

Issue-ID: CIMAN-33
Change-Id: I49560ddbcb128448d6dd29a65a611ba8bf526427
Signed-off-by: Jessica Wagantall <jwagantall@linuxfoundation.org>
8 months agoMerge "Hazelcast cache config stroring trust level per dmi plugin"
Priyank Maheshwari [Thu, 31 Aug 2023 16:03:36 +0000 (16:03 +0000)]
Merge "Hazelcast cache config stroring trust level per dmi plugin"

8 months agoHazelcast cache config stroring trust level per dmi plugin 33/135833/4
halil.cakal [Mon, 28 Aug 2023 11:25:37 +0000 (12:25 +0100)]
Hazelcast cache config stroring trust level per dmi plugin

- Add Hazelcast cache config to store trust level
  per dmi plugin

Issue-ID: CPS-1855
Change-Id: Ibe7f8393008ca7352aacddba99ecd19d6e1eb326
Signed-off-by: halil.cakal <halil.cakal@est.tech>
8 months agoCI: Add rtdv3 merge GHA workflow call 82/135882/5
Jessica Wagantall [Wed, 30 Aug 2023 18:58:31 +0000 (11:58 -0700)]
CI: Add rtdv3 merge GHA workflow call

Issue-ID: CIMAN-33
Change-Id: I2f6d6d089b359c95554b8caa921e3c98d26decf5
Signed-off-by: Jessica Wagantall <jwagantall@linuxfoundation.org>
8 months agoExtend model loader to support model-upgrade (part 2) 40/135840/2
ToineSiebelink [Mon, 28 Aug 2023 14:21:59 +0000 (15:21 +0100)]
Extend model loader to support model-upgrade (part 2)

- add upgrade related methods to common abstract class
- add new (agreed) inventory model
- add InventoryModelLoader
- add more logging for success cases
- simplified constant names considering the context (class name)

Issue-ID: CPS-1804

Signed-off-by: ToineSiebelink <toine.siebelink@est.tech>
Change-Id: I61a5c6d320d340a5c469ce20140f984439ba71a2

8 months agoMerge "Extend model loader to support model-upgrade (part 1)"
Priyank Maheshwari [Fri, 25 Aug 2023 13:54:17 +0000 (13:54 +0000)]
Merge "Extend model loader to support model-upgrade (part 1)"

8 months agoMerge "Subscription Forwarding Fix"
Priyank Maheshwari [Fri, 25 Aug 2023 09:21:33 +0000 (09:21 +0000)]
Merge "Subscription Forwarding Fix"

8 months agoExtend model loader to support model-upgrade (part 1) 16/135816/2
ToineSiebelink [Thu, 24 Aug 2023 09:29:34 +0000 (10:29 +0100)]
Extend model loader to support model-upgrade (part 1)

- refactor existign code for easier extension
 (no code changes yet, just want to review refactor in this first patch...)
- changed log level of some (error) logging

Issue-ID: CPS-1804
Signed-off-by: ToineSiebelink <toine.siebelink@est.tech>
Change-Id: I234ad6c4057e9447cd39a83b8f48799918ca6b7f

8 months agoSubscription Forwarding Fix 20/135820/1
lukegleeson [Thu, 24 Aug 2023 10:36:22 +0000 (11:36 +0100)]
Subscription Forwarding Fix

Issue-ID: CPS-1853
Change-Id: Ic3f2bf28e18d3cadafb57e9dd4bfce8ab06cdb49
Signed-off-by: lukegleeson <luke.gleeson@est.tech>
8 months agoMerge "Add verification flow in CSIT: Cm Data Subscription Create"
Luke Gleeson [Thu, 24 Aug 2023 08:44:42 +0000 (08:44 +0000)]
Merge "Add verification flow in CSIT: Cm Data Subscription Create"

8 months agoBump pom file versions 01/135801/1
leventecsanyi [Wed, 23 Aug 2023 13:55:30 +0000 (15:55 +0200)]
Bump pom file versions

Issue-ID: CPS-1851
Signed-off-by: leventecsanyi <levente.csanyi@est.tech>
Change-Id: I15c1a9577ac940abfaae60689e3082f55455c28c

8 months agoMerge "Add 3.3.6 container yaml file to CPS"
Priyank Maheshwari [Wed, 23 Aug 2023 13:58:43 +0000 (13:58 +0000)]
Merge "Add 3.3.6 container yaml file to CPS"

8 months agoAdd 3.3.6 container yaml file to CPS 00/135800/1
leventecsanyi [Wed, 23 Aug 2023 13:40:39 +0000 (15:40 +0200)]
Add 3.3.6 container yaml file to CPS

Issue-ID: CPS-1850
Signed-off-by: leventecsanyi <levente.csanyi@est.tech>
Change-Id: I55698ee7177861c195a278aa07638db32c28f265

8 months agoAdd new release version yaml 98/135798/1
leventecsanyi [Wed, 23 Aug 2023 13:07:09 +0000 (15:07 +0200)]
Add new release version yaml

Issue-ID: CPS-1849
Signed-off-by: leventecsanyi <levente.csanyi@est.tech>
Change-Id: Ia604a0e92456f0dc0b4b5241e0b7817cfe950a4c

8 months agoRelease notes and openapi yml update 90/135790/2
mpriyank [Tue, 22 Aug 2023 12:17:46 +0000 (13:17 +0100)]
Release notes and openapi yml update

- add to rst file and update the rest api changes

Issue-ID: CPS-1846
Change-Id: I242fc98c025ffe0bf654640ad16dfef2bb0fcbaf
Signed-off-by: mpriyank <priyank.maheshwari@est.tech>
8 months agoDocument async eror 107, southbound system is busy 89/135789/1
ToineSiebelink [Tue, 22 Aug 2023 12:22:12 +0000 (13:22 +0100)]
Document async eror 107, southbound system is busy

Issue-ID: CPS-1844

Signed-off-by: ToineSiebelink <toine.siebelink@est.tech>
Change-Id: Iff8a8b7a88ce8404f541b3dfa73305541bc09056

8 months agoMerge "Correct minimum-coverage in pom files"
Sourabh Sourabh [Tue, 22 Aug 2023 11:02:24 +0000 (11:02 +0000)]
Merge "Correct minimum-coverage in pom files"

8 months agoMerge "Replace event-id with correlation-id for data read operation cloud event"
Priyank Maheshwari [Tue, 22 Aug 2023 11:00:48 +0000 (11:00 +0000)]
Merge "Replace event-id with correlation-id for data read operation cloud event"

8 months agoMerge "Fix: Add file expension for reusable workflow"
Toine Siebelink [Tue, 22 Aug 2023 08:54:54 +0000 (08:54 +0000)]
Merge "Fix: Add file expension for reusable workflow"

8 months agoMerge "Missing test for getDataNodes (ep1)"
Luke Gleeson [Tue, 22 Aug 2023 08:49:37 +0000 (08:49 +0000)]
Merge "Missing test for getDataNodes (ep1)"

8 months agoFix: Add file expension for reusable workflow 85/135785/1
Jessica Wagantall [Mon, 21 Aug 2023 20:22:29 +0000 (13:22 -0700)]
Fix: Add file expension for reusable workflow

Issue-ID: CIMAN-33
Change-Id: I3a4960eefb97628ad7e837ca241d36a98540c8b5
Signed-off-by: Jessica Wagantall <jwagantall@linuxfoundation.org>
8 months agoMerge "CI: Add test rtdv3 GHA workflow"
Toine Siebelink [Mon, 21 Aug 2023 16:43:52 +0000 (16:43 +0000)]
Merge "CI: Add test rtdv3 GHA workflow"

8 months agoCorrect minimum-coverage in pom files 84/135784/1
ToineSiebelink [Mon, 21 Aug 2023 16:42:57 +0000 (17:42 +0100)]
Correct minimum-coverage in pom files

Issue-ID: CPS-475
Signed-off-by: ToineSiebelink <toine.siebelink@est.tech>
Change-Id: I43fb6e1be7595faddfb5a22932793e8909b036fc

8 months agoReplace event-id with correlation-id for data read operation cloud event 83/135783/1
sourabh_sourabh [Mon, 21 Aug 2023 14:52:52 +0000 (15:52 +0100)]
Replace event-id with correlation-id for data read operation cloud event

- Modified data operation event consumer to send correlation-id instead
  if event-id while publishing cloud event to client topic.

Issue-ID: CPS-1842
Signed-off-by: sourabh_sourabh <sourabh.sourabh@est.tech>
Change-Id: I30738b90d2ff0d14b5ee0bac680eff834aa968bf

8 months agoAdd verification flow in CSIT: Cm Data Subscription Create 87/134087/41
halil.cakal [Wed, 12 Apr 2023 14:19:45 +0000 (15:19 +0100)]
Add verification flow in CSIT: Cm Data Subscription Create

- Add Confluent Kafka Library support for Robot Framework
- Add capability of testing for Kafka flows
- Add CSIT test: Cm Data Notifications Subscription Create
  complying with CloudEvents
- Change DMI version to latest for CSIT
- Change DMI service name for Kafka topic extension
- Change kafka listeners in docker compose

Issue-ID: CPS-1613
Change-Id: Ic22cb36fdcee0f5c2bd6ff5c1876747aef563f8b
Signed-off-by: halil.cakal <halil.cakal@est.tech>
8 months agoMerge "Cm Subscription: PENDING logic handling in NCMP"
Luke Gleeson [Mon, 21 Aug 2023 10:20:09 +0000 (10:20 +0000)]
Merge "Cm Subscription: PENDING logic handling in NCMP"

8 months agoCI: Add test rtdv3 GHA workflow 74/135774/1
Jessica Wagantall [Fri, 18 Aug 2023 17:48:11 +0000 (10:48 -0700)]
CI: Add test rtdv3 GHA workflow

This is not a voting workflow, but rather it replicates what
Jenkins does in GHA.
The idea is to have this workflow tested first before we deprecate
the global-jjb rtdv3 job and switch to GHA.

Issue-ID: CIMAN-33
Change-Id: I83742b2fb9d16785a6932c93a2c701f13527307b
Signed-off-by: Jessica Wagantall <jwagantall@linuxfoundation.org>
8 months agoMerge "Device heartbeat listener"
Luke Gleeson [Fri, 18 Aug 2023 13:17:32 +0000 (13:17 +0000)]
Merge "Device heartbeat listener"

8 months agoMerge "CPS-Core : Expose a java interface to update schema set"
Priyank Maheshwari [Fri, 18 Aug 2023 12:55:49 +0000 (12:55 +0000)]
Merge "CPS-Core : Expose a java interface to update schema set"

8 months agoDevice heartbeat listener 09/135609/10
mpriyank [Wed, 26 Jul 2023 16:33:35 +0000 (17:33 +0100)]
Device heartbeat listener

- Infrastructure code to have the kafka listener and distributed set in
  place
- performance tested locally
- testware added

Issue-ID: CPS-1642
Change-Id: I775dbe6e6b520b8777faa08610db439877757572
Signed-off-by: mpriyank <priyank.maheshwari@est.tech>
8 months agoMissing test for getDataNodes (ep1) 07/135707/4
Arpit Singh [Fri, 18 Aug 2023 08:26:12 +0000 (13:56 +0530)]
Missing test for getDataNodes (ep1)

  - there was no test to check the exceptions thrown by getDataNodes

Signed-off-by: Arpit Singh <as00745003@techmahindra.com>
Change-Id: Ifa1df8ebe83fafba833be14559d94261bca93ef0

8 months agoCPS-Core : Expose a java interface to update schema set 28/135728/4
sourabh_sourabh [Tue, 15 Aug 2023 11:15:33 +0000 (12:15 +0100)]
CPS-Core : Expose a java interface to update schema set

- Exposed an interface to update anchor by schema set name.
- New interface is implemented into RI model.
- New native query is exposed to update id with given schema set name.
- A new integration test is written to test new interface into cps core.

Issue-ID: CPS-1800

Signed-off-by: sourabh_sourabh <sourabh.sourabh@est.tech>
Change-Id: Ibf44712e11b53cb6673b04b9e3fd864321c90839
Signed-off-by: sourabh_sourabh <sourabh.sourabh@est.tech>
8 months agoModify data operation schema to accommodate additional information 70/135770/2
sourabh_sourabh [Fri, 18 Aug 2023 09:56:42 +0000 (10:56 +0100)]
Modify data operation schema to accommodate additional information

- Code is modify to add resourceIdentifier and option to data operation kafka response for status code 100, 101, 102 and 103.

Issue-ID: CPS-1837
Signed-off-by: sourabh_sourabh <sourabh.sourabh@est.tech>
Change-Id: I1f7870d9d373f69de03240700b9d74be46fbfb6c
Signed-off-by: sourabh_sourabh <sourabh.sourabh@est.tech>