summaryrefslogtreecommitdiffstats
path: root/ms/blueprintsprocessor/modules
AgeCommit message (Collapse)AuthorFilesLines
2020-08-04Merge "Fix incorrect error handling for resolveWorkflowOutputs" into frankfurt6.0.1-ONAPKAPIL SINGAL2-2/+62
2020-08-04Merge "Fix misleading errormessages in script exeutors" into frankfurtKAPIL SINGAL2-2/+2
2020-08-04Merge "Remove service annotation for ImperativeBluePrintWorkflowService" ↵KAPIL SINGAL2-12/+4
into frankfurt
2020-08-04Remove service annotation for ImperativeBluePrintWorkflowServiceJozsef Csongvai2-12/+4
Even with the PROTOTYPE_SCOPE annotation the bean was in effect a Singleton, as it was only injected in one other service. The class has field variables which would be shared by every thread, potentially causing severe errors under parallel execution. Removed annotations to disable dependency injection, and instead create a new instance with every execution call. Issue-ID: CCSDK-2473 Signed-off-by: Jozsef Csongvai <jozsef.csongvai@bell.ca> Change-Id: I9e7148540781dcd869d55d932f4187c5f81cb3f5
2020-08-04Set EventType for GRPC response in designer APIJozsef Csongvai2-0/+10
Issue-ID: CCSDK-2539 Signed-off-by: Jozsef Csongvai <jozsef.csongvai@bell.ca> Change-Id: Iaaf64e4b6683c564c1022b609496fec55ad0df6d (cherry picked from commit f71ba4e81f04a2a3c5e97d565d34c09f46885fe6)
2020-08-04Fix misleading errormessages in script exeutorsJozsef Csongvai2-2/+2
Issue-ID: CCSDK-2528 Signed-off-by: Jozsef Csongvai <jozsef.csongvai@bell.ca> Change-Id: I1a8dfc14b1fbddced4a3c2a06f8a35df34303976 (cherry picked from commit 9797faab9d411a2057eeb5607c7860faa68aab59)
2020-08-04Fix incorrect error handling for resolveWorkflowOutputsJozsef Csongvai2-2/+62
Issue-ID: CCSDK-2504 Change-Id: Ie910e47bb97be2db4f4a4e94653e5ae474a78c0d Signed-off-by: Jozsef Csongvai <jozsef.csongvai@bell.ca> (cherry picked from commit 181c470b61fae79acb05aedae67a0ceb486f1ee5)
2020-08-04Fix hazelcast issuesJozsef Csongvai6-51/+63
- confined lock tests to individual threads to ensure correct unlocking - removed silent failure in clusterlock.unlock function when unlock is called by a thread that doesnt own the lock. - added isLockedByCurrentThread method to ClusterLock interface - disabled multicast discovery, tcp-ip should be more stable for tests - fix Hazlecast typo Issue-ID: CCSDK-2429 Signed-off-by: Jozsef Csongvai <jozsef.csongvai@bell.ca> Change-Id: Idfe723fff04fcd9c48510cf429eb15b33662c49d
2020-07-09single /enrichandupload endpoint.Oleg Mitsura2-0/+37
Issue-ID: CCSDK-2540 rev1. initial commit rev2. spacing Signed-off-by: Oleg Mitsura <oleg.mitsura@amdocs.com> Change-Id: I14c8ffa42214faf064d8697b00190dee80f5da1c (cherry picked from commit 90b49b479b13ffb17baf6de0ca73d1442da9c423)
2020-07-06Roll version to latest Frankfurt snapshotDan Timoney26-28/+28
Roll versions to latest Frankfurt snapshot Issue-ID: CCSDK-2519 Signed-off-by: Dan Timoney <dtimoney@att.com> Change-Id: I440fb78baad8dd3a607599556e712df61d12f6a1
2020-06-11Add ResourceResolutionResult to ResourceResolutionServiceJozsef Csongvai3-4/+45
In order to ensure consistent behavior for assignment-map, supporting occurences and multiple artifact-prefixes, ResourceResolutionService needs to return assignment-map alongside generated template content. Issue-ID: CCSDK-2389 Signed-off-by: Jozsef Csongvai <jozsef.csongvai@bell.ca> Change-Id: I54c1991d23d65217f3492b08a2170a6d41b6482d
2020-05-29Roll to next snapshotDan Timoney26-28/+28
Roll to next Frankfurt snapshot Issue-ID: CCSDK-2345 Signed-off-by: Dan Timoney <dtimoney@att.com> Change-Id: I0e433bbe8f443c1342cb9a757c983a0e76bf5022
2020-05-28REST endpoint for fetching templates resolution results does not expose ↵Serge Simard1-3/+7
occurence parameter Issue-ID: CCSDK-2384 Change-Id: I8a6abfea32c7aacade1e9b3140eeed22fa58b4a9 Signed-off-by: Serge Simard <serge@agilitae.com> (cherry picked from commit abee5037695a03ea80c2595269e613fc8756f8c0)
2020-05-19Fix incorrect encoding for query paramsJozsef Csongvai2-1/+37
Issue-ID: CCSDK-2380 Signed-off-by: Jozsef Csongvai <jozsef.csongvai@bell.ca> Change-Id: I3a49f2c5a3a29383e43e2a4a3d6a9c13a9f933c2 (cherry picked from commit 1910b2b7879712ccac56580e8996a700f6dcec43)
2020-05-05Roll to next snapshotDan Timoney26-28/+28
Roll to next Frankfurt snapshot version Issue-ID: CCSDK-2344 Signed-off-by: Dan Timoney <dtimoney@att.com> Change-Id: Ic67ba870ef2a6158f859754d123e6051e389d816
2020-04-20Fix default behavior for DatabaseResourceAssignmentProcessorJozsef Csongvai2-70/+37
If a data-dictionary did not declare an endpoint-selector, it would default to primary cds-db instead of using data-dictionary source to look up database configuration. Processor-db configurations were not used because of this. Also improved error messages and some refactoring. Issue-ID: CCSDK-2315 Signed-off-by: Jozsef Csongvai <jozsef.csongvai@bell.ca> Change-Id: I7122e1334951db4eec5b9ae8b01c1f66596636f6 (cherry picked from commit 87bf1928aa4772c3b953a0a5800bec99f23b6e9c)
2020-04-16Workflow-spec returning error responsejananib1-6/+21
Fix workflow-spec query Change-Id: Ic66e2249b73c113cd25bd99c9cf33984520e31df Issue-ID: CCSDK-2181 Signed-off-by: jananib <janani.b@huawei.com> (cherry picked from commit 7247588ed2ac6b9fb0bd615525ae9347145b66b0)
2020-04-08Refactoring BP Code with ErrorCatalogBrinda Santh42-385/+544
Issue-ID: CCSDK-2124 Signed-off-by: Steve Siani <alphonse.steve.siani.djissitchi@ibm.com> Change-Id: Ief468a56f9e7b3ef86c357965aa7b15f0a4cfa22 Signed-off-by: Dan Timoney <dtimoney@att.com>
2020-04-07Roll to next Frankfurt snapshotDan Timoney26-28/+54
Roll to next Frankfurt snapshot release Issue-ID: CCSDK-2152 Signed-off-by: Dan Timoney <dtimoney@att.com> Change-Id: Ia5a5dca4d552925f8909a2c2a92bbabeec39cdc4
2020-04-06Merge "execution timeout not respected..."Dan Timoney2-14/+16
2020-03-31Fix ResolutionSummary - return empty string instead of nullJozsef Csongvai1-9/+9
Issue-ID: CCSDK-2246 Signed-off-by: Jozsef Csongvai <jozsef.csongvai@bell.ca> Change-Id: I894bf605ee7f5b094d015fd637979ce055da5081
2020-03-30Roll to next Frankfurt snapshot and fix sonar buildDan Timoney26-28/+28
Roll to next Frankfurt snapshot. Also, fixed config to skip sonar for error-catalog, which has no scannable components. Sonar builds were failing because error-catalog does not have standard maven source and test directories (src/main, src/test) Issue-ID: CCSDK-2152 Signed-off-by: Dan Timoney <dtimoney@att.com> Change-Id: Iacb76b240e71206de8306af7e2447eaa07b0d33b
2020-03-30execution timeout not respected...Oleg Mitsura2-14/+16
Issue-ID: CCSDK-2012 rev1: initial commit rev2: reworked + added grpc deadline rev3: wrong err msg.. rev4: timeouts in millis rev5: timeout defaulting was after logging... Signed-off-by: Oleg Mitsura <oleg.mitsura@amdocs.com> Change-Id: I02eb414904cc5dfcf51ff7b7552dafe54857ed1e (cherry picked from commit 3f56fcfec7d14e7351280b9e2a1d220638626693)
2020-03-19Fix kotlin cache lazy loadingSebastien Premont-Tendland5-12/+18
When USE_SCRIPT_COMPILATION_CACHE is set to false the classLoader is closed after the class is instantiated. This is causing an issue when lazy loading is happening during the script execution. Lazy loading occurs when a suspendible function returning something is called from "processNB", kotlin will create a second class that will be loaded during execution (needs to be in the classpath during execution). Issue-ID: CCSDK-2150 Signed-off-by: Sebastien Premont-Tendland <sebastien.premont@bell.ca> Change-Id: I64780287352d762325662e0e5d5b94038dedee7f
2020-03-18Fix GroupId and package name in Error CatalogDan Timoney4-7/+6
Issue-ID: CCSDK-2180 Signed-off-by: Steve Siani <alphonse.steve.siani.djissitchi@ibm.com> Change-Id: Ibe00fc1f2a905821b7100ae4f221ea1e0b934894
2020-03-13Merge "add a rest endpoint to remove resources"KAPIL SINGAL1-0/+22
2020-03-11Error Catalog Management Core Library.Brinda Santh7-45/+239
Issue-ID: CCSDK-2076 Signed-off-by: Brinda Santh <bs2796@att.com> Change-Id: I9e8e67bdee77fb359a791f4ef4c2963aa78ab93a Signed-off-by: Steve Siani <alphonse.steve.siani.djissitchi@ibm.com>
2020-03-09add a rest endpoint to remove resourcesJulien Fontaine1-0/+22
Issue-ID: CCSDK-2159 Signed-off-by: Julien Fontaine <julien.fontaine@bell.ca> Change-Id: I504fa0aad6f4e7105a53e793d08d08d92bbb8df4
2020-03-03Add properties to ResolutionSummaryJozsef Csongvai1-3/+7
Also wrapping ResolutionSummary response to ease integration with SDNC. Issue-ID: CCSDK-2038 Signed-off-by: Jozsef Csongvai <jozsef.csongvai@bell.ca> Change-Id: Ic1b8959e22ef795065d37664fb60f100af235a90
2020-03-03Add override function to BlueprintSvcLogicServiceJozsef Csongvai1-0/+4
Issue-ID: CCSDK-2153 Signed-off-by: Jozsef Csongvai <jozsef.csongvai@bell.ca> Change-Id: I58f807fbfea85880f3c2b9443ed62a1d84f0f6bb
2020-02-26API for list of workflow and I/O for a workflow namejananib4-0/+138
REST API for CDS workflow Issue-ID: CCSDK-422 Change-Id: Ia26287214941a20287c810dc27c030d974a8847a Signed-off-by: jananib <janani.b@huawei.com>
2020-02-26Merge SW Upgrade Blueprint into PNF_AAI and create one UAT BP for PNFgummar2-3/+8
UAT: Add support to multiple responses for a single request Set property IN_UAT=1 during UAT execution so blueprints can tune their settings to values more suitable for testing (like timeouts) Add 'times' field to specify expected number of invocations Add UAT blueprint script for PNF SW Upgrade UC Add current thread check for Hazelcast distributed lock Resolve URI before returning Issue-ID: CCSDK-2091 Change-Id: Id256bad043488f88f1b60015ebf9ade4be607fa2 Signed-off-by: gummar <raj.gumma@est.tech>
2020-02-25Merge "Fix Sonar Jenkins job"Dan Timoney1-0/+4
2020-02-25Changed the default multicast address.Sebastien Premont-Tendland6-69/+30
There's an issue with macOS when docker is installed and a multicast address different than 224.0.0.1 is used. https://stackoverflow.com/questions/46341715/hazelcast-multicast-does-not-work-because-of-vboxnet-which-is-used-by-docker-mac Re-organized the test hazelcast yaml since we now fill the cluster-name and instance-name information from the ClusterInfo object during creation. No need to pass it in the config file anymore. This is causing every file to be the exact same thus the consolidation. Also fix an issue with test case using the same hazelcast service in two different threads causing intermittent issue during the build process. Issue-ID: CCSDK-2119 Signed-off-by: Sebastien Premont-Tendland <sebastien.premont@bell.ca> Change-Id: I7f8328bfd93cdcabe8ab2fa844cbf9dd57f1493a
2020-02-25Fix Sonar Jenkins jobDan Timoney1-0/+4
Updated pom.xmls of modules that do not contain 'src/main' directory to skip Sonar scan. This allows Sonar scan to complete for the rest of CDS. Need to revisit these modules to see whether they should really be skipped or if sonar properties (e.g. sonar.sources) should instead be tailored. Issue-ID: CCSDK-2116 Signed-off-by: Dan Timoney <dtimoney@att.com> Change-Id: I8b0237886e357a0188633f007dc97cf6e725fa53
2020-02-24Add tar.gz compression capabilityLukasz Rajewski2-36/+154
The change modifies ArchiveUtils by change of the library responsible for compression and decompression of zip files. After change of library for appache compression tar.gz was added as another format which archive utils can support. For ZIP files there is kept backward compatibility because new lib keeps implementation of ZipFile similar to the one used before in the utils. Issue-ID: INT-1458 Signed-off-by: Lukasz Rajewski <lukasz.rajewski@orange.com> Change-Id: I78388ef8c5e7a23ac6664ae49c00638af38d8c8a
2020-02-24Merge "Cleaning up blueprint processor parent pom"KAPIL SINGAL1-0/+6
2020-02-21Eliminate Template RequirementJozsef Csongvai4-9/+37
Enables resource assignment without the use of a template. If no template is defined by the CBA, the default output is a kev-value map. If operation input: resolution-summary is set to true, output will be a list of ResolutionSummary. Issue-ID: CCSDK-2038 Change-Id: I5f6bcefcacec6e83cffac1134b13690b500a7563 Signed-off-by: Jozsef Csongvai <jozsef.csongvai@bell.ca>
2020-02-20Cleaning up blueprint processor parent pomSingal, Kapil (ks220y)1-0/+6
Removing dependencies which are being inheritted from ccsdk/parent spring-boot-parent-pom -> dependency-bom Issue-ID: CCSDK-2110 Signed-off-by: Singal, Kapil (ks220y) <ks220y@att.com> Change-Id: I8e07ca9887f0378985b21ddb146c53413bdfc592
2020-02-18Add ability to resolve environment variables when readingSebastien Premont-Tendland1-5/+3
PrimaryDatabaseConfiguration This is needed to remove hardcoded password in application.properties file by being able to resolve environment variables. OOM would pass the username and password through environment variables. Issue-ID: CCSDK-2095 Signed-off-by: Sebastien Premont-Tendland <sebastien.premont@bell.ca> Change-Id: Ia19ef0ddee29509b0378b048bf58c700870ecce4
2020-02-17Removed manual shutdown hook for hazelcastSebastien Premont-Tendland1-3/+5
Shutdown hook for hazelcast are already working with spring boot. Just changed the policy to GRACEFUL (default is TERMINATE). This allow hazelcast to shutdown gracefully and recover from a rolling upgrade Also updated the Dockerfile to use multi stage to reduce by ~200Mb the docker image size. Issue-ID: CCSDK-2011 Signed-off-by: Sebastien Premont-Tendland <sebastien.premont@bell.ca> Change-Id: I0034145c7acefa88ed8d16f23a29249c7225ace3
2020-02-14Cluster CP member promotion as default.Brinda Santh7-5/+151
Issue-ID: CCSDK-2011 Signed-off-by: Brinda Santh <bs2796@att.com> Change-Id: I4df4b442c020fbf9da294a9b35739ca3acb8ee02
2020-02-12Refactoring Resource Resolution ServiceSingal, Kapil (ks220y)2-5/+7
Removing Node Template dependency Issue-ID: CCSDK-2078 Signed-off-by: Singal, Kapil (ks220y) <ks220y@att.com> Change-Id: I24f3e003c64f3ee40eee4699366cfadfc1d7147e
2020-02-12Cluster co-ordination with Hazelcast.Brinda Santh19-553/+632
Remove Atomix implementation, due to Kubernetes clustering issues. Cluster environment property changes. Issue-ID: CCSDK-2011 Signed-off-by: Brinda Santh <bs2796@att.com> Change-Id: I23f40c92c0adc6b3ab8690871385f78525c76433
2020-02-01Expose rest API with non blocking call.Brinda Santh6-126/+182
Convert Mono and Flux to coroutines Convert reactor mdc to coroutine mdc Issue-ID: CCSDK-2052 Signed-off-by: Brinda Santh <bs2796@att.com> Change-Id: Ic58c0b74866d28fd2d803b96626b08f8e8b2db56
2020-01-31Spring boot, Kotlin version upgradesBrinda Santh10-18/+13
Dependent Patch : https://gerrit.onap.org/r/c/ccsdk/parent/+/100990 Fixed Jackson set method according to latest version. Fixed Security properties issues for failed JUnit test cases. Reused maven properties from parent for Spring boot, Nats, Kafka, etc Issue-ID: CCSDK-1737 Signed-off-by: Brinda Santh <bs2796@att.com> Change-Id: I04bb0e535161e05897f587a0f08a2689e10c5f41
2020-01-22Enhancement better error messages.Oleg Mitsura2-4/+33
Issue-ID: CCSDK-2036 rev1: initial commit. Signed-off-by: Oleg Mitsura <oleg.mitsura@amdocs.com> Change-Id: I0bc31a2a17a6dfedbb1870470e8bf6304be782b5
2020-01-17Fix scheduler shutdown config function.Brinda Santh2-4/+2
Optimize application name accessing in Docker Compose. Issue-ID: CCSDK-1917 Signed-off-by: Brinda Santh <bs2796@att.com> Change-Id: I6b055de7ef5a8ac4a0c103499997ed272bd74ac6
2020-01-16Prioritization Optional NATS consumer supportBrinda Santh9-8/+127
Add prioritization NATS consumer service and configuration data beans. Optimizing message prioritization service interface. Added Integration testing for NATS simulation. Updated sample docker compose for NATS support Issue-ID: CCSDK-1917 Signed-off-by: Brinda Santh <bs2796@att.com> Change-Id: Icd21e5e2ab7b64d6e6e4b0610599ca947555ee15
2020-01-13Prioritization expiry and clean scheduler serviceBrinda Santh1-0/+9
Add prioritization expiry and clean scheduler service implementation. Optimizing message passing between processors. Added message sorting utils. Issue-ID: CCSDK-1917 Signed-off-by: Brinda Santh <bs2796@att.com> Change-Id: I049ea3bae2e2c546244136f15c3d89deda1e7053