aboutsummaryrefslogtreecommitdiffstats
path: root/ms/blueprintsprocessor
AgeCommit message (Collapse)AuthorFilesLines
2022-08-22Refactoring Code to remove NRMSingal, Kapil (ks220y)4-29/+28
Renaming Classes, API's, variabled and removing NRM word from codebase Issue-ID: CCSDK-3741 Signed-off-by: Singal, Kapil (ks220y) <ks220y@att.com> Change-Id: I8150eec7e8fb0bc1d33e80991215e745e9aa79d0 (cherry picked from commit cc2dbf6d08840ba0e105e44022568d9afd130273)
2022-08-22Fix inconsistency introduced during commit b4cbb0ee9kuldipr1-8/+1
Issue-ID: CCSDK-3738 Signed-off-by: kuldipr <kuldip.rai@amdocs.com> Change-Id: I72ae642f3027fa3b4c8caa3105b2147ed654c159
2022-08-04Kafka producer parameters updated to be consistent with frankfurtOleg Mitsura2-6/+6
Issue-ID: CCSDK-3737 Signed-off-by: kuldipr <kuldip.rai@amdocs.com> Change-Id: I00cba2f644abf85778abf17ee3fb9e102ac5f42f
2022-08-03Enable deleting resources by lastN occurrencesJozsef Csongvai5-24/+213
Also enable deletion using resource-type and resource-id. Issue-ID: CCSDK-3735 Signed-off-by: Jozsef Csongvai <jozsef.csongvai@bell.ca> Signed-off-by: kuldipr <kuldip.rai@amdocs.com> Change-Id: Id1b487fce97f582bd3781dfd5bcff61a8df08c5c
2022-07-21[Blueprintsprocessor] Blueprint Model API returns 204 NO CONTENT if ↵Michal Jagiello1-1/+1
blueprint model does not exist Issue-ID: CCSDK-3729 Signed-off-by: Michal Jagiello <michal.jagiello@t-mobile.pl> Change-Id: Ie19128d1ece6b229e5c2e5636ab3a7add4e2f3ef
2022-07-19[Blueprintsprocessor] Use all source-db resources instead of only processor-dbMichal Jagiello3-4/+39
In DatabaseResourceAssignmentProcessor class filter resourceSourceMappings to get all source-db resources instead of using only one: processor-db Issue-ID: CCSDK-3699 Signed-off-by: Michal Jagiello <michal.jagiello@t-mobile.pl> Change-Id: I616ca6fe1336427b0b603a0386878ba4c8ea5828
2022-07-18Aligned attributes of CDS componentsLukasz Rajewski9-48/+100
Issue-ID: CCSDK-3698 Signed-off-by: Lukasz Rajewski <lukasz.rajewski@t-mobile.pl> Change-Id: Ie5c78a9a347373b5faf588627e42138806d69c0c
2022-07-12Change template query to return a result when duplicate rows existskuldipr1-0/+19
Issue-ID: CCSDK-3714 Change-Id: I516efc75d5d789903883437b6f3b50874bcfc79a Signed-off-by: kuldipr <kuldip.rai@amdocs.com>
2022-07-04Fixed Template API (resourceId and resoourceType) input validationkuldipr1-4/+4
Validation was always checking for resolutionKey even when it is not required when using resourceId and resourceType. Also artifactName which is always required could not have been sent along with resourceId and resourceType. Issue-ID: CCSDK-3713 Signed-off-by: kuldipr <kuldip.rai@amdocs.com> Change-Id: I4a2945397f10bf5c57a698894df09ee4fc5891d0
2022-06-07Improve log format consistencyJozsef Csongvai7-18/+67
Logs related to request processing should include: requestId, subrequestId and originatorId. Each API (rest,grpc,kafka) would produce different outputs, due to MDC context not being passed properly between coroutine contexts or values not being populated. Issue-ID: CCSDK-3686 Signed-off-by: Jozsef Csongvai <jozsef.csongvai@bell.ca> Change-Id: Ibafdffd3409b9724ad91633ca5840070f7e287f5
2022-06-07Merge "CCSDK-3684 ComponentRemotePYthonExecutor eliminate recursive call"Jozsef Csongvai1-2/+2
2022-06-07CCSDK-3684 ComponentRemotePYthonExecutor eliminate recursive callOleg Mitsura1-2/+2
Issue-ID: CCSDK-3684 prepareEnv (mistakenly) had a recursive call, but no decement. Simplified it in favour of the inner/outter flag instead of retry counter as in Frankfurt release. Signed-off-by: Oleg Mitsura <oleg.mitsura@amdocs.com> Change-Id: I5d7f623d6e206a844d33d95a15f85758da3a6681
2022-05-24Merge "Extend Template API to retrieve resolutions by occurrence"Jozsef Csongvai4-0/+284
2022-05-24API to resolve resources based on optional 'occurrence' optionskuldipr4-2/+270
User can specificy options to get firstN, lastN and by the Range (begin, end) of 'occurrence' to get the resolutions. If no options are specified, all the resolutions are returned in decending oder (latest on top). Map of resolutions are returned with 'occurrence' as the key to the corresponding list of resolutions. Issue-ID: CCSDK-3665 Signed-off-by: kuldipr <kuldip.rai@amdocs.com> Change-Id: I9ecbfb339bde76510e81cd695e03cc1e061396ee
2022-05-24Extend Template API to retrieve resolutions by occurrencejuhi arora4-0/+284
Add new endpoints - template to get firstN, lastN and by Range (begin, end) of 'occurrence' to get the templates Issue-ID: CCSDK-3666 Change-Id: I242626e826022ed8b70a0abc287560ea634121b7 Signed-off-by: juhi arora <juhi.arora1@bell.ca>
2022-05-24Enable versioned resource resolution by using occurrencekuldipr6-8/+356
By setting occurrence to <= 0 in the CBA, a user indicates that each time resource resolution executes, it should produce a new set of values for a resolution-key or (resourceId, resourceType) pair. For each new execution, the occurrence is incremented to serve as the version number for the new set of values. Issue-ID: CCSDK-3663 Signed-off-by: kuldipr <kuldip.rai@amdocs.com> Change-Id: Ib535b20cb775dcbb5b02fe5a5f6904a335fda310
2022-05-23Merge "Enable force-resolution"Dan Timoney4-7/+28
2022-05-23Merge "CCSDK-3671 add workflows list for grpc"Dan Timoney9-55/+155
2022-05-20Merge "Resource endpoint should support occurrences"Jozsef Csongvai4-13/+29
2022-05-19Override Request ID in MDC ContextJulien Fontaine2-4/+16
Issue-ID: CCSDK-3676 Signed-off-by: kuldipr <kuldip.rai@amdocs.com> Change-Id: I6b0a816fcb40e149be1818f9edc9d4839f1a4cf6
2022-05-19Resource endpoint should support occurrencesKuldip Rai4-13/+29
The getOneFromResolutionKey endpoint would fail if there are multiple occurrences for a resource. Instead it should return the last occurrence. Issue-ID: CCSDK-3664 Signed-off-by: kuldipr <kuldip.rai@amdocs.com> Change-Id: I1468c41c164f64931ce719f9908b935baae6e1a4
2022-05-19CCSDK-3671 add workflows list for grpcOleg Mitsura9-55/+155
Issue-ID: CCSDK-3671 1. added grpc 'getWorkflows' for BlueprintManagement 2. during CBA upload, the workflows get cached to BLUEPRINT_MODEL.workflows 3. reworked HTTP endpoint to use above "/workflows/blueprint-name/{name}/version/{version}" 4. If CDS is upgraded, with existing CBAs present, fallback by parsing the CBA instead of DB lookup Signed-off-by: Oleg Mitsura <oleg.mitsura@amdocs.com> Change-Id: I68bebfe23c0b16ea288512f1087bfe1ceef57686
2022-05-19Enable force-resolutionOleg Mitsura4-7/+28
If force-resolution is set to true in a CBA, all resolved values and templates will be overwritten for the given resolution-key or resource-id & resource-type. Issue-ID: CCSDK-3670 Change-Id: I1859a7029a16190a6e691cb1fa0c76ced470279a Signed-off-by: Jozsef Csongvai <jozsef.csongvai@bell.ca>
2022-05-17Fix broken model-type API endpointJozsef Csongvai1-1/+1
The endpoint path was accidentally changed with CCSDK-3014, where a trailing slash was added to the path. This reverts the endpoint path, and is still compatible with requests that have a trailing slash. Issue-ID: CCSDK-3672 Signed-off-by: Jozsef Csongvai <jozsef.csongvai@bell.ca> Change-Id: I071e15a525750d3068c53ff9f5447c524cd44669
2022-05-16Re-enable formatting and fix formatting issuesJozsef Csongvai15-48/+52
Issue-ID: CCSDK-3657 Signed-off-by: Jozsef Csongvai <jozsef.csongvai@bell.ca> Change-Id: Idd1871e82a319325b042c339741a66c06499692c
2022-04-28Update versions for Kohn releaseDan Timoney42-42/+42
Update versions in master branch for Kohn release Issue-ID: CCSDK-3641 Signed-off-by: Dan Timoney <dtimoney@att.com> Change-Id: I78cbfb5ec5175e87233f263422f7323b22d352de
2022-04-13Closing artifact files after vtl templatingLukasz Rajewski3-3/+4
Issue-ID: CCSDK-3631 Signed-off-by: Lukasz Rajewski <lukasz.rajewski@orange.com> Change-Id: I20972afeebafbc0ea47ee22c2ba9b32d760ebbb5
2022-04-13Merge "Return errormessages in failing imperative workflows"KAPIL SINGAL3-3/+5
2022-04-12Prevent stack overflow in BluePrintProcessingGRPCHandlerJozsef Csongvai1-5/+4
The overridden onError is called when a terminating error occurs in the stream, for example when the calling client crashes. It should not be handled the same way as CBA processing errors. Issue-ID: CCSDK-3496 Signed-off-by: Jozsef Csongvai <jozsef.csongvai@bell.ca> Change-Id: Ib0aa416325a5b9708615e0ef9d9c602df24518b9
2022-04-12Return errormessages in failing imperative workflowsJozsef Csongvai3-3/+5
Instead of discarding error messages after each node has executed, they are now kept until the workflow completes. If the workflow completes without exceptions, it means that all errors were handled and the error messages can be cleared. If the workflow does complete with exceptions, all error messages will be propagated in the response. Also update UatExecutor to enable expected status codes other than 200. Issue-ID: CCSDK-3630 Signed-off-by: Jozsef Csongvai <jozsef.csongvai@bell.ca> Change-Id: I94fd81c342ad2a798e64051c603beb62bf1aaacd
2022-03-29Release Jakarta M4 CDS maven artifactsDan Timoney42-42/+42
Release Jakarta M4 version of CDS maven artifacts and roll to next snapshot Issue-ID: CCSDK-3604 Signed-off-by: Dan Timoney <dtimoney@att.com> Change-Id: I3335ce0e3f6995c350c5a87691e9922204a67dcb
2022-03-23Add indexes to Template/Resource resolutionOleg Mitsura2-2/+15
Issue-ID: CCSDK-3611 Signed-off-by: Oleg Mitsura <oleg.mitsura@amdocs.com> Change-Id: I7e761a3a7bd6a107748a4d90d3a335ebf77a759b
2022-03-07Upgrade commons-compress to version 1.21Dan Timoney1-1/+1
Update commons-compress to version 1.21 per SECCOM recommendation Issue-ID: CCSDK-3585 Signed-off-by: Dan Timoney <dtimoney@att.com> Change-Id: I41c9430b1ab0dbfa5442a145ce2d2db7086049e6
2022-03-02DMAAP-1706 - New Kafka Auth optiondavid.mcweeney5-1/+192
Change-Id: I8533721d23d6adb41f65cb96fb2b8f852bda47b8 Signed-off-by: david.mcweeney <david.mcweeney@est.tech> Issue-ID: DMAAP-1706
2022-02-14K8sPlugin integration changes for Istanbul APIsLukasz Rajewski2-12/+16
- k8sconfigteamplate component accepts empty source what means that template is the same like definition - fix of the query API namespace param Issue-ID: CCSDK-3537 Signed-off-by: Lukasz Rajewski <lukasz.rajewski@orange.com> Change-Id: I86c6b7e0fd98cd34a1ee89dd183732b113439a23
2022-02-09K8sPlugin integration changes for Istanbul APIsLukasz Rajewski11-34/+646
Implementation of the K8sPlugin new APIs or changes introduced there in the Istanbul release. Issue-ID: CCSDK-3537 Signed-off-by: Lukasz Rajewski <lukasz.rajewski@orange.com> Change-Id: I263dd22bb1d3cbcc9360583cd82a728afbebc09d
2022-01-17Add functions for retrieving multiple artifactsArne Chrestin5-4/+120
Add the functions AbstractComponentFunction .storedArtifactNamesAndResolutionKeysNB() to retrieve all artifact_names and resolution_keys for a given blueprint and AbstractComponentFunction .storedResolutionKeysForArtifactNameNB(artifactName) to retrieve all resolution_keys for a given blueprint and artifact_name. To support the required JPA query, an interface TemplateResolutionSelector was added in resource-resolution. Issue-ID: CCSDK-3543 Signed-off-by: arne.chrestin@telekom.de Change-Id: I1907949e49134ec13d28a876474f08502759762f
2021-11-30CCSDK-3531 improve cmd-exec returned err msgOleg Mitsura3-3/+9
Issue-ID: CCSDK-3531 Improve end-user CBA's Python scripts ability to return error messages on failues. See JIRA story for examples: https://jira.onap.org/browse/CCSDK-3531 adds functions send_response_err_msg(err_message) and send_response_err_msg_and_exit(ret_err_msg, code=1) Signed-off-by: Oleg Mitsura <oleg.mitsura@amdocs.com> Change-Id: Ideda64dd108f987c3c4515c70daf9f7b6d2b1f2f
2021-11-29Change load configuration paths for modeltype and resourcedicitonaryfarida azmy1-3/+3
Issue-ID: CCSDK-3516 Signed-off-by: farida azmy <farida.azmy.ext@orange.com> Change-Id: Ibebff38d43b6e2db6f8a0ec38483a691e3ea3449
2021-10-20Add missing code for Metrics and PV/PVC eliminationJozsef Csongvai9-6/+32
Earlier patch introducing MeterRegistry to AbstractComponentFunction was not initializing the lateinit property and causing NPE. Also add additional code to handle compatibility issues after the introduction of PV/PVC elminiation for CommandExecutor. This allows blueprintsprocessor to communicate with earlier versions of command- executor which still use the shared pvc. Issue-ID: CCSDK-3471 Change-Id: I84a04601c4fe09c5f3a06664ce877800a30531f1 Signed-off-by: Jozsef Csongvai <jozsef.csongvai@bell.ca>
2021-09-29Merge "Metrics on command-executor blueprints processor side"Dan Timoney3-25/+73
2021-09-21Metrics on command-executor blueprints processor sideMichael Pruss3-25/+73
Issue-ID: CCSDK-3471 Signed-off-by: Michael Pruss <michprus@amdocs.com> Change-Id: I871a032ff5c9ebfd408aaa28a7d24185dee7c953
2021-09-21Roll versions for JakartaDan Timoney42-84/+42
Roll versions to set up for Jakarta release Issue-ID: CCSDK-3470 Signed-off-by: Dan Timoney <dtimoney@att.com> Change-Id: Ia341d92b79acd758cc9d16f24a83399d1a8a1c5b
2021-09-16Release version 1.2.0 maven artifactsDan Timoney42-42/+42
Release version 1.2.0 maven artifacts for CDS and roll version Issue-ID: CCSDK-3444 Signed-off-by: Dan Timoney <dtimoney@att.com> Change-Id: I3e5beebd0e2aedb7d6f69ad854af879c20308c17
2021-09-13Fix versionDan Timoney1-1/+1
Should use project.version property for internal references, not hard-coded value. Otherwise, staging and docker builds break. Issue-ID: CCSDK-3460 Signed-off-by: Dan Timoney <dtimoney@att.com> Change-Id: I5e9ac3b302f7b3c8a7ce8bc6f166f1a4c56af4f5
2021-09-11Merge "Upgrading velocity version to v2.3 due to some vulnerabilities in ↵KAPIL SINGAL5-5/+21
previous version"
2021-09-11Merge "CCSDK-3451 Prometheus Metrics for command-executor"KAPIL SINGAL1-0/+1
2021-09-10Upgrading velocity version to v2.3 due to some vulnerabilities in previous ↵meriem zidane5-5/+21
version Issue-ID: CCSDK-3430 Signed-off-by: Meriem Zidane <meriem.zidane@bell.ca> Change-Id: I82dad1c2dd7f8e4cc5712e9fddde5b1bb5429b7f
2021-09-08Merge "Use cert-initializer truststore instead of hard-coded ONAP Root CA"Dan Timoney1-2/+7
2021-09-08Use cert-initializer truststore instead of hard-coded ONAP Root CAwdgp04241-2/+7
Issue-ID: CCSDK-3356 Signed-off-by: Abdelmuhaimen Seaudi <abdelmuhaimen.seaudi@orange.com> Change-Id: I68582d2abae2a1e320ce243406fb5d932c34fb75