summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2024-10-04Revert "[1/2] Move Swagger API to docs folder"Lee Anjella Macabuhay12-910/+2428
This reverts commit b76392e2d1629d4eb67b10c450cdd954ef678966. Reason for revert: Release blocker Change-Id: Ic477dbaaad34992c8f440981d92f12b977cdf96e Signed-off-by: emaclee <lee.anjella.macabuhay@est.tech>
2024-10-03Revert "Fix inputSpec for openapi code gen"Lee Anjella Macabuhay1-2/+2
This reverts commit 4baa75b06dcfb9365a8ea5cde03d77d7f21fa01c. Reason for revert: Release blocker Change-Id: I6156461de64dcec41e3f84cbd0cf90f63938bea6 Signed-off-by: emaclee <lee.anjella.macabuhay@est.tech>
2024-10-03Revert "CI: Add test (silent) checkov scan as part of the verify process"Jessica Wagantall1-151/+0
This reverts commit c8e2b3383830395bb4bc37371a9c6119a316cb53. Issue-ID: CIMAN-33 Change-Id: I5120097ad05394e3667a868c4b7edd44ef1aa070 Signed-off-by: Jessica Wagantall <jwagantall@linuxfoundation.org>
2024-10-03Update JIRA and Wiki links host name from wiki.onap.org to lf-onap.atlassian.netsourabh_sourabh10-248/+248
Issue-ID: CPS-2432 Change-Id: I53f380a4fe0968d1ec9f1393651c7c43f03d0d95 Signed-off-by: sourabh_sourabh <sourabh.sourabh@est.tech>
2024-09-30Merge "BugFix: 500 Server error when upgrade and service restart with data ↵Sourabh Sourabh2-1/+6
in DB"
2024-09-27Fix inputSpec for openapi code genegernug1-2/+2
Existing inputSpec only accessible from cps root. Changing path to be accessible elsewhere Issue-ID: CPS-2332 Change-Id: I94ada93ea3c88d2fdca84d49c21e1ffc2923f4b2 Signed-off-by: egernug <gerard.nugent@est.tech>
2024-09-26Merge "[1/2] Move Swagger API to docs folder"Toine Siebelink12-2428/+910
2024-09-25CI: Add test (silent) checkov scan as part of the verify processJessica Wagantall1-0/+151
Issue-ID: CIMAN-33 Change-Id: I70b171824acb913f67fd28c119bfbcbc1cc1e470 Signed-off-by: Jessica Wagantall <jwagantall@linuxfoundation.org>
2024-09-25BugFix: 500 Server error when upgrade and service restart with data in DBhalil.cakal2-1/+6
- return NONE for get effective trust level api if the trustlevel caches empty (restart case) Issue-ID: CPS-2409 Change-Id: I72a755ca6ba5d4a78f5458a235c0d1f43aaa8d53 Signed-off-by: halil.cakal <halil.cakal@est.tech>
2024-09-25Merge "[k6] CM handles searches using different filters"Priyank Maheshwari4-30/+181
2024-09-25Policy Executor: handle errorsToineSiebelink10-45/+147
- configurable default answer - apply default answer upon non 2xx response - delayed default webclient read timeout - add custom timeout method with original read timeout in seconds - apply default answer upon timeout - add integration test with short timeout error scenario Issue-ID: CPS-2412 Change-Id: I62527a27e426c2f01fda2182ebd2513242c29ac1 Signed-off-by: ToineSiebelink <toine.siebelink@est.tech>
2024-09-24Remove Hazelcast cache for prefix resolver (CPS-2417 #2)danielhanrahan13-349/+27
This patch removes the AnchorDataCache from CPS, which is used for prefix resolution in get/query operations. As such, Hazelcast is no longer a dependency of CPS, only NCMP. - Changed PrefixResolver to be more efficient. - Removed AnchorDataCache and associated classes. - Moved HazelcastCacheConfig to NCMP. - Removed Hazelcast dependency from cps-service/pom.xml This shows good performance improvements in some APIs such as v2 GET which is nearly 2x faster (also 5x faster including base patch). Issue-ID: CPS-2417 Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech> Change-Id: I24768469f24e90b70f7a6187faa4f5b3d75777d2
2024-09-24Fix intermittent error in integration testToineSiebelink1-1/+2
- make collection verification order independent Issue-ID: CPS-475 Change-Id: Ib070fd5360463c93ba6193a84a1dfcd11cd802fa Signed-off-by: ToineSiebelink <toine.siebelink@est.tech>
2024-09-24Merge "Reduce anchor lookups related to PrefixResolver (CPS-2417 #1)"Toine Siebelink7-43/+46
2024-09-24Merge "Revert "Correctly report trust level if DMI is down""Daniel Hanrahan7-36/+64
2024-09-24[k6] CM handles searches using different filtersdanielhanrahan4-30/+181
Each 5 VUs for searches uses a different filter: no filter, module, property, cps path, and trust level. This is needed since each search may have different performance. This also helps reduce load versus doing a combined module and property search all the time. Issue-ID: CPS-2349 Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech> Change-Id: I33a75260f97697d2061d10b80ba7eeb2f6c346f5
2024-09-24Reduce anchor lookups related to PrefixResolver (CPS-2417 #1)danielhanrahan7-43/+46
Instead of looking up same Anchor many times inside a for-loop, do it once outside the loop. This greatly improves performance in some cases, such as v2 GET API: - /cps/api/v2/dataspaces/{dataspace}/anchors/{anchor}/node Testing shows 3x faster response time. Issue-ID: CPS-2417 Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech> Change-Id: I80d97d8cc24372eed70626ed840cad985cbe0a4b
2024-09-24Revert "Correctly report trust level if DMI is down"danielhanrahan7-36/+64
This reverts commit https://gerrit.onap.org/r/c/cps/+/138853 Reason for revert: Commit caused performance issues in CM handle search Manual rebase was required to integrate changes for alternate-id support made since original commit was merged. Issue-ID: CPS-2375 Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech> Change-Id: I5ef743ea053589fa17c10587317a3534c2714c4b
2024-09-24Merge "Make nginx load balance using least-connections"Toine Siebelink1-1/+3
2024-09-19Retry mechanism (with back off algorithm) is removed with more frequent ↵sourabh_sourabh7-193/+115
watchdog poll - Increased watchdog frequency for locked cm handle. - Removed retry backoff algorithm for locked cm handle. Issue-ID: CPS-2395 Change-Id: I54d0ec8f9de53a7d181639c14aaaa93736f03e19 Signed-off-by: sourabh_sourabh <sourabh.sourabh@est.tech>
2024-09-19Make nginx load balance using least-connectionsdanielhanrahan1-1/+3
By default, nginx uses round robin for load balancing. Round robin works well when all requests take same amount of time, but is not optimal for dynamic loads. With least-connected load balancing, nginx will try not to overload a busy server with excessive requests, sending requests to a less busy server instead. Issue-ID: CPS-2415 Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech> Change-Id: I0e7d6b36a79aa6541f2f5f667746f2792d55e54b
2024-09-19Merge "[Cps Path Parser] Fixes for parent path & normalization"Lee Anjella Macabuhay4-46/+75
2024-09-19Merge "Change execution order of the legacy async batch read operation in k6 ↵Daniel Hanrahan1-2/+3
suite"
2024-09-18Change execution order of the legacy async batch read operation in k6 suitehalil.cakal1-2/+3
- run the test after the parallel cases - add 30 seconds safe-period of time waiting for completion of active threads (remained from previous test cases) Issue-ID: CPS-2414 Change-Id: I1260b37cd4f1974eebcccf867b36172b407a9646 Signed-off-by: halil.cakal <halil.cakal@est.tech>
2024-09-18[1/2] Move Swagger API to docs folderegernug12-2428/+910
Code generation moved to docs folder for cps-core Issue-ID: CPS-2332 Change-Id: I9a8c5007a3039e0f46114c589de0756d6de91127 Signed-off-by: egernug <gerard.nugent@est.tech>
2024-09-18[Cps Path Parser] Fixes for parent path & normalizationdanielhanrahan4-46/+75
This commit fixes issues with Cps Path Parser related to path normalization and parent path generation when using descendant paths and ancestor axis. Issue-ID: CPS-2365 Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech> Change-Id: I728fc379b134bd62c39a7085650930450c8a8597
2024-09-18Merge "Refactored cps-ri package structure"Sourabh Sourabh62-298/+295
2024-09-17Refactored cps-ri package structureleventecsanyi62-298/+295
- fixed import order and moved package structure Issue-ID: CPS-2293 Change-Id: Ie2f9f057f261577054530feee7480850ba4b41e1 Signed-off-by: leventecsanyi <levente.csanyi@est.tech>
2024-09-17Merge "Policy Executor API: Add Prefix in Yaml"Sourabh Sourabh8-34/+25
2024-09-17Policy Executor API: Add Prefix in YamlToineSiebelink8-34/+25
- Remove servers from yaml. - Add prefix to path in yaml. - Remove basepath prefix from Controller Impl. - Added policy server port to 8093. - Exposed docker env. vars for policy services. Issue-ID: CPS-2291 Change-Id: Idcc9e23f9d63bad2480537dc8d39523fe82b4b83 Signed-off-by: ToineSiebelink <toine.siebelink@est.tech> Signed-off-by: sourabh_sourabh <sourabh.sourabh@est.tech>
2024-09-16Merge "Fix violation reported by sonarqube"Lee Anjella Macabuhay2-2/+1
2024-09-13Fix violation reported by sonarqubehalil.cakal2-2/+1
Issue-ID: CPS-89 Change-Id: Ia6e3bb26ffb433f3610f53f408fad12489f2e3b3 Signed-off-by: halil.cakal <halil.cakal@est.tech>
2024-09-13Add CPS limit to the plotshalil.cakal1-16/+16
- as of now the cps limits given manually according to the latest result - there will be another commit will change the plot job in cicd repo to reflect the values on the plots Issue-ID: CPS-2350 Change-Id: Ic371f46894f1825dca1d26ec65ae0f62aa06c327 Signed-off-by: halil.cakal <halil.cakal@est.tech>
2024-09-12Calculate throughput for legacy batch read data operationshalil.cakal3-53/+66
- stress the cps-and-ncmp module for batch read data operation - for this aim use shared-ireations during async http request - as parallel to this, consume expected number of messages as fast as possible Issue-ID: CPS-2268 Change-Id: I1b6724479dac7391cbb6407fda52d15176aa8985 Signed-off-by: halil.cakal <halil.cakal@est.tech>
2024-09-11Merge "Renaming Delta Operations as per RFC 9144"Priyank Maheshwari11-50/+50
2024-09-10[k6] Fix incorrect results when errors occur in k6 tests (case 2)egernug1-1/+5
De-registration is reported as 200,000 handles per second if all operations fail - Added a running total for successful de-registrations of CM Handles Issue-ID: CPS-2346 Change-Id: Ib4302d3b605ff1eaf4ecadac11b4e851a69210df Signed-off-by: egernug <gerard.nugent@est.tech>
2024-09-10Merge "Fix high-cardinality metrics in k6, causing high memory use"Toine Siebelink4-58/+101
2024-09-10Merge "Uplift liquibase-core to 4.29.0"Toine Siebelink1-1/+1
2024-09-10Merge "NCMP should not use CPS SPI classes"Toine Siebelink6-52/+52
2024-09-10Renaming Delta Operations as per RFC 9144Arpit Singh11-50/+50
RFC 9144 recommends naming convention for operations that can be performed on any datastore. The recommended names are: - create - remove - replace Whereas in CPS Delta feature these operaitions were named: - add - remove - update So, "add" and "update" operations have been changed to "create" and "replace" respectively. Issue-ID: CPS-2393 Change-Id: Ie39f5f8ccc91e96cf484ca7fbc833a6be8758054 Signed-off-by: Arpit Singh <as00745003@techmahindra.com>
2024-09-10Fix high-cardinality metrics in k6, causing high memory usesourabh_sourabh4-58/+101
- Added unique IDs as metric tags for all the endpoints. - Re-arranged order of public and prive js methods. Issue-ID: CPS-2331 Change-Id: Ib876a647fb35110c50670c7222986e8a8a6f5ca0 Signed-off-by: sourabh_sourabh <sourabh.sourabh@est.tech>
2024-09-09Uplift liquibase-core to 4.29.0mpriyank1-1/+1
- uplift liquibase-core to 4.29.0 to resolve the internal licensing issue Issue-ID: CPS-2392 Change-Id: Ia06bbb095a480c910d0df3d23ac719a746508856 Signed-off-by: mpriyank <priyank.maheshwari@est.tech>
2024-09-06Refactor FragmentQueryBuilderdanielhanrahan1-79/+89
This is a refactoring of FragmentQueryBuilder, there are no functional changes. This refactoring is needed before main patch of CPS-2365. Issue-ID: CPS-2365 Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech> Change-Id: I648616159719e084ba0e7cb4b09649cd17560cab
2024-09-05NCMP should not use CPS SPI classesdanielhanrahan6-52/+52
CpsDataPersistenceService is an internal interface of CPS, part of the SPI, intended only to be used by CPS. Instead, NCMP should use the public API of CPS, i.e. CpsDataService and CpsQueryService. This is an architectural issue, but it will affect upcoming changes, where changes to the SPI implementation should not affect public API. Issue-ID: CPS-2398 Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech> Change-Id: I89339e1a3566a25e33168c24c8b8401ca52224e9
2024-09-05[k6] Minor correction to plot titlesdanielhanrahan1-2/+2
Plot title say Module filter instead of Module and Property. Issue-ID: CPS-2349 Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech> Change-Id: Ie23080a6085960b89132ad38d07d0c2b6f12471b
2024-09-05Merge "[Cps Path Parser] Move NCMP-specific logic to NCMP"Priyank Maheshwari6-27/+44
2024-09-05Merge "[k6] Align tests with updated requirements"Priyank Maheshwari5-76/+75
2024-09-04[Cps Path Parser] Move NCMP-specific logic to NCMPdanielhanrahan6-27/+44
Some special case code to disable ancestor-axis was added for CM-handle search (see CPS-2308). It is now relocated to NCMP. This makes other needed improvements of Cps Path Parser easier. - Move special case code into NCMP - Add integration test to ensure CM-handle search works Issue-ID: CPS-2365 Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech> Change-Id: I168d6156be559166f115aa42e21cd987d98b7d41
2024-09-04Merge "Support alternate id for CPS-E05 GetCmHandleDetailsById"Daniel Hanrahan5-18/+25
2024-09-04Merge "[Cps Path Parser] Refactoring leaf conditions"Priyank Maheshwari4-55/+38