summaryrefslogtreecommitdiffstats
path: root/ms/blueprintsprocessor/functions
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
2022-08-22Use 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 (cherry picked from commit 3395dfa1f31111bb4dd03e89a7e493a2850901f2)
2022-07-22Aligned attributes of CDS componentsLukasz Rajewski7-47/+88
Issue-ID: CCSDK-3698 Signed-off-by: Lukasz Rajewski <lukasz.rajewski@t-mobile.pl> Change-Id: Ie5c78a9a347373b5faf588627e42138806d69c0c (cherry picked from commit ea1c8b477e615f4dd45204b221fe7eacfe5474af)
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-03-29Release Jakarta M4 CDS maven artifactsDan Timoney12-12/+12
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-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 Mitsura1-1/+5
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-10-20Add missing code for Metrics and PV/PVC eliminationJozsef Csongvai1-3/+0
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 Timoney1-25/+69
2021-09-21Metrics on command-executor blueprints processor sideMichael Pruss1-25/+69
Issue-ID: CCSDK-3471 Signed-off-by: Michael Pruss <michprus@amdocs.com> Change-Id: I871a032ff5c9ebfd408aaa28a7d24185dee7c953
2021-09-21Roll versions for JakartaDan Timoney12-24/+12
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 Timoney12-12/+12
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-08-27CCSDK-3434 CBA workflow status storeKavitha P15-0/+1262
Change-Id: Iaeac6fa534c569bbc152e6c8a78c2dd23b6c4b1a Signed-off-by: Kavitha P <pkavitha@aarnanetworks.com> Issue-ID: CCSDK-3434
2021-08-05Ignore unknown fields from the k8splugin API responsesLukasz Rajewski10-0/+25
Ignore unknown fields from the k8splugin API responses Issue-ID: CCSDK-3400 Signed-off-by: Lukasz Rajewski <lukasz.rajewski@orange.com> Change-Id: I9d184a0a4369848221cce56e164162b55edb3c5a
2021-07-28Revert "Renaming Files having BluePrint to have Blueprint"Jozsef Csongvai83-727/+727
The renaming in CCSDK-3098 caused breaking changes to the grpc api and compile issues for kotlin scripts. Issue-ID: CCSDK-3385 Change-Id: I0d745cb858371678eabcb2284671c1fd76a1ab6d Signed-off-by: Jozsef Csongvai <jozsef.csongvai@bell.ca>
2021-07-27Removed redundant timeout handling for executeCommandJulien Fontaine1-19/+3
executeCommand was called from a GlobalScope.async coroutine to handle executeCommand timeout. Execution timeout is already handled on the gRPC side, there's no need to handle this timeout by wrapping the gRPC call with a coroutine timeout. When a lot of long running processes in executeCommand were running, it was causing process to queue on BP side to get their executeCommand executed because all the capacity of couroutines were being used by some long running process. This was causing a delay on the execution of prepareEnv and executeCommand and would even some time make those process timeout because of component timeout. Issue-ID: CCSDK-3386 Signed-off-by: Julien Fontaine <julien.fontaine@bell.ca> Change-Id: If3aef4b6b65006e874525436bf3f6d1b1a3d8c9a
2021-05-13Add MS SQL driver in CDS blueprints andPrudence Au1-4/+4
DB resolution fails on an empty dataset with required template mapping. Issue-ID: CCSDK-3293 Issue-ID: CCSDK-3294 Signed-off-by: Prudence Au <prudence.au@amdocs.com> Change-Id: I9f302d12e7359b62180fcdfddbd8ae2c993a8324
2021-04-09Fixed templating of values in k8s componentsLukasz Rajewski3-3/+3
Fixed templating of values in k8s components Issue-ID: CCSDK-3265 Signed-off-by: Lukasz Rajewski <lukasz.rajewski@orange.com> Change-Id: If6a10c9ae0157a873433f7c3e7c12d90eb5c2cf6
2021-03-30Extend Restconf executor functionClaudio D. Gasparini4-71/+363
provide capability to - execute a sorted array of restconf actions - mount odl restconf node Issue-ID: CCSDK-3241 Signed-off-by: Claudio D. Gasparini <claudio.gasparini@intl.att.com> Change-Id: I1999195f7b84a259d82f9c5aa31e9fa892e9c3df
2021-03-25Fixed K8s HealthCheck API issueLukasz Rajewski2-21/+94
Fixed K8s HealthCheck API issue Issue-ID: CCSDK-3230 Signed-off-by: Lukasz Rajewski <lukasz.rajewski@orange.com> Change-Id: Ic341cc7ef36d5fe86cf2b74813bb1f8fc0842f6f
2021-03-24Fixed bug when k8s profile is created for default k8s versionLukasz Rajewski2-1/+9
Fixed bug when k8s profile is created for default k8s version Issue-ID: CCSDK-3239 Signed-off-by: Lukasz Rajewski <lukasz.rajewski@orange.com> Change-Id: Ibc0c8a6057b4b9eef3beb1821093b935f3b2e53b
2021-03-22Bug fixes for config template and config value componentsLukasz Rajewski5-59/+182
Issue-ID: CCSDK-3232 Signed-off-by: Lukasz Rajewski <lukasz.rajewski@orange.com> Change-Id: I817d83001a76ba480472c7aa2da15eba65b39c20
2021-03-19Merge "Refactoring to enable on_failure for imperative workflow"KAPIL SINGAL22-41/+41
2021-03-18ComponentRemotePythonExecutor prepareEnv bugOleg Mitsura1-37/+11
Issue-ID: CCSDK-3086 commit 1: orig commit commit 2: update retry counter commit 3: bug fix for packages being null should still trigger creation of python environment Signed-off-by: Oleg Mitsura <oleg.mitsura@amdocs.com> Change-Id: Id9e7024df8c604c719828211cce31d6f0452330b
2021-03-17Refactoring to enable on_failure for imperative workflowJozsef Csongvai22-41/+41
BlueprintError needs to associate errors with the steps in which they occurred in order for imperative workflow to handle on_failure properly. Made stepName more accessible and corrected places where stepName was assigned to nodeTemplateName. Issue-ID: CCSDK-3219 Change-Id: I7e5805745c63558cff6be533e1b99c32ad06c3db Signed-off-by: Jozsef Csongvai <jozsef.csongvai@bell.ca>
2021-03-09Add delete endpoint for config snapshot APIJulien Fontaine2-0/+25
Add delete endpoint to delete config-snapshots based on resource-type, resource-id and resources-status. Issue-ID: CCSDK-3205 Signed-off-by: Julien Fontaine <julien.fontaine@bell.ca> Change-Id: Id7954694bc93beba08a79139834cb6477cb8e44b
2021-03-09Roll master version for IstanbulDan Timoney11-11/+11
Roll versions of ccskd parent poms to 2.2.0-SNAPSHOT and of ccsdk/cds to 1.2.0-SNAPSHOT for Istanbul release Issue-ID: CCSDK-3190 Signed-off-by: Dan Timoney <dtimoney@att.com> Change-Id: Iab0bf047c8d2e4ddaaadf2e6278917ed2de338e5
2021-03-04Release version 1.1.1 of CDS dockersDan Timoney11-11/+11
Release new CDS dockers to correct issues found with release 1.1.0 dockers. Issue-ID: CCSDK-3192 Issue-ID: CCSDK-3197 Signed-off-by: Dan Timoney <dtimoney@att.com> Change-Id: I3bc1acbb93f0bb95ef14a6565e66d8da7a5df21d
2021-02-24Add rollback and update functionality for config-value component.Grzegorz Wielgosinski2-42/+79
Issue-ID: CCSDK-2922 Signed-off-by: Grzegorz Wielgosinski <g.wielgosins@samsung.com> Change-Id: I7384aa3d99fe273454e3acf2f933add0fb07a66c
2021-02-23Release version 1.1.0 docker containers and roll to next versionDan Timoney11-11/+11
Release version 1.1.0 docker containers and roll to next version Issue-ID: CCSDK-3179 Signed-off-by: Dan Timoney <dtimoney@att.com> Change-Id: I2518ba1dd5a4bd926499867f5f9714bc3f716732
2021-02-20Merge "Wrap day2 api and create configuration-value component"KAPIL SINGAL6-17/+397
2021-02-19K8sPlugin Query API endpoint addedLukasz Rajewski1-0/+29
K8sPlugin Query API endpoint added Issue-ID: CCSDK-3146 Signed-off-by: Lukasz Rajewski <lukasz.rajewski@orange.com> Change-Id: I10abfd986de0df0069b258276fe0ec0fc9b76bff
2021-02-19Wrap day2 api and create configuration-value componentGrzegorz Wielgosinski6-17/+397
Issue-ID: CCSDK-2922 Signed-off-by: Grzegorz Wielgosinski <g.wielgosins@samsung.com> Change-Id: Idef821362af9351c8ae48accc616f744f0b462d6
2021-02-17K8sPlugin Healthcheck API and API refactoringLukasz Rajewski5-29/+171
K8sPlugin Healthcheck API and API refactoring Issue-ID: CCSDK-3146 Signed-off-by: Lukasz Rajewski <lukasz.rajewski@orange.com> Change-Id: Ic3040c888bf78b6d3c91f282200e6f32a3f69816
2021-02-17Fixed null pointer exception for JSON RALukasz Rajewski1-1/+3
Fixed null pointer exception for JSON RA Issue-ID: CCSDK-3170 Signed-off-by: Lukasz Rajewski <lukasz.rajewski@orange.com> Change-Id: I721ff7966a1c1bd99ab948cdc410f05688ddea23
2021-02-151. Wrap configuration-template DAY2 APIGrzegorz Wielgosinski3-0/+376
2. Create config-template component Issue-ID: CCSDK-2922 Signed-off-by: Grzegorz Wielgosinski <g.wielgosins@samsung.com> Change-Id: I124c5995294c2c05eab471eb3a2658368a49cf06
2021-02-11Added Kafka metrics for CDS workersJulien Fontaine1-0/+6
Added counters to gather metrics on CDS Kafka workers. This will enable us to get metrics on how many messages we consumer and produce to/from kafka. For consumers we count how many messages we consume and how many failed ie. consumed but not able to be processed (parsing error). For producers we count how many messages we produce and how many failed ie. failed to be pushed to the cluster (unavailable brokers, network error, ...). Relocated metrics tag constants to BlueprintConstants so that they can be use by any CDS module. If they make sense for other metrics then they should be shared. Issue-ID: CCSDK-3155 Signed-off-by: Julien Fontaine <julien.fontaine@bell.ca> Change-Id: Iad6aba588766f655f3a74cd626e0f74e29188f96
2021-02-10K8sPlugin Instance API HandlersLukasz Rajewski12-41/+487
Issue-ID: CCSDK-3146 Signed-off-by: Lukasz Rajewski <lukasz.rajewski@orange.com> Change-Id: I404957d5e782b8943bbe0d8bc501bbe88d524483
2021-02-09Move configuration beans out of profile.upload packageGrzegorz Wielgosinski7-100/+170
Issue-ID: CCSDK-3130 Signed-off-by: Grzegorz Wielgosinski <g.wielgosins@samsung.com> Change-Id: Id7a69e7c0a84c0b5556b5ae2a02835de647345c2
2021-02-03Issue-ID: CCSDK-3130Grzegorz Wielgosinski8-4/+6
1. Change module name to k8s-connection-plugin 2. Move K8sPluginApi.kt and K8sUploadFileRestClientService.kt out of profile.upload package Signed-off-by: Grzegorz Wielgosinski <g.wielgosins@samsung.com> Change-Id: I1708428ce986bc97e69dfbef9cf837a8039ccfe8
2021-01-26PV/PVC eliminationOleg Mitsura2-18/+114
Issue-ID: CCSDK-3086 1. initial commit 2. fix accidental paste / rebased cleaned up unneeded validation call in cmd-exec upload Signed-off-by: Oleg Mitsura <oleg.mitsura@amdocs.com> Change-Id: Ife5460c5be59aa8d8592d82099b27c507b08c6c6
2021-01-22Renaming Files having BluePrint to have BlueprintKAPIL SINGAL81-657/+657
Replacing BluePrint with Blueprint throughout Issue-ID: CCSDK-3098 Signed-off-by: KAPIL SINGAL <ks220y@att.com> Change-Id: Ibee8bad07ae7d9287073db2d4f2f2cd730fa8b96
2020-12-16Fixed NoClassDefFoundError when USE_SCRIPT_COMPILE_CACHE is set to falseJulien Fontaine5-23/+2
USE_SCRIPT_COMPILE_CACHE set to false cleans the Class Loader cache after each kotlin script execution. When several kotlin script are executed in parallel (ie no dependency between them) and USE_SCRIPT_COMPILE_CACHE=false then the class loader from the cache may be deleted before one of those executed kotlin script get the time to finish which to the NoClassDefFoundError. Removed cleanupInstance method for kotlin script executors that where causing the class loader to be removed prematurely. Now the behaviour is to remove the class loader from the cache only when we publish a new CBA which was already the case when CDS run with a single instance. In cluster mode, a topic has been added to hazelcast to allow the instance publishing the updated CBA to communicate to the other instances by sending a message to clean the class loader for this CBA from their cache. Added mutex on kotlin script compilation to fix race condition. For concurrent kotlin script execution each process wanted to compile an executable but it was causing a race condition if a process tries to execute while another still compile. Mutex on the execution path prevent this behaviour Issue-ID: CCSDK-3052 Signed-off-by: Julien Fontaine <julien.fontaine@bell.ca> Signed-off-by: Jozsef Csongvai <jozsef.csongvai@bell.ca> Change-Id: I6ab002352b3272898ad0b183341ee664652c8ae3
2020-12-16Fixing typo in message-prioritizationSingal, Kapil (ks220y)29-2/+2
Refactoring few POMs name tag Issue-ID: CCSDK-3053 Signed-off-by: Singal, Kapil (ks220y) <ks220y@att.com> Change-Id: I14447ea7f93efcc970213bbe7d42663cb87e33d7
2020-12-14Merge "CDS add Swagger annotations for Resource, Template, Dictionary and ↵KAPIL SINGAL1-2/+2
Config API"
2020-12-14CDS add Swagger annotations for Resource, Template, Dictionary and Config APIPiotr Stanior1-2/+2
Issue-ID: CCSDK-3014 Change-Id: I380c38cde52a748a9b797c573b7651a766e8b496 Signed-off-by: Piotr Stanior <piotr.stanior@t-mobile.pl>
2020-12-14ResourceResolution should fail if required resource did not resolve -edge casekuldipr1-2/+5
Issue-ID: CCSDK-3022 Signed-off-by: kuldipr <kuldip.rai@amdocs.com> Change-Id: Ia88a86f13c693a7bcd2d61cdfb5c2e39041b5a31 Signed-off-by: kuldipr <kuldip.rai@amdocs.com>