cps.git
2 months agoOrganise NCMP & CPS Event Schema Folders 96/140096/4
seanbeirne [Tue, 28 Jan 2025 10:16:34 +0000 (10:16 +0000)]
Organise NCMP & CPS Event Schema Folders

-Directories will reflect application.yml topic topology

Issue-ID: CPS-2590
Change-Id: I42bfa10c54ae79726b5ad0b4d60a0d9e826a34d5
Signed-off-by: seanbeirne <sean.beirne@est.tech>
2 months agoDisable JVM process metrics by default 21/140021/1
danielhanrahan [Fri, 24 Jan 2025 16:09:07 +0000 (16:09 +0000)]
Disable JVM process metrics by default

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

2 months agoRTD supporting heapdump and threaddump exposure 18/140018/4
mpriyank [Thu, 23 Jan 2025 14:35:52 +0000 (14:35 +0000)]
RTD supporting heapdump and threaddump exposure

- actuator endpoint now have support for heapdump via /actuator/heapdump
  and the dump will be downloaded on the machine
- threaddump is available on /actuator/threddump and will be available
  as response text

Issue-ID: CPS-2453
Change-Id: I263b39478bb953c70b2ffca09760c18d7e50da91
Signed-off-by: mpriyank <priyank.maheshwari@est.tech>
2 months agoMerge "Add dashboard for Inventory REST interfaces"
Daniel Hanrahan [Fri, 24 Jan 2025 13:12:56 +0000 (13:12 +0000)]
Merge "Add dashboard for Inventory REST interfaces"

2 months agoMerge "Fix for cm handles stuck in LOCKED during registration"
Priyank Maheshwari [Fri, 24 Jan 2025 12:23:53 +0000 (12:23 +0000)]
Merge "Fix for cm handles stuck in LOCKED during registration"

2 months agoMerge "[k6] 50000 CM-handles"
Priyank Maheshwari [Fri, 24 Jan 2025 12:18:47 +0000 (12:18 +0000)]
Merge "[k6] 50000 CM-handles"

2 months ago[k6] 50000 CM-handles 19/140019/2
danielhanrahan [Fri, 24 Jan 2025 11:17:14 +0000 (11:17 +0000)]
[k6] 50000 CM-handles

- Increase CM-handles to 50000 in k6 tests
- Increase container memory to 3GB (crashes with 2GB)
- Decrease max heap percentage to 70% to ensure container has
  at least 200MB free memory, to prevent JVM from crashing at
  higher peak loads.

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

2 months agoMerge "Incorrect Internal Error Code for duplicated registration"
Daniel Hanrahan [Fri, 24 Jan 2025 11:25:31 +0000 (11:25 +0000)]
Merge "Incorrect Internal Error Code for duplicated registration"

2 months agoMerge "Expose JVM process metrics"
Priyank Maheshwari [Thu, 23 Jan 2025 17:21:24 +0000 (17:21 +0000)]
Merge "Expose JVM process metrics"

2 months agoExpose JVM process metrics 16/140016/1
danielhanrahan [Thu, 23 Jan 2025 15:07:06 +0000 (15:07 +0000)]
Expose JVM process metrics

Currently, Grafana only shows memory used inside the JVM,
but not including memory used by the JVM process itself.
These metrics are needed for determining real memory usage.

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

2 months agoFix for cm handles stuck in LOCKED during registration 11/140011/4
ToineSiebelink [Thu, 23 Jan 2025 12:34:40 +0000 (12:34 +0000)]
Fix for cm handles stuck in LOCKED during registration

- Additional Error logging when cm handles fail module sync
- Swallow already defined exception upon schema and/or anchor creation
- Updated integration test to try to reproduce the problem (but couldn't)
- Ignored integration tests that depend/affected by race conditions
  (they are useful for troubleshooting but not for pipeline checks)
- Removed last remnants of springboot retry annotation option (incl dependencies)

Issue-ID: CPS-2576
Change-Id: I910e802268332f955134c043bd1b46a7ec57233b
Signed-off-by: ToineSiebelink <toine.siebelink@est.tech>
2 months agoMerge "Add DB Clean-up to CPS Rest Interface"
Daniel Hanrahan [Thu, 23 Jan 2025 15:20:19 +0000 (15:20 +0000)]
Merge "Add DB Clean-up to CPS Rest Interface"

2 months agoIncorrect Internal Error Code for duplicated registration 09/140009/2
seanbeirne [Thu, 23 Jan 2025 10:59:00 +0000 (10:59 +0000)]
Incorrect Internal Error Code for duplicated registration

-Deprectated 111 Alternate-Id already exists error code
-All dupication scenarios now return 109

Issue-ID: CPS-2563
Change-Id: Ic9b9df936eaf3795441f4dd1ec1cc73e39c9eae1
Signed-off-by: seanbeirne <sean.beirne@est.tech>
2 months agoMerge "[Docs]: Add RTD documentation for ServiceConfig properties and WebClientConfig...
Priyank Maheshwari [Thu, 23 Jan 2025 14:06:13 +0000 (14:06 +0000)]
Merge "[Docs]: Add RTD documentation for ServiceConfig properties and WebClientConfiguration context"

2 months agoAdd DB Clean-up to CPS Rest Interface 97/139997/3
ToineSiebelink [Wed, 22 Jan 2025 08:57:39 +0000 (08:57 +0000)]
Add DB Clean-up to CPS Rest Interface

- add dataspace filter to module cleanup impl
- updated integration test to only delete orphaned modules in relevant dataspaces
  (this also fixes CPS-2571)
- improved labels on admin controller test
- add dataspaces/../clean rest endpoint for cps core
- added 'Regular Maintenance' section to RTD Admin Guide
- consistent spelling of 'CM Handle' in RTD Docs

Issue-ID: CPS-2554
Change-Id: Ica70c3495758f073eaac9eeeadcc0e1be2c8cc1c
Signed-off-by: ToineSiebelink <toine.siebelink@est.tech>
2 months agoMerge "Switching to LTS of hazelcast-spring"
Daniel Hanrahan [Wed, 22 Jan 2025 17:03:37 +0000 (17:03 +0000)]
Merge "Switching to LTS of hazelcast-spring"

2 months agoMerge "Moved builders under impl in CPS Service"
Toine Siebelink [Wed, 22 Jan 2025 16:46:08 +0000 (16:46 +0000)]
Merge "Moved builders under impl in CPS Service"

2 months ago[Docs]: Add RTD documentation for ServiceConfig properties and WebClientConfiguration... 55/139955/6
sourabh_sourabh [Mon, 20 Jan 2025 12:37:55 +0000 (12:37 +0000)]
[Docs]: Add RTD documentation for ServiceConfig properties and WebClientConfiguration context

- Added detailed RTD documentation for the ServiceConfig class properties, including connection pooling, timeout settings, and memory management.
- Documented the context and usage of WebClientConfiguration, explaining its role in configuring HTTP client behavior for services like Policy Executor and DMI.
- Included example configurations and best practices for tuning HTTP client performance.
- Improved clarity and accessibility of ServiceConfig-related configuration for future developers and administrators.

Issue-ID: CPS-2565
Change-Id: I84e612b2f56293c453884e341a516f55b2bb6b81
Signed-off-by: sourabh_sourabh <sourabh.sourabh@est.tech>
2 months agoSwitching to LTS of hazelcast-spring 04/140004/1
mpriyank [Wed, 22 Jan 2025 14:36:35 +0000 (14:36 +0000)]
Switching to LTS of hazelcast-spring

- Since we upgrade spring boot dependency to 3.4.1 , its better to
  upgrade hazelcast-spring as well
- hazelcast-spring 5.5.0 version has LTS as well

Issue-ID: CPS-2575
Change-Id: Ia31f571328cdf6fae05011068873e149cb609b51
Signed-off-by: mpriyank <priyank.maheshwari@est.tech>
2 months agoAdd 'Deleted' cm handle state for gauge 71/139971/3
emaclee [Tue, 21 Jan 2025 11:16:04 +0000 (11:16 +0000)]
Add 'Deleted' cm handle state for gauge

Issue-ID: CPS-2456
Change-Id: I2f7ff2dd18d164dbf685269fb2d2e47d08c3c5f5
Signed-off-by: emaclee <lee.anjella.macabuhay@est.tech>
2 months agoAdd dashboard for Inventory REST interfaces 94/139994/1
halil.cakal [Tue, 21 Jan 2025 15:55:32 +0000 (15:55 +0000)]
Add dashboard for Inventory REST interfaces

- rename lcm-state dashboard to inventory
- remove panels holding a single state of cm handle
- add panel for inventory APIs calls by URI and the STATUS

Issue-ID: CPS-2567

Change-Id: I374fa18b53d456519142cf059f74b2a070485355
Signed-off-by: halil.cakal <halil.cakal@est.tech>
2 months agoRemove retry mechanism for duplicate module(resource) errors 93/139993/4
ToineSiebelink [Tue, 21 Jan 2025 13:35:03 +0000 (13:35 +0000)]
Remove retry mechanism for duplicate module(resource) errors

- CM Handle with problems will go into 'LOCKED' state and retried using existing business logic

Issue-ID: CPS-2555
Change-Id: I563f6bc536d8fd8c6675891c62318ff2fb43fea6
Signed-off-by: ToineSiebelink <toine.siebelink@est.tech>
2 months agoMoved builders under impl in CPS Service 68/139968/1
leventecsanyi [Mon, 20 Jan 2025 20:58:19 +0000 (21:58 +0100)]
Moved builders under impl in CPS Service

  - moved builders and fixed the Arch test

Issue-ID: CPS-2542
Change-Id: Iac9d47f20fff2e6fa415ada8bc17880b0b032591
Signed-off-by: leventecsanyi <levente.csanyi@est.tech>
2 months agoMerge "Increase JVM heap to 75% again"
Lee Anjella Macabuhay [Mon, 20 Jan 2025 16:31:15 +0000 (16:31 +0000)]
Merge "Increase JVM heap to 75% again"

2 months agoIncrease JVM heap to 75% again 66/139966/1
danielhanrahan [Mon, 20 Jan 2025 16:08:29 +0000 (16:08 +0000)]
Increase JVM heap to 75% again

Heap percent was commented out by mistake leading to OutOfMemoryError
in endurance pipeline, due to only 25% of memory being used for heap.

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

2 months agoOn demand heapdump and threaddump generation for cps-and-ncmp 61/139961/3
mpriyank [Mon, 20 Jan 2025 13:23:06 +0000 (13:23 +0000)]
On demand heapdump and threaddump generation for cps-and-ncmp

- Generate the heapdump of a running application on demand using the
  /actuator/heapdump endpoint and threaddump using /actuator/threaddump
- RTD update as separate patch when the python issue is sorted

Issue-ID: CPS-2453
Change-Id: Ifcf4e7aecc1ee15f57011a1c4a4ec7bf67e45a6f
Signed-off-by: mpriyank <priyank.maheshwari@est.tech>
2 months agoMerge "[k6] Adjust thresholds"
Sourabh Sourabh [Fri, 17 Jan 2025 17:16:25 +0000 (17:16 +0000)]
Merge "[k6] Adjust thresholds"

2 months ago[k6] Adjust thresholds 56/139956/1
danielhanrahan [Fri, 17 Jan 2025 16:49:14 +0000 (16:49 +0000)]
[k6] Adjust thresholds

Some cases improved performance after introduction of
one schemaset per module set tag.

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

2 months agoMerge "Realistic Examples: K6 Test-ware"
Toine Siebelink [Fri, 17 Jan 2025 16:40:43 +0000 (16:40 +0000)]
Merge "Realistic Examples: K6 Test-ware"

2 months agoMerge "Moved impl package out from api package"
Toine Siebelink [Fri, 17 Jan 2025 16:11:24 +0000 (16:11 +0000)]
Merge "Moved impl package out from api package"

2 months agoMerge "Make Response Timeout Configurable in WebClient Configuration"
Lee Anjella Macabuhay [Fri, 17 Jan 2025 13:33:37 +0000 (13:33 +0000)]
Merge "Make Response Timeout Configurable in WebClient Configuration"

2 months agoRealistic Examples: K6 Test-ware 34/139934/3
sourabh_sourabh [Thu, 16 Jan 2025 10:53:59 +0000 (10:53 +0000)]
Realistic Examples: K6 Test-ware

- Updated resourceIdentifier query parameter to align with GNBDUFunctionConfig structure.
- Introduced hierarchical notation (parent=..., child=...) for precise resource identification.
- Added examples for querying all GNBDUFunctions, specific gNB IDs, and sub-resources like RIM-RS reporting configurations.

Issue-ID: CPS-2482
Change-Id: I9e10db9bed7a3503f617a9f8dbd9fed8787402dc
Signed-off-by: sourabh_sourabh <sourabh.sourabh@est.tech>
2 months agoMoved impl package out from api package 05/139905/4
leventecsanyi [Wed, 15 Jan 2025 10:57:28 +0000 (11:57 +0100)]
Moved impl package out from api package

 - refactored cps service packages and the architecture test

Issue-ID: CPS-2543
Change-Id: I0fab54cebd157b19ff6105b7d4b6d8265a1af485
Signed-off-by: leventecsanyi <levente.csanyi@est.tech>
2 months agoMerge "One SchemaSet per moduleSetTag"
Sourabh Sourabh [Fri, 17 Jan 2025 09:49:36 +0000 (09:49 +0000)]
Merge "One SchemaSet per moduleSetTag"

2 months agoMerge "Add LCM State dashboard to Grafana"
Daniel Hanrahan [Thu, 16 Jan 2025 17:04:45 +0000 (17:04 +0000)]
Merge "Add LCM State dashboard to Grafana"

2 months agoMerge "Handle restart case for cps-ncmp gauge metrics"
Daniel Hanrahan [Thu, 16 Jan 2025 16:56:25 +0000 (16:56 +0000)]
Merge "Handle restart case for cps-ncmp gauge metrics"

2 months agoMake Response Timeout Configurable in WebClient Configuration 37/139937/3
sourabh_sourabh [Thu, 16 Jan 2025 13:00:18 +0000 (13:00 +0000)]
Make Response Timeout Configurable in WebClient Configuration

- Added responseTimeoutInSeconds property in the ServiceConfig class to allow dynamic configuration of the timeout.
- Updated WebClientConfiguration to read the responseTimeoutInSeconds from ServiceConfig and set it in the HttpClient.

Issue-ID: CPS-2565
Change-Id: I096688319c55f0342b524511883ec0d33806b9b7
Signed-off-by: sourabh_sourabh <sourabh.sourabh@est.tech>
2 months agoHandle restart case for cps-ncmp gauge metrics 92/139892/5
emaclee [Sun, 12 Jan 2025 12:39:55 +0000 (12:39 +0000)]
Handle restart case for cps-ncmp gauge metrics

Issue-ID: CPS-2456
Change-Id: I9ac5d6774fcd745d8141551eeff8a1deb1938f57
Signed-off-by: emaclee <lee.anjella.macabuhay@est.tech>
2 months agoAdd LCM State dashboard to Grafana 10/139910/2
halil.cakal [Wed, 15 Jan 2025 13:24:56 +0000 (13:24 +0000)]
Add LCM State dashboard to Grafana

- adding a grafana dashboard for lcm state changes of
  cm handles

Issue-ID: CPS-2558

Change-Id: Ie00884736ffa5c08e1be150c71cf8ac603f2ab60
Signed-off-by: halil.cakal <halil.cakal@est.tech>
2 months agoOne SchemaSet per moduleSetTag 05/139805/6
ToineSiebelink [Thu, 16 Jan 2025 14:41:18 +0000 (14:41 +0000)]
One SchemaSet per moduleSetTag

- Registration: create and upgrade cases.
- Handle moduleSetTag deletion (all orphans) for testware
- Unit tests updated
- additional logging of details for upgrade scenarios
- Integration Tests updated
- Remove cache for module sets being processed
- Removed DbCleaner (startup)
- Removed redundant methods in NCMP Inventory for deleting schema set(s)
- Removed validation check for all schema set interactions
- Updated some schema set tests to use special characters previously not allowed
- Checked integration test scenarios for upgrades with and without tags: all scenarios covered!

TODO
- REST endpoint to remove orphaned schema set data, separate story: CPS-2554
- Investigate exception handling regarding DuplicateYangResourceException: CPS-2555

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

2 months agoMerge "Resolve Nexus-IQ report issues"
Lee Anjella Macabuhay [Wed, 15 Jan 2025 14:05:08 +0000 (14:05 +0000)]
Merge "Resolve Nexus-IQ report issues"

2 months agoMerge "Move LockReasonCategory under api package"
Lee Anjella Macabuhay [Wed, 15 Jan 2025 09:55:11 +0000 (09:55 +0000)]
Merge "Move LockReasonCategory under api package"

2 months agoMerge "Realistic Examples: NCMP Open API and Doc"
Lee Anjella Macabuhay [Tue, 14 Jan 2025 17:05:52 +0000 (17:05 +0000)]
Merge "Realistic Examples: NCMP Open API and Doc"

2 months agoResolve Nexus-IQ report issues 91/139891/2
seanbeirne [Fri, 10 Jan 2025 14:11:10 +0000 (14:11 +0000)]
Resolve Nexus-IQ report issues

- Upgrading postgres 42.5.1->42.5.5
- Upgrading spring-boot-dependencies & spring-boot-starter-cache
  3.2.12->3.4.1

Issue-ID: CPS-2550
Change-Id: I36ab8d72ff7c19e413b2ce0b8e12f4dbcc1c2441
Signed-off-by: seanbeirne <sean.beirne@est.tech>
2 months agoMerge "Add conditionalProperty in subscription consumers and producers"
Daniel Hanrahan [Tue, 14 Jan 2025 10:45:44 +0000 (10:45 +0000)]
Merge "Add conditionalProperty in subscription consumers and producers"

2 months agoChange image of Grafana in local docker-compose 97/139897/1
halil.cakal [Mon, 13 Jan 2025 16:51:19 +0000 (16:51 +0000)]
Change image of Grafana in local docker-compose

- change image of grafana to grafana/grafana from grafana/grafana-oss
   in local docker-compose file

Issue-ID: CPS-2559

Change-Id: I03bf895c10a108c9aeae2db6b2dc6b39db505df5
Signed-off-by: halil.cakal <halil.cakal@est.tech>
2 months agoMove LockReasonCategory under api package 84/139884/2
leventecsanyi [Thu, 9 Jan 2025 14:01:30 +0000 (15:01 +0100)]
Move LockReasonCategory under api package

  - reafctored package structure

Issue-ID: CPS-2514
Change-Id: Id54cd652e147b585730caacbe550287ae2c329e1
Signed-off-by: leventecsanyi <levente.csanyi@est.tech>
2 months agoUpdate the cps's threshold for de-registration api 94/139894/1
halil.cakal [Mon, 13 Jan 2025 10:55:11 +0000 (10:55 +0000)]
Update the cps's threshold for de-registration api

- Due to the performance improvment of de-registration flow
   updating the cps' limit to 120 cmhandles/second

Issue-ID: CPS-2192
Change-Id: Ia0224a585deba9181de89c6bb4600e8d5529df14
Signed-off-by: halil.cakal <halil.cakal@est.tech>
2 months agoAdd conditionalProperty in subscription consumers and producers 93/139893/1
emaclee [Mon, 13 Jan 2025 08:36:23 +0000 (08:36 +0000)]
Add conditionalProperty in subscription consumers and producers

Issue-ID: CPS-2556
Change-Id: Id6a70dbfabc9119727eb307f3c2928a13f3bf44a
Signed-off-by: emaclee <lee.anjella.macabuhay@est.tech>
2 months agoRealistic Examples: NCMP Open API and Doc 61/139861/2
sourabh_sourabh [Tue, 7 Jan 2025 13:51:20 +0000 (13:51 +0000)]
Realistic Examples: NCMP Open API and Doc

- Updated resourceIdentifier query parameter to align with GNBDUFunctionConfig structure.
- Introduced hierarchical notation (parent=..., child=...) for precise resource identification.
- Added examples for querying all GNBDUFunctions, specific gNB IDs, and sub-resources like RIM-RS reporting configurations.

Issue-ID: CPS-2483
Change-Id: I215944a45c754e43f61948464c5c8793c22e41c8
Signed-off-by: sourabh_sourabh <sourabh.sourabh@est.tech>
2 months agoMerge "Implement Integration Testcases for XML Supported API's"
Lee Anjella Macabuhay [Fri, 10 Jan 2025 10:07:32 +0000 (10:07 +0000)]
Merge "Implement Integration Testcases for XML Supported API's"

2 months agoImplement Integration Testcases for XML Supported API's 74/139774/4
Rudrangi Anupriya [Thu, 9 Jan 2025 14:54:00 +0000 (20:24 +0530)]
Implement Integration Testcases for XML Supported API's

Issue-ID: CPS-2548
Change-Id: Icc7ffb66aabb03702355123c6d5c2eade0e7cb4a
Signed-off-by: Rudrangi Anupriya <ra00745022@techmahindra.com>
2 months agodocs config files for oslo release v2 85/139885/1
thmsdt [Thu, 9 Jan 2025 15:27:59 +0000 (16:27 +0100)]
docs config files for oslo release v2

Issue-ID: DOC-826

Change-Id: I6f27294301724feb46b737094c95175a17c33dfc
Signed-off-by: thmsdt <thomas.kulik@telekom.de>
2 months agoMerge "Resolve Nexus-IQ report issues"
Daniel Hanrahan [Wed, 8 Jan 2025 13:19:18 +0000 (13:19 +0000)]
Merge "Resolve Nexus-IQ report issues"

2 months agoMerge "Remove hypersistence dependency in cps"
Daniel Hanrahan [Wed, 8 Jan 2025 12:41:28 +0000 (12:41 +0000)]
Merge "Remove hypersistence dependency in cps"

2 months agoResolve Nexus-IQ report issues 54/139854/3
seanbeirne [Mon, 6 Jan 2025 12:31:13 +0000 (12:31 +0000)]
Resolve Nexus-IQ report issues

- Upgrading Springboot 3.3.1->3.3.7
- Upgrading Springboot dependencies 3.2.4->3.2.12

Issue-ID: CPS-2550
Change-Id: I0630b4fbdcfe44cebc835ef7be0df1b306e801e5
Signed-off-by: seanbeirne <sean.beirne@est.tech>
2 months agoMerge "Add gauge metric for NCMP "cmhandle states""
Daniel Hanrahan [Tue, 7 Jan 2025 14:54:45 +0000 (14:54 +0000)]
Merge "Add gauge metric for NCMP "cmhandle states""

2 months agoRemove hypersistence dependency in cps 59/139859/2
emaclee [Tue, 7 Jan 2025 10:54:50 +0000 (10:54 +0000)]
Remove hypersistence dependency in cps

Issue-ID: CPS-2166
Change-Id: I543e32a97b84f87f9ec0bbb72e3883e7eea3c5e1
Signed-off-by: emaclee <lee.anjella.macabuhay@est.tech>
2 months agoAdd gauge metric for NCMP "cmhandle states" 14/139714/11
emaclee [Wed, 11 Dec 2024 14:58:25 +0000 (14:58 +0000)]
Add gauge metric for NCMP "cmhandle states"

Issue-ID: CPS-2456
Change-Id: I1aebcc68dfdc9c48c230c74376742d67b05c0615
Signed-off-by: emaclee <lee.anjella.macabuhay@est.tech>
3 months agoUpdate docs related to lock 31/139731/1
mpriyank [Fri, 20 Dec 2024 11:31:58 +0000 (11:31 +0000)]
Update docs related to lock

- added the distributed lock in the documentation as well
- updated the log level to debug to refrain printing every iteration of
  the scheduler

Issue-ID: CPS-2479
Change-Id: Ieeeff46168d70aca6f423e82bda15a12d6c405a5
Signed-off-by: mpriyank <priyank.maheshwari@est.tech>
3 months agoMerge "Add schema to persist notification subscription information"
Priyank Maheshwari [Fri, 20 Dec 2024 10:49:32 +0000 (10:49 +0000)]
Merge "Add schema to persist notification subscription information"

3 months agoMerge "Remove check before removing from hazelcast cache"
Toine Siebelink [Fri, 20 Dec 2024 09:49:39 +0000 (09:49 +0000)]
Merge "Remove check before removing from hazelcast cache"

3 months agoAdd schema to persist notification subscription information 30/139030/18
rajesh.kumar [Mon, 30 Sep 2024 12:41:47 +0000 (18:11 +0530)]
Add schema to persist notification subscription information

Add required schema to persist notification subscription information. It should contain
  - Schema yang file
  - New Dataspace, Anchors or any other database entity
  - Refactore duplicate code in NCMP

Issue-ID:CPS-2427
Change-Id: I56c34400dc73c71b936a51260efd300924ababdc
Signed-off-by: rajesh.kumar <rk00747546@techmahindra.com>
3 months agoMerge "Cps and Ncmp distributed lock for various use cases"
Toine Siebelink [Thu, 19 Dec 2024 16:09:23 +0000 (16:09 +0000)]
Merge "Cps and Ncmp distributed lock for various use cases"

3 months agoCps and Ncmp distributed lock for various use cases 83/139583/13
mpriyank [Wed, 27 Nov 2024 14:43:28 +0000 (14:43 +0000)]
Cps and Ncmp distributed lock for various use cases

- introduced cpsAndNcmpLock to be used for any use case needing
  coordination. Since it can be used for any use case hence placing the
  class accordingly.
- currently lock is being used for populating workQueue.
- Removed FencedLock as it was part of CPSubsystem which is moved to
  hazelcast-enterprise in 5.5.* version onwards.
- added info level logging statement to verify just one thread at a time
  in the critical section
- Note : integration test to be part of a separate patch.

Issue-ID: CPS-2479
Change-Id: I0f33c7232786c517383e5093fda91fd9a1839021
Signed-off-by: mpriyank <priyank.maheshwari@est.tech>
3 months agoMerge "RTD docs for async use case"
Lee Anjella Macabuhay [Thu, 19 Dec 2024 13:13:51 +0000 (13:13 +0000)]
Merge "RTD docs for async use case"

3 months agoRemove check before removing from hazelcast cache 29/139729/1
emaclee [Thu, 19 Dec 2024 12:25:56 +0000 (12:25 +0000)]
Remove check before removing from hazelcast cache

Issue-ID: CPS-2420
Change-Id: I2299d5790792f7c2b2b1a6aa371b5ea43c6a9ee8
Signed-off-by: emaclee <lee.anjella.macabuhay@est.tech>
3 months agoRTD docs for async use case 28/139728/4
mpriyank [Thu, 19 Dec 2024 10:48:12 +0000 (10:48 +0000)]
RTD docs for async use case

- Documented the suggestion to tune the kafka parameter for the case
  when client provides a non existent topic for the async batch usecase.

Issue-ID: CPS-2069
Change-Id: I93e1b3006c901b6b4fc3a61df16d3cb82e6c9906
Signed-off-by: mpriyank <priyank.maheshwari@est.tech>
3 months agoHazelcast related code update 27/139727/1
emaclee [Thu, 19 Dec 2024 09:31:43 +0000 (09:31 +0000)]
Hazelcast related code update

- this patch answers comments from 'Hazelcast Optimization'
  patch that was merged

Issue-ID: CPS-2420
Change-Id: Ic5cf005730f2a45eba553a7f6d32e9af6676821d
Signed-off-by: emaclee <lee.anjella.macabuhay@est.tech>
3 months agoMerge "Implementation of Data validation feature in CPS APIs"
Lee Anjella Macabuhay [Fri, 13 Dec 2024 09:32:29 +0000 (09:32 +0000)]
Merge "Implementation of Data validation feature in CPS APIs"

3 months agoMerge "Increase Test coverage for cps-ncmp-service"
Toine Siebelink [Thu, 12 Dec 2024 09:27:28 +0000 (09:27 +0000)]
Merge "Increase Test coverage for cps-ncmp-service"

3 months agoImplementation of Data validation feature in CPS APIs 92/139592/4
Rudrangi Anupriya [Mon, 2 Dec 2024 10:07:07 +0000 (15:37 +0530)]
Implementation of Data validation feature in CPS APIs

Added support to validate JSON/XML data without the need of persisting
it in the database.

 - added "dryRunInQuery" flag as a new query parameter in update/Replace/Add APIs
 - added new method as part of CpsDataService layer to perform data
   validation

Issue-ID: CPS-2516
Change-Id: I87bb33dd6021567d0fac606d5c4b0168d107311c
Signed-off-by: Rudrangi Anupriya <ra00745022@techmahindra.com>
3 months agoIncrease Test coverage for cps-ncmp-service 91/139691/6
seanbeirne [Wed, 4 Dec 2024 16:23:11 +0000 (16:23 +0000)]
Increase Test coverage for cps-ncmp-service

Issue-ID: CPS-475
Change-Id: I35f127540e0fe5d412a9f855b647fef30f47159f
Signed-off-by: seanbeirne <sean.beirne@est.tech>
3 months agoMerge "Policy Executor API Review Board Comments"
Lee Anjella Macabuhay [Wed, 11 Dec 2024 12:38:53 +0000 (12:38 +0000)]
Merge "Policy Executor API Review Board Comments"

3 months agoMerge "Extend the container-up time after the tests finished"
Lee Anjella Macabuhay [Wed, 11 Dec 2024 09:49:57 +0000 (09:49 +0000)]
Merge "Extend the container-up time after the tests finished"

3 months agoPolicy Executor API Review Board Comments 96/139696/6
ToineSiebelink [Mon, 9 Dec 2024 11:22:29 +0000 (11:22 +0000)]
Policy Executor API Review Board Comments

- Implemented Guild review comments in API
- Updated Stub to reflect new API and 'support' all operations
- Updated production code to use new API
- Updated Semi-Integration Tests

Issue-ID: CPS-2479
Change-Id: Ibe307b0d859312b534009a384e9f71e1ea2affe0
Signed-off-by: ToineSiebelink <toine.siebelink@est.tech>
3 months agoExtend the container-up time after the tests finished 07/139707/2
halil.cakal [Mon, 9 Dec 2024 17:38:35 +0000 (17:38 +0000)]
Extend the container-up time after the tests finished

- extend it 5 mins for kpi test suit
- extend it 7 mins for endurance test suit

Issue-ID: CPS-2535

Change-Id: Ifecf2cdea67c12ff671da5f90e6715de7089e755
Signed-off-by: halil.cakal <halil.cakal@est.tech>
3 months agoSeparated inventoryFacade to Interface and Impl 08/139708/1
leventecsanyi [Tue, 3 Dec 2024 09:45:57 +0000 (10:45 +0100)]
Separated inventoryFacade to Interface and Impl

  - created NetworkCmProxyInventoryFacade IF

Issue-ID: CPS-2513
Change-Id: Ibda2d7899514ee22d4b04cad971e107bfccce2df
Signed-off-by: leventecsanyi <levente.csanyi@est.tech>
3 months agoMerge "Hazelcast Optimisation"
Toine Siebelink [Tue, 10 Dec 2024 10:21:07 +0000 (10:21 +0000)]
Merge "Hazelcast Optimisation"

3 months agoHazelcast Optimisation 03/139703/1
emaclee [Mon, 9 Dec 2024 13:00:25 +0000 (13:00 +0000)]
Hazelcast Optimisation

Issue-ID: CPS-2420
Change-Id: I707e0fbbddeb4ddc7c573a2b3ebd8fbca08126a6
Signed-off-by: emaclee <lee.anjella.macabuhay@est.tech>
3 months agoMerge "[k6] Use constant arrival rate"
Toine Siebelink [Mon, 9 Dec 2024 08:38:31 +0000 (08:38 +0000)]
Merge "[k6] Use constant arrival rate"

3 months ago[Module Sync] Store CM-handle IDs in work queue 75/139675/3
danielhanrahan [Fri, 1 Nov 2024 17:36:42 +0000 (17:36 +0000)]
[Module Sync] Store CM-handle IDs in work queue

This fixes bug CPS-2474, handling various edge cases, such as
CM handles being deleted during module sync.

- Change moduleSyncWorkQueue to store CmHandleId instead of DataNode.
- Freshly fetch Cm Handles in module sync task, so latest CM-handle
  state is used, and only process ADVISED CM handles in module sync.

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

3 months ago[k6] Use constant arrival rate 77/139677/1
danielhanrahan [Thu, 5 Dec 2024 00:06:24 +0000 (00:06 +0000)]
[k6] Use constant arrival rate

Currently, k6 KPI tests send requests using 'constant-vus' executor.
This continuously sends requests on different threads - as soon as
one request completes, another is sent. This leads to weird results
where improving performance of one operation ends up degrading other
test cases, due to more requests being sent per second.

This change makes KPI tests send requests at a constant rate,
making the mixed-load tests less prone to such anomalies.

- Send requests at constant rates for test cases 3, 4, 5, 6.
- Throughput tests 1, 2 & 7 still send at the fastest rate.
- Adjust expected performance timings.

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

3 months agoMoved common classes under the api package under api 73/139573/7
leventecsanyi [Tue, 26 Nov 2024 14:29:45 +0000 (15:29 +0100)]
Moved common classes under the api package under api

  - moved common classes under the api package
  - moved Spec files

Issue-ID: CPS-2512
Change-Id: I88046280ce359ce8cc488ad37d4e6f85406b0dbf
Signed-off-by: leventecsanyi <levente.csanyi@est.tech>
3 months agoMerge "Add persistent storage to prometheus"
Toine Siebelink [Thu, 5 Dec 2024 08:49:05 +0000 (08:49 +0000)]
Merge "Add persistent storage to prometheus"

3 months agoInventory Persistance returns YangModelCmHandles for alternate Ids 28/139628/5
seanbeirne [Mon, 2 Dec 2024 11:33:36 +0000 (11:33 +0000)]
Inventory Persistance returns YangModelCmHandles for alternate Ids

-Remove getCmHandleDataNodeByAlternateId(s) methods and replace with
Yang Model methods

Issue-ID: CPS-2486
Change-Id: I2c9c96f033b3b1eefadb7eff14c91f9a936630e6
Signed-off-by: seanbeirne <sean.beirne@est.tech>
3 months agoMerge "[BUG] Effective trust factors in DMI trust level"
Toine Siebelink [Wed, 4 Dec 2024 16:38:45 +0000 (16:38 +0000)]
Merge "[BUG] Effective trust factors in DMI trust level"

3 months agoMerge "Add tests of attribute-axis feature"
Toine Siebelink [Wed, 4 Dec 2024 15:18:33 +0000 (15:18 +0000)]
Merge "Add tests of attribute-axis feature"

3 months ago[BUG] Effective trust factors in DMI trust level 46/139646/1
danielhanrahan [Wed, 4 Dec 2024 14:37:26 +0000 (14:37 +0000)]
[BUG] Effective trust factors in DMI trust level

Effective trust of a CM handle should be the trust level of the
handle or the DMI, whichever is lower. Currently, effective trust
level of a CM handle is not reported correctly when the DMI is down,
as DMI trust level is not considered.

- Add DMI service names to NcmpServiceCmHandle
- Introduce new DmiServiceNameResolver class
- Correctly calculate effective trust level

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

3 months agoAdd persistent storage to prometheus 32/139632/5
halil.cakal [Tue, 26 Nov 2024 16:33:46 +0000 (16:33 +0000)]
Add persistent storage to prometheus

- add healthcheck to ensure prometheus service is running correctly and
restarts it if it becomes unhealthy
- set the data retention time to 30d
- update readme

Issue-ID: CPS-2466

Change-Id: I0f6186f8577e8e0113831ed040298b823e33d624
Signed-off-by: halil.cakal <halil.cakal@est.tech>
3 months agoMerge "Plot metrics for each cps-and-ncmp instance separately in Grafana"
Daniel Hanrahan [Wed, 4 Dec 2024 13:29:46 +0000 (13:29 +0000)]
Merge "Plot metrics for each cps-and-ncmp instance separately in Grafana"

3 months agoPlot metrics for each cps-and-ncmp instance separately in Grafana 43/139643/2
halil.cakal [Wed, 4 Dec 2024 10:12:02 +0000 (10:12 +0000)]
Plot metrics for each cps-and-ncmp instance separately in Grafana

- assing port range to cps-and-ncmp service to plot metrics
   separately

Issue-ID: CPS-2536

Change-Id: Ic097017bbcca25f28341e8e77f658a0a4e8964d7
Signed-off-by: halil.cakal <halil.cakal@est.tech>
3 months agoMerge "Improve test coverage trustlevel manager"
Daniel Hanrahan [Wed, 4 Dec 2024 10:38:42 +0000 (10:38 +0000)]
Merge "Improve test coverage trustlevel manager"

3 months agoMerge "Add comments to (describe) all Liquibase steps"
Daniel Hanrahan [Wed, 4 Dec 2024 09:36:23 +0000 (09:36 +0000)]
Merge "Add comments to (describe) all Liquibase steps"

4 months agoImprove test coverage trustlevel manager 41/139641/1
ToineSiebelink [Tue, 3 Dec 2024 18:29:25 +0000 (18:29 +0000)]
Improve test coverage trustlevel manager

Issue-ID: CPS-475
Change-Id: I572227b4f6c61bd2286d8cb3fb85c3dc21142a47
Signed-off-by: ToineSiebelink <toine.siebelink@est.tech>
4 months agoAdd comments to (describe) all Liquibase steps 37/139637/2
ToineSiebelink [Thu, 28 Nov 2024 11:04:40 +0000 (11:04 +0000)]
Add comments to (describe) all Liquibase steps

Issue-ID: CPS-776
Change-Id: I768da4e9d9a1e75d2cc1fa879a5237efb4c7421f
Signed-off-by: ToineSiebelink <toine.siebelink@est.tech>
4 months agoAdded performance section and updated api version 38/139638/1
mpriyank [Tue, 3 Dec 2024 16:08:25 +0000 (16:08 +0000)]
Added performance section and updated api version

- Added a performance section to the release notes
- Populated the correct info.version for NCMP and CPS Rest interfaces

Issue-ID: CPS-2537
Change-Id: Iae07da57fc45100b4d250fcfb86a95079869b221
Signed-off-by: mpriyank <priyank.maheshwari@est.tech>
4 months agoAdd tests of attribute-axis feature 88/139588/3
danielhanrahan [Mon, 2 Dec 2024 14:49:10 +0000 (14:49 +0000)]
Add tests of attribute-axis feature

Following TDD, functional acceptance tests are added for
attribute-axis feature. This covers xpaths such as '//books/@title'

- Add stub to CpsQueryService throwing UnsupportedOperationException
- Add tests showing expected behaviour (tests currently ignored)
- Implementation will be provided in following commmit for CPS-2416

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

4 months agoMerge "[Cps Path Parser] Introduce Attribute axis"
Priyank Maheshwari [Tue, 3 Dec 2024 13:26:09 +0000 (13:26 +0000)]
Merge "[Cps Path Parser] Introduce Attribute axis"

4 months agoMerge "Faster CM-handle searches using Hazelcast optimization"
Toine Siebelink [Tue, 3 Dec 2024 10:28:46 +0000 (10:28 +0000)]
Merge "Faster CM-handle searches using Hazelcast optimization"