cps.git
3 weeks agoOptimize Hazelcast usage in Trust Level Search 21/140421/2
seanbeirne [Fri, 7 Mar 2025 16:18:12 +0000 (16:18 +0000)]
Optimize Hazelcast usage in Trust Level Search

Issue-ID: CPS-2674
Change-Id: I1f2fa5dce82eefbc99906bc468c6541f0d35851b
Signed-off-by: seanbeirne <sean.beirne@est.tech>
4 weeks agoMerge "Omit decendents when resolving AlternateId"
Daniel Hanrahan [Fri, 7 Mar 2025 12:10:01 +0000 (12:10 +0000)]
Merge "Omit decendents when resolving AlternateId"

4 weeks agoMerge "Randomize cm handle ids in a legacy batch array"
Daniel Hanrahan [Thu, 6 Mar 2025 18:41:52 +0000 (18:41 +0000)]
Merge "Randomize cm handle ids in a legacy batch array"

4 weeks agoRandomize cm handle ids in a legacy batch array 93/140393/2
leventecsanyi [Thu, 6 Mar 2025 15:15:16 +0000 (16:15 +0100)]
Randomize cm handle ids in a legacy batch array

  - added new JS method to get a random list of CmHandle IDs

Issue-ID: CPS-2687
Change-Id: I3b02d4b7c03af3a05860e30b32877475b7e70dba
Signed-off-by: leventecsanyi <levente.csanyi@est.tech>
4 weeks agoFix degradation in (de)registration performance 94/140394/1
ToineSiebelink [Thu, 6 Mar 2025 11:34:08 +0000 (11:34 +0000)]
Fix degradation in (de)registration performance

- Disabled CPS notifications by default (in yaml and java)
- minor refactoring of related production code
- Improved unit test regarding notifications being enabled/disabled to get 100% coverage
- Removed now redundant test for enable/disable scenarios (2 replaced by 1 better test)

Issue-ID: CPS-2684
Change-Id: If43cd9c06c1655e1d49c70c55830c4e3a579a6d4
Signed-off-by: ToineSiebelink <toine.siebelink@est.tech>
4 weeks agoOmit decendents when resolving AlternateId 53/140353/2
seanbeirne [Wed, 19 Feb 2025 14:46:36 +0000 (14:46 +0000)]
Omit decendents when resolving AlternateId

Issue-ID: CPS-2652
Change-Id: Ifcaa62d251ab0e4c926f13180acde90a02778c74
Signed-off-by: seanbeirne <sean.beirne@est.tech>
4 weeks agoMerge "Add notes for request limitations"
Lee Anjella Macabuhay [Wed, 5 Mar 2025 16:08:44 +0000 (16:08 +0000)]
Merge "Add notes for request limitations"

4 weeks agoMerge "Use attribute-axis in NCMP [#2]"
Daniel Hanrahan [Wed, 5 Mar 2025 16:08:13 +0000 (16:08 +0000)]
Merge "Use attribute-axis in NCMP [#2]"

4 weeks agoMerge "Add APIs to control notification subscription"
Daniel Hanrahan [Wed, 5 Mar 2025 13:48:20 +0000 (13:48 +0000)]
Merge "Add APIs to control notification subscription"

4 weeks agoMerge "Configure allowed request size for Nginx"
Daniel Hanrahan [Wed, 5 Mar 2025 13:13:32 +0000 (13:13 +0000)]
Merge "Configure allowed request size for Nginx"

4 weeks agoMerge "Add conditionalProperty for DeviceTrustLevelMessageConsumer"
Daniel Hanrahan [Wed, 5 Mar 2025 13:12:24 +0000 (13:12 +0000)]
Merge "Add conditionalProperty for DeviceTrustLevelMessageConsumer"

4 weeks agoAdd notes for request limitations 79/140379/2
leventecsanyi [Tue, 4 Mar 2025 15:31:18 +0000 (16:31 +0100)]
Add notes for request limitations

Issue-ID: CPS-2673
Change-Id: Ida88320ca3a5866933ee9b2303ad6bec6885c9c2
Signed-off-by: leventecsanyi <levente.csanyi@est.tech>
4 weeks agoAdd APIs to control notification subscription 90/139790/20
rajesh.kumar [Tue, 24 Dec 2024 08:10:06 +0000 (13:40 +0530)]
Add APIs to control notification subscription

  - Add API for notification subscription
  - Add API for notification unsubscription
  - Add API for getting notification subscription information

Issue-ID: CPS-2428
Change-Id: I56c34400dc73c71b936a51260efd241224dccdba
Signed-off-by: rajesh.kumar <rk00747546@techmahindra.com>
4 weeks agoUse attribute-axis in NCMP [#2] 17/140317/4
emaclee [Thu, 27 Feb 2025 03:40:27 +0000 (03:40 +0000)]
Use attribute-axis in NCMP [#2]

- uses queryleaf API on the methods queryCmHandleAnyProperties

Issue-ID: CPS-2665
Change-Id: Ibad5888ae8ec8f23348d90d7c99871b075479e03
Signed-off-by: emaclee <lee.anjella.macabuhay@est.tech>
4 weeks agoMerge "Improved unit test related to cm handle reference lookup"
Lee Anjella Macabuhay [Tue, 4 Mar 2025 16:50:49 +0000 (16:50 +0000)]
Merge "Improved unit test related to cm handle reference lookup"

4 weeks agoImproved unit test related to cm handle reference lookup 78/140378/3
ToineSiebelink [Tue, 4 Mar 2025 15:12:32 +0000 (15:12 +0000)]
Improved unit test related to cm handle reference lookup

Issue-ID: CPS-2605
Change-Id: Iac36b4838f640fa0bb4bf6bcc41f8a72e8c3bd8e
Signed-off-by: ToineSiebelink <toine.siebelink@est.tech>
4 weeks agoMerge "Use attribute-axis in NCMP [#1]"
Daniel Hanrahan [Tue, 4 Mar 2025 12:37:32 +0000 (12:37 +0000)]
Merge "Use attribute-axis in NCMP [#1]"

4 weeks agoBump CPS to 3.6.2-SNAPSHOT 59/140359/2
egernug [Mon, 3 Mar 2025 15:36:15 +0000 (15:36 +0000)]
Bump CPS to 3.6.2-SNAPSHOT

Issue-ID: CPS-2670

Change-Id: Ida5b74651cca38749c43bd21f410ba539539d914
Signed-off-by: egernug <gerard.nugent@est.tech>
4 weeks agoContainer yaml for 3.6.1 58/140358/1
egernug [Mon, 3 Mar 2025 15:00:49 +0000 (15:00 +0000)]
Container yaml for 3.6.1

Issue-ID: CPS-2670

Change-Id: I260d97327063a7fb9d69fa7ec5df7e5d69900400
Signed-off-by: egernug <gerard.nugent@est.tech>
4 weeks agoAdding maven stage yaml 3.6.1 57/140357/1
egernug [Mon, 3 Mar 2025 14:42:36 +0000 (14:42 +0000)]
Adding maven stage yaml 3.6.1

Issue-ID: CPS-2670

Change-Id: If136f148a3762bc5bfbac92e0146844c6fb86701
Signed-off-by: egernug <gerard.nugent@est.tech>
4 weeks agoMerge "Release notes update for 3.6.1"
Priyank Maheshwari [Mon, 3 Mar 2025 14:27:51 +0000 (14:27 +0000)]
Merge "Release notes update for 3.6.1"

4 weeks agoRelease notes update for 3.6.1 54/140354/5
egernug [Mon, 3 Mar 2025 11:25:55 +0000 (11:25 +0000)]
Release notes update for 3.6.1

Issue-ID: CPS-2670

Change-Id: I525976f68f69f1f8d9bfd81788cb332fdc5303f0
Signed-off-by: egernug <gerard.nugent@est.tech>
4 weeks agoMerge "RTD update related to event schemas"
Lee Anjella Macabuhay [Mon, 3 Mar 2025 13:48:48 +0000 (13:48 +0000)]
Merge "RTD update related to event schemas"

4 weeks agoAdd conditionalProperty for DeviceTrustLevelMessageConsumer 69/140369/1
emaclee [Mon, 3 Mar 2025 12:52:13 +0000 (12:52 +0000)]
Add conditionalProperty for DeviceTrustLevelMessageConsumer

Issue-ID: CPS-2556
Change-Id: Id3be9bccdf40065794654cc414ae75a2184aebb8
Signed-off-by: emaclee <lee.anjella.macabuhay@est.tech>
4 weeks agoRTD update related to event schemas 28/140328/2
mpriyank [Fri, 28 Feb 2025 15:58:04 +0000 (15:58 +0000)]
RTD update related to event schemas

- moving the event schemas file to corresponding folder in the docs
  folder as it is in the cps-ncmp-events
- the files are updated as per the new event data schemas

Issue-ID: CPS-2645
Change-Id: Ibcc9b504c6db8a3556773eeaadebcf02f1a3bb96
Signed-off-by: mpriyank <priyank.maheshwari@est.tech>
5 weeks agoAdd CM Data Notification background Load to K6 16/140216/9
sourabh_sourabh [Thu, 13 Feb 2025 10:26:19 +0000 (10:26 +0000)]
Add CM Data Notification background Load to K6

- Implement Kafka message producer with controlled throughput
- Configured message rate to 1000 (default: 500).
- Implemented constant-arrival-rate scenario to maintain controlled throughput.
- Adjusted maxVUs from 1000 to prevent resource overload.
- Added graceful shutdown with a 10s stop period.
- Added it into main K6 suite

Issue-ID:CPS-2587
Change-Id: I75fd1fa83892fd4775b27132059f73e9c0ea4d75
Signed-off-by: sourabh_sourabh <sourabh.sourabh@est.tech>
5 weeks agoMerge "Change order of CM Handle Reference lookup depending on special character"
Sourabh Sourabh [Fri, 28 Feb 2025 14:09:27 +0000 (14:09 +0000)]
Merge "Change order of CM Handle Reference lookup depending on special character"

5 weeks agoConfigure allowed request size for Nginx 52/140352/1
leventecsanyi [Thu, 27 Feb 2025 15:12:55 +0000 (16:12 +0100)]
Configure allowed request size for Nginx

Issue-ID: CPS-2668
Change-Id: Ie7f1b2dcaa9883a40bc3e0e9c447b44ddf681f59
Signed-off-by: leventecsanyi <levente.csanyi@est.tech>
5 weeks agoChange order of CM Handle Reference lookup depending on special character 98/140298/2
seanbeirne [Thu, 20 Feb 2025 11:16:11 +0000 (11:16 +0000)]
Change order of CM Handle Reference lookup depending on special character

- implemented new algorithm using validator to rule out standard id / prefer alternate id
- moved validator imp to cps-service (not in RI) TBC!!!
- changed order of characters tested in validator to fail fast (on '=')
- added Boolean variation validator method to reduce overhead and prevent logic based on exceptions
- improved integration test to cover all scenarios
- add performance test for alternate id look up (report only)
- ensured all performance test use alternate ids it '='
- added small groovy tests to restore cps-ri code coverage to 0.31

Issue-ID: CPS-2605
Change-Id: Id9c22bb69904b7f5d376b7f8319332428435333e
Signed-off-by: ToineSiebelink <toine.siebelink@est.tech>
Signed-off-by: seanbeirne <sean.beirne@est.tech>
5 weeks agoMerge "Event data schemas for NCMP"
Lee Anjella Macabuhay [Thu, 27 Feb 2025 11:16:56 +0000 (11:16 +0000)]
Merge "Event data schemas for NCMP"

5 weeks agoUse attribute-axis in NCMP [#1] 72/140272/3
emaclee [Tue, 18 Feb 2025 17:39:02 +0000 (17:39 +0000)]
Use attribute-axis in NCMP [#1]

- uses queryleaf API on the methods getCmHandleReferencesByTrustLevel,
getCmHandleReferencesByDmiPluginIdentifier

Issue-ID: CPS-2663
Change-Id: Ib9ff3ceb58b14664660f2a92b02e0bacf00bebda
Signed-off-by: emaclee <lee.anjella.macabuhay@est.tech>
5 weeks agoEvent data schemas for NCMP 54/139954/13
mpriyank [Thu, 16 Jan 2025 13:38:52 +0000 (13:38 +0000)]
Event data schemas for NCMP

- Updated the schema id as NCMP has a master copy of all the schemas
  that are used
- Introduced an enum to keep track of the dataschemas at a single place.
- Refactored NcmpEvent builder class to take type and dataschema as a
  parameter
- Cleaned up dependencies
- Refactored testware to prove the changes
- Changes are according to the decisions recorded here https://lf-onap.atlassian.net/wiki/spaces/DW/pages/16554840/CPS-2425+Event+Schemas+in+ONAP#Agreed-Event-Schema-Names

Issue-ID: CPS-2425
Change-Id: Icbda1aa20e3c4b0f2b6797d25b59e52cf9237c92
Signed-off-by: mpriyank <priyank.maheshwari@est.tech>
5 weeks agoChange metric name for LCM state gauge 92/140292/2
emaclee [Tue, 25 Feb 2025 07:37:52 +0000 (07:37 +0000)]
Change metric name for LCM state gauge

- change gauge name from cmHandlesByState to cps_ncmp_inventory_cm_handles_by_state

Issue-id: CPS-2662
Change-Id: I97a036b155b638cd6ed94a739e3dffb7b6f00172
Signed-off-by: emaclee <lee.anjella.macabuhay@est.tech>
6 weeks agoretry before stopping in docker-compose 81/140281/1
mpriyank [Fri, 21 Feb 2025 09:48:36 +0000 (09:48 +0000)]
retry before stopping in docker-compose

- configure restart policy as on-failure and set it to restart atmost 3
  times and then give up.
- prevents infinite restart
- gives an opportunity to the app to heal on its own

Issue-ID: CPS-2647
Change-Id: I6cd0c8601060ec518df1f10bcd0dac1b97f622d8
Signed-off-by: mpriyank <priyank.maheshwari@est.tech>
6 weeks agoMerge "Handle duplicated yang resource exception when creating schema set"
Priyank Maheshwari [Thu, 20 Feb 2025 17:13:33 +0000 (17:13 +0000)]
Merge "Handle duplicated yang resource exception when creating schema set"

6 weeks agoHandle duplicated yang resource exception when creating schema set 42/140242/5
halil.cakal [Tue, 18 Feb 2025 10:24:54 +0000 (10:24 +0000)]
Handle duplicated yang resource exception when creating schema set

- catch and log duplicated yang resource during schema set creation
- there may be other exception when the app started however there will
  be a tech. dept ticket for them thus please review this commit for
   only duplicated yang resource exception

Issue-ID: CPS-2647

Change-Id: Idf6063cb8328efc667516f09d25ad6c4c6fd8186
Signed-off-by: halil.cakal <halil.cakal@est.tech>
6 weeks agoMerge "Update packaged postman collection to include all rest endpoints"
Daniel Hanrahan [Tue, 18 Feb 2025 13:32:19 +0000 (13:32 +0000)]
Merge "Update packaged postman collection to include all rest endpoints"

6 weeks agoMerge "Fix CpsSessionFactory for it to be used in prod code"
Daniel Hanrahan [Mon, 17 Feb 2025 18:32:32 +0000 (18:32 +0000)]
Merge "Fix CpsSessionFactory for it to be used in prod code"

6 weeks agoMerge "Add actuator port based on testProfile provided"
Daniel Hanrahan [Mon, 17 Feb 2025 18:30:59 +0000 (18:30 +0000)]
Merge "Add actuator port based on testProfile provided"

6 weeks agoEnable the container logs and disable the container restart for 37/140237/3
halil.cakal [Mon, 17 Feb 2025 10:15:59 +0000 (10:15 +0000)]
Enable the container logs and disable the container restart for
cps-and-ncmp

Issue-ID: CPS-2643

Change-Id: I57ba18dcaa71f4c2c5d985e9c870569e40d26880
Signed-off-by: halil.cakal <halil.cakal@est.tech>
6 weeks agoUpdate packaged postman collection to include all rest endpoints 83/140183/4
seanbeirne [Tue, 11 Feb 2025 10:46:56 +0000 (10:46 +0000)]
Update packaged postman collection to include all rest endpoints

- Bumped dmi version used by docker

Issue-ID: CPS-2504
Change-Id: I7b61aa692432ae79fc26b1c93f7f8a9981d9bcdd
Signed-off-by: seanbeirne <sean.beirne@est.tech>
6 weeks agoAdd actuator port based on testProfile provided 27/140227/3
mpriyank [Fri, 14 Feb 2025 16:08:41 +0000 (16:08 +0000)]
Add actuator port based on testProfile provided

- kpi uses 8883 port for healthcheck and endurance profile uses 8884
  port.

Issue-ID: CPS-2642
Change-Id: I0ee63f14e30141d894eb0e8b9a646a3e4112dac8
Signed-off-by: mpriyank <priyank.maheshwari@est.tech>
6 weeks agoFix CpsSessionFactory for it to be used in prod code 18/140218/4
mpriyank [Thu, 13 Feb 2025 11:16:44 +0000 (11:16 +0000)]
Fix CpsSessionFactory for it to be used in prod code

- Injecting SessionFactory bean from the spring container instead of
  manually creating it.
- Removing explicit addition of Annotated class as anyways the classes
  are Entity classes and added to the metadata. So no need to add it
  explicitly
- also removing the unused hibernate config file

Issue-ID: CPS-2629
Change-Id: Ife2ae3828d009893de70d9c755d6a07cef2f8d07
Signed-off-by: mpriyank <priyank.maheshwari@est.tech>
7 weeks agoMerge "Realistic Examples: NCMP Open API and Doc"
Daniel Hanrahan [Fri, 14 Feb 2025 13:06:01 +0000 (13:06 +0000)]
Merge "Realistic Examples: NCMP Open API and Doc"

7 weeks agoMerge "Add healthchecks for docker-compose for k6 and CSIT"
Sourabh Sourabh [Fri, 14 Feb 2025 11:55:26 +0000 (11:55 +0000)]
Merge "Add healthchecks for docker-compose for k6 and CSIT"

7 weeks agoMerge "Fix WriteSubJobSpec test to support Windows"
Priyank Maheshwari [Fri, 14 Feb 2025 10:55:20 +0000 (10:55 +0000)]
Merge "Fix WriteSubJobSpec test to support Windows"

7 weeks agoRealistic Examples: NCMP Open API and Doc 24/140124/5
sourabh_sourabh [Fri, 31 Jan 2025 18:04:17 +0000 (18:04 +0000)]
Realistic Examples: NCMP Open API and Doc

- Updated resourceIdentifier query parameter to align with GNBDUFunctionConfig structure.
- Added examples for querying all GNBDUFunctions, specific gNB IDs, and sub-resources like RIM-RS reporting configurations.

Issue-ID: CPS-2483
Change-Id: Ibdd93f51debdd797e8cc809774b703c342052559
Signed-off-by: sourabh_sourabh <sourabh.sourabh@est.tech>
7 weeks agoAdd healthchecks for docker-compose for k6 and CSIT 38/138838/16
danielhanrahan [Thu, 22 Aug 2024 16:39:58 +0000 (17:39 +0100)]
Add healthchecks for docker-compose for k6 and CSIT

To improve reliability and consistency of healthchecks in
k6 and CSIT tests, they are implemented in docker-compose.
This commit adds fail-fast logic, where k6 and CSITs will
abort immediately if the containers won't start.

Implementation:
- Add healthchecks for docker containers used in tests.
- Change k6 & CSIT tests to use docker healthchecks.
- Tests will abort if containers are not healthy.
- Start-up timeout for CPS containers is 90 seconds
- Start-up timeout for other containers is 60 seconds

Other Improvements:
- Add --quiet-pull option to suppress junk output in Jenkins logs.
- Add kpi.env file containing environment variables for KPI pipeline,
  just like endurance.env. This allows same code to run either suite.
- Changed from port range to port number for Postgres exporter, since
  only a single instance runs, to be consistent with other containers

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

7 weeks agoFix WriteSubJobSpec test to support Windows 14/140214/1
egernug [Thu, 13 Feb 2025 10:19:19 +0000 (10:19 +0000)]
Fix WriteSubJobSpec test to support Windows

- Added to test to support Windows/Kubernetes network resolution by MockWebServer

Issue-ID: CPS-2641

Change-Id: I1bfe1db66438bbbf7df9e94c8d42cfe84d68b220
Signed-off-by: egernug <gerard.nugent@est.tech>
7 weeks agoStore yang resources with recommended RFC-6020 file-name 12/140212/2
ToineSiebelink [Tue, 11 Feb 2025 18:44:48 +0000 (18:44 +0000)]
Store yang resources with recommended RFC-6020 file-name

- Ignore input filename and create filename from module name and revision
- added integration test to verify names and edge cases (before and after change)
- Some code cleanup (vars etc)
- Implemented NB comments from last merge(https://gerrit.onap.org/r/c/cps/+/140180)
- fixed SQ warning
Out of scope:
- BLANK revision, test it but failed in ODL Yang Parser and many other places: not supported!

Issue-ID: CPS-138
Change-Id: I6fe6d0f8f3683196b183c6e6582ad8eefdfbb7d7
Signed-off-by: ToineSiebelink <toine.siebelink@est.tech>
7 weeks agoMerge "Change Datajob Status return value"
Priyank Maheshwari [Wed, 12 Feb 2025 12:31:59 +0000 (12:31 +0000)]
Merge "Change Datajob Status return value"

7 weeks agoChange Datajob Status return value 84/140184/2
egernug [Tue, 11 Feb 2025 10:45:59 +0000 (10:45 +0000)]
Change Datajob Status return value

- Change to return entire JSON object instead of status string

Issue-ID: CPS-2613

Change-Id: I63d8a9d078f003fc06e301bf9921f7942b3603ab
Signed-off-by: egernug <gerard.nugent@est.tech>
7 weeks agoMerge "Query data nodes with limit"
Toine Siebelink [Tue, 11 Feb 2025 17:35:40 +0000 (17:35 +0000)]
Merge "Query data nodes with limit"

7 weeks agoQuery data nodes with limit 80/140180/5
leventecsanyi [Thu, 6 Feb 2025 14:26:11 +0000 (15:26 +0100)]
Query data nodes with limit

  - added new methods to java interfaces
  - added integration test
  - removed unused methods

Issue-ID: CPS-2394
Change-Id: Iac4094a5daedbf593d17f55928136a80391c6d23
Signed-off-by: leventecsanyi <levente.csanyi@est.tech>
8 weeks agoFix for intermittent failures of module sync tests 73/140173/2
danielhanrahan [Fri, 7 Feb 2025 14:25:05 +0000 (14:25 +0000)]
Fix for intermittent failures of module sync tests

- Removed PollingConditions as ModuleSyncWatchdog is now synchronous
- Use Hazelcast IMap::delete instead of IMap::removeAsync to fix root
  cause of test failures: removeAsync may not be finished when module
  sync is re-run during tests.

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

8 weeks agoDisallow docker-compose to use swap space 72/140172/1
halil.cakal [Fri, 7 Feb 2025 14:41:39 +0000 (14:41 +0000)]
Disallow docker-compose to use swap space

- if swap memory is active on any host, the docker-compose will add it
  on top of JVM process memory. This will exceed the total memory
   reservation of the container, eventually cause restart.
- swap limit can not be lower than the total memory limit, thus given
  3G. this will disallow docker-compose to use swap space

Issue-ID: CPS-2628

Change-Id: I01bd4a1fd3f4e894fe8236bbc38cd7718fb0b6fb
Signed-off-by: halil.cakal <halil.cakal@est.tech>
8 weeks agoMerge "Remove the profile from postgres-exporter service"
Daniel Hanrahan [Thu, 6 Feb 2025 16:55:47 +0000 (16:55 +0000)]
Merge "Remove the profile from postgres-exporter service"

8 weeks agoMerge "Fix duplicated yang resource references V2"
Daniel Hanrahan [Thu, 6 Feb 2025 16:31:29 +0000 (16:31 +0000)]
Merge "Fix duplicated yang resource references V2"

8 weeks agoFix duplicated yang resource references V2 43/140143/4
ToineSiebelink [Tue, 4 Feb 2025 18:30:20 +0000 (18:30 +0000)]
Fix duplicated yang resource references V2

- Store Yang module references using SchemaSetEntity instead of SQL
- Added integration test to check number of references
- Update dispatcher for integration test to only return yang resources requested modules
- refactor schema set create & upgrade methods for better re-uses and readability
- consistent naming in related methods like(new)yangResourceContentPerName
(the name can be filename, module name or schema set name) depending on the context
- replaced 'var' with actual class names in affected classes

Issue-ID: CPS-2605
Change-Id: I8870c70832ac533bd17ce8af409a071f659e4acf
Signed-off-by: ToineSiebelink <toine.siebelink@est.tech>
8 weeks agoRemove the profile from postgres-exporter service 62/140162/1
halil.cakal [Thu, 6 Feb 2025 14:17:31 +0000 (14:17 +0000)]
Remove the profile from postgres-exporter service

- The profile 'monitoring' prevents postgres-exporter service to run for
  both kpi and endurance pipelines. As a result, the postgres dashboard
   does not work on Nordix Grafana.

Issue-ID: CPS-2585

Change-Id: I272ab609c60094bb347ef405787679860cc43595
Signed-off-by: halil.cakal <halil.cakal@est.tech>
8 weeks agoMerge "Add Hikari dashboard to Grafana"
Daniel Hanrahan [Thu, 6 Feb 2025 11:22:36 +0000 (11:22 +0000)]
Merge "Add Hikari dashboard to Grafana"

8 weeks agoMerge "Remove multithreading from module sync watchdog"
Toine Siebelink [Wed, 5 Feb 2025 18:17:54 +0000 (18:17 +0000)]
Merge "Remove multithreading from module sync watchdog"

8 weeks agoUpdate deployment docs with minimum requirements 55/140155/1
danielhanrahan [Wed, 5 Feb 2025 16:36:14 +0000 (16:36 +0000)]
Update deployment docs with minimum requirements

- Add minimum CPU and Memory Requirements for NCMP to the
  deployment documentation, for both 20K and 50K use-cases.
- Updated recommended heap allocation to 70%, based on
  analysis of JVM Process Memory metric in Grafana.

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

8 weeks agoAdd Hikari dashboard to Grafana 54/140154/2
halil.cakal [Wed, 5 Feb 2025 13:30:24 +0000 (13:30 +0000)]
Add Hikari dashboard to Grafana

- hikari dashboard will insight into db connection pool such as
  connection count e.g. min, max, and idle.
- change coloring for some panel from JVM dashboard
- add tags to the dashboards

Issue-ID: CPS-2592

Change-Id: Ibfb49ab5c1e338d04a7c8f18a413b5db7b8d5ad7
Signed-off-by: halil.cakal <halil.cakal@est.tech>
8 weeks agoMerge "Change event topic name for trust level"
Daniel Hanrahan [Wed, 5 Feb 2025 13:52:34 +0000 (13:52 +0000)]
Merge "Change event topic name for trust level"

8 weeks agoMerge "Organise NCMP & CPS Event Schema Folders"
Priyank Maheshwari [Tue, 4 Feb 2025 16:58:43 +0000 (16:58 +0000)]
Merge "Organise NCMP & CPS Event Schema Folders"

8 weeks agoMerge "Fix deprecation issue related to KafkaContainer"
Daniel Hanrahan [Tue, 4 Feb 2025 16:46:41 +0000 (16:46 +0000)]
Merge "Fix deprecation issue related to KafkaContainer"

8 weeks agoMerge "Simple implementation of attribute-axis"
Lee Anjella Macabuhay [Tue, 4 Feb 2025 16:46:33 +0000 (16:46 +0000)]
Merge "Simple implementation of attribute-axis"

8 weeks agoMerge "Realistic Examples: K6 Test-ware"
Toine Siebelink [Tue, 4 Feb 2025 16:43:38 +0000 (16:43 +0000)]
Merge "Realistic Examples: K6 Test-ware"

8 weeks agoMerge "Enable filtering by instance"
Lee Anjella Macabuhay [Tue, 4 Feb 2025 14:39:00 +0000 (14:39 +0000)]
Merge "Enable filtering by instance"

8 weeks agoIncrease initial module processing delay to 3 mins 39/140139/1
danielhanrahan [Tue, 4 Feb 2025 12:09:41 +0000 (12:09 +0000)]
Increase initial module processing delay to 3 mins

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

8 weeks agoSimple implementation of attribute-axis 37/140137/1
danielhanrahan [Wed, 4 Dec 2024 23:17:36 +0000 (23:17 +0000)]
Simple implementation of attribute-axis

This minimally implements attribute-axis using existing
queryDataNodes API. Acceptance tests are un-ignored now.

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

8 weeks agoRemove multithreading from module sync watchdog 34/140134/1
danielhanrahan [Wed, 29 Jan 2025 18:35:15 +0000 (18:35 +0000)]
Remove multithreading from module sync watchdog

After introduction of module set tag improvements, there is no need
to multithreading in module sync. Performance impact is minimal.

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

2 months agoRealistic Examples: K6 Test-ware 52/140052/2
sourabh_sourabh [Mon, 27 Jan 2025 13:58:35 +0000 (13:58 +0000)]
Realistic Examples: K6 Test-ware

- resourceIdentifiers must be url encoded fdns from ManagedElement.
  e.g.: ManagedElement=NRNode1/GNBDUFunction=1/NRCellDU=cell1

- resourceIdentifer refers to the object where the search starts from.
  This request will search for NRCellDUs and return their cellLocalId.
  The resourceIdentifier should be: ManagedElement=NRNode1/GNBDUFunction=1

Issue-ID: CPS-2482
Change-Id: Ic6ac360c71fcfc80f27367b626ad85d40a58a292
Signed-off-by: sourabh_sourabh <sourabh.sourabh@est.tech>
2 months agoEnable filtering by instance 23/140123/1
halil.cakal [Fri, 31 Jan 2025 16:45:37 +0000 (16:45 +0000)]
Enable filtering by instance

- if kpi and endurance suits runing together at the same time,
   instance flag will help to filter either of them. otherwise the
    stats for both suits will be visible on a single plot together.

Issue-ID: CPS-2585

Change-Id: I422adb0afd3a618c477989a9396636f63808c275
Signed-off-by: halil.cakal <halil.cakal@est.tech>
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 agoFix deprecation issue related to KafkaContainer 17/140117/1
mpriyank [Thu, 30 Jan 2025 16:37:18 +0000 (16:37 +0000)]
Fix deprecation issue related to KafkaContainer

- Replaced KafkaContainer with ConfluentKafkaContainer to fix the
  deprecation issue
- Bumped the version of cp-kafka and cp-zookeeper to 7.8.0
- Removing reference of registry.nordix as the NCMP internal pipeline is no
  longer used

Issue-ID: CPS-2608
Change-Id: Ic1f3edbc06d63c5f00c1ecb901e07a6bc17ae6eb
Signed-off-by: mpriyank <priyank.maheshwari@est.tech>
2 months agoAdd new dashboard to monitor some of the stats of PostgreSQL 09/140109/3
halil.cakal [Wed, 29 Jan 2025 13:24:02 +0000 (13:24 +0000)]
Add new dashboard to monitor some of the stats of PostgreSQL

- add postgres-exporter service to expose postgresql db metrics to prometheus
- add new job scraper to prometheus for both kpi and endurance jobs
- add new dashboard: postgresql-statistics to the grafana

Issue-ID: CPS-2585

Change-Id: Ia7ede41d00364918b1054d9b5a38e2feea4fc8e5
Signed-off-by: halil.cakal <halil.cakal@est.tech>
2 months agoMerge "Add Data dashboard to Grafana"
Daniel Hanrahan [Thu, 30 Jan 2025 15:46:35 +0000 (15:46 +0000)]
Merge "Add Data dashboard to Grafana"

2 months agoRemove deprecated Rest endpoints for hazelcast health 15/140115/1
mpriyank [Thu, 30 Jan 2025 14:24:28 +0000 (14:24 +0000)]
Remove deprecated Rest endpoints for hazelcast health

- removing the hazelcast cluster rest health check endpoints

Issue-ID: CPS-2612
Change-Id: I01ad0e4b4d8ad99ce7a6e4e4dc0f0a8272d39227
Signed-off-by: mpriyank <priyank.maheshwari@est.tech>
2 months agoBump CPS-NCMP to 3.6.1-SNAPSHOT 10/140110/1
mpriyank [Wed, 29 Jan 2025 17:20:37 +0000 (17:20 +0000)]
Bump CPS-NCMP to 3.6.1-SNAPSHOT

Issue-ID: CPS-2610
Change-Id: I289fcbdc2df1de6d369cc6e01bdad26ec174b08f
Signed-off-by: mpriyank <priyank.maheshwari@est.tech>
2 months agoMerge "Add container yaml"
Lee Anjella Macabuhay [Wed, 29 Jan 2025 17:01:44 +0000 (17:01 +0000)]
Merge "Add container yaml"

2 months agoAdd container yaml 08/140108/1
mpriyank [Wed, 29 Jan 2025 16:38:31 +0000 (16:38 +0000)]
Add container yaml

Issue-ID: CPS-2610
Change-Id: I2843e60ba07dcc02ce01ee35e4c6d6abf677bfcb
Signed-off-by: mpriyank <priyank.maheshwari@est.tech>
2 months agoAdding maven stage yaml 07/140107/1
mpriyank [Wed, 29 Jan 2025 16:35:24 +0000 (16:35 +0000)]
Adding maven stage yaml

Issue-ID: CPS-2610
Change-Id: I30397648316bddfd412b9d532e14bcca2eaba9b8
Signed-off-by: mpriyank <priyank.maheshwari@est.tech>
2 months agoMerge "Release notes update for 3.6.0"
Lee Anjella Macabuhay [Wed, 29 Jan 2025 16:19:37 +0000 (16:19 +0000)]
Merge "Release notes update for 3.6.0"

2 months agoMerge "Add "dataProducerId" and "dmiServiceName" values to SubJobWriteResponse in...
Lee Anjella Macabuhay [Wed, 29 Jan 2025 15:59:30 +0000 (15:59 +0000)]
Merge "Add "dataProducerId" and "dmiServiceName" values to SubJobWriteResponse in sendRequestsToDmi method"

2 months agoRelease notes update for 3.6.0 06/140106/1
mpriyank [Wed, 29 Jan 2025 15:47:18 +0000 (15:47 +0000)]
Release notes update for 3.6.0

Issue-ID: CPS-2610
Change-Id: Iaa0997bb20acabb69933afa61618ff3d48f1c88f
Signed-off-by: mpriyank <priyank.maheshwari@est.tech>
2 months agoAdd "dataProducerId" and "dmiServiceName" values to SubJobWriteResponse in sendReques... 05/140005/4
egernug [Mon, 13 Jan 2025 10:16:34 +0000 (10:16 +0000)]
Add "dataProducerId" and "dmiServiceName" values to SubJobWriteResponse in sendRequestsToDmi method

- DMI call only returns subJobId
- SubJobWriteResponse created using DMI response and request values

Issue-ID: CPS-2497

Change-Id: Ib38132f2337de6a12b0b05bc6eebeed99f8d435d
Signed-off-by: egernug <gerard.nugent@est.tech>
2 months agoAddress sonar violations related to hazelcast 05/140105/3
mpriyank [Wed, 29 Jan 2025 09:12:40 +0000 (09:12 +0000)]
Address sonar violations related to hazelcast

- Supressing warning caused by deprecation of RestApiConfig in hazelcast
  5.5 community version , which will be removed in 6.0 so created https://lf-onap.atlassian.net/browse/CPS-2599
  to address the issues
- Other sonar fixes

Issue-ID: CPS-2594
Change-Id: I2e95cd851eae74d8bbb4535cfbaed1dc1ef89543
Signed-off-by: mpriyank <priyank.maheshwari@est.tech>
2 months agoMerge "RTD Updates for Policy Executor Integration"
Sourabh Sourabh [Tue, 28 Jan 2025 16:15:19 +0000 (16:15 +0000)]
Merge "RTD Updates for Policy Executor Integration"

2 months agoMerge "Send new module set tag to DMI during model upgrade"
Daniel Hanrahan [Tue, 28 Jan 2025 15:00:33 +0000 (15:00 +0000)]
Merge "Send new module set tag to DMI during model upgrade"

2 months agoMerge "Moved CpsValidator under the utils package"
Daniel Hanrahan [Tue, 28 Jan 2025 10:33:07 +0000 (10:33 +0000)]
Merge "Moved CpsValidator under the utils package"

2 months agoSend new module set tag to DMI during model upgrade 95/140095/1
danielhanrahan [Mon, 27 Jan 2025 16:55:10 +0000 (16:55 +0000)]
Send new module set tag to DMI during model upgrade

Previously, DMI would receive old module set tag in the
request body. The tag being upgrade to is the expected one.

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

2 months agoRTD Updates for Policy Executor Integration 53/140053/2
ToineSiebelink [Thu, 23 Jan 2025 11:30:14 +0000 (11:30 +0000)]
RTD Updates for Policy Executor Integration

- Updated page describing Policy Executor feature
- Updated deployment page, added config parameters for Policy Executor
- Corrected release note: Jira for Policy Executor should not have been included before
- Clean up release note: removed redundant version mentioning
- Clean up tables on deployment page: removed redundant empty lines

Issue-ID: CPS-2443
Change-Id: I5750868b6c29e9de29cd08521b8efffff4f37eaf
Signed-off-by: ToineSiebelink <toine.siebelink@est.tech>
2 months agoMoved CpsValidator under the utils package 62/140062/1
leventecsanyi [Mon, 27 Jan 2025 16:58:35 +0000 (17:58 +0100)]
Moved CpsValidator under the utils package

Issue-ID: CPS-2515
Change-Id: I57f6c10c8596281aed686552ad16e1dd6c15ff98
Signed-off-by: leventecsanyi <levente.csanyi@est.tech>
2 months agoChange event topic name for trust level 95/139995/7
emaclee [Wed, 22 Jan 2025 08:38:13 +0000 (08:38 +0000)]
Change event topic name for trust level

- Seperate inventory related topics to cm data event topic

Issue-ID: CPS-2500
Change-Id: I41a2cda78568f9979fc9f030f076c295c8d6908b
Signed-off-by: emaclee <lee.anjella.macabuhay@est.tech>
2 months agoLess logging during registration 22/140022/1
danielhanrahan [Fri, 24 Jan 2025 15:40:13 +0000 (15:40 +0000)]
Less logging during registration

During investigation of CPS-2576 bug, stack traces were added to log
output (by logging the exception object). This produces massive log
output during registration, since all CM-handles fail to sync and go
to LOCKED state initially due to initial DMI delay.

This patch logs exception details at warning level but not stacktrace

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

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 agoAdd Data dashboard to Grafana 20/140020/1
halil.cakal [Fri, 24 Jan 2025 10:34:30 +0000 (10:34 +0000)]
Add Data dashboard to Grafana

- data dashboard for NCMP Data operations
  (NetworkCmProxyController.java)

Issue-ID: CPS-2537

Change-Id: Ic518e9169057691702d0d760468e114f5a9fbd7d
Signed-off-by: halil.cakal <halil.cakal@est.tech>