summaryrefslogtreecommitdiffstats
path: root/ms/blueprintsprocessor/functions
AgeCommit message (Collapse)AuthorFilesLines
2020-03-31Improving CMD-exec err msgs/handling.Oleg Mitsura1-5/+9
Issue-ID: CCSDK-2049 rev1. initial commit rev2. added better logging/passing errors. rev3. bugfixes rev4. bugfix for CommandExecutorServer.prepareEnv return status was still returning bool. (was caught only during a defective mariadb pip package install!) Signed-off-by: Oleg Mitsura <oleg.mitsura@amdocs.com> Change-Id: Ifbddaeb0e15857f42b121af10e30e29dec5c20b2
2020-01-27cmd-exec separate env-prepare and exec timeouts.Oleg Mitsura2-18/+51
Issue-ID: CCSDK-2039 added inputs for cmd-exec "env-prepare-timeout" and "execution-timeout" to segregate the timeouts. rev1: initial commit rev2: reverted application-dev.properties rev3: apply default timeouts if they are not specified + fixed a test Signed-off-by: Oleg Mitsura <oleg.mitsura@amdocs.com> Change-Id: I651594932a3fc87e0d853e65879b1548d9dbde8a
2020-01-23cmd-exec 0-return is success; env.prep.fix.Oleg Mitsura1-30/+38
Issue-ID: CCSDK-1855 This is cherry-pick of https://gerrit.onap.org/r/c/ccsdk/cds/+/98609 rev2. pasted wrong file, modified back... rev3. added catch-all. Change-Id: I30eccc3b18b428970bfa873b9f0ce359a1f5e97d Signed-off-by: Oleg Mitsura <oleg.mitsura@amdocs.com>
2019-12-23execution timeout not respected...Oleg Mitsura1-5/+28
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
2019-11-08Roll CDS version to 0.6.5-SNAPSHOTTimoney, Dan (dt5972)8-9/+9
Roll version to next snapshot (0.6.5-SNAPSHOT) Change-Id: I353c4833e78e5f225c778ac959893f63ec9842d7 Issue-ID: CCSDK-1912 Signed-off-by: Timoney, Dan (dt5972) <dtimoney@att.com>
2019-11-06Fixed typo...Oleg Mitsura1-1/+1
Issue-ID: CCSDK-1908 Signed-off-by: Oleg Mitsura <oleg.mitsura@amdocs.com> Change-Id: I962db89c620c46f8979df03c20c26d3bfc32fb73
2019-11-05netconf retry disconnect()Oleg Mitsura1-3/+11
Issue-ID: CCSDK-1908 Signed-off-by: Oleg Mitsura <oleg.mitsura@amdocs.com> Change-Id: I90ca822c042ec84fda717a152c4f699bacdd87ad
2019-11-01Merge "Provide ongoing occurrence value for scripting" into elaltoDan Timoney2-0/+7
2019-11-01Merge "Improve Remote Python Executor error handling and" into elaltoDan Timoney2-9/+43
2019-11-01Provide ongoing occurrence value for scriptingAlexis de Talhouët2-0/+7
This patch fixes this for template https://gerrit.onap.org/r/#/c/ccsdk/cds/+/95081/ but not for script, where the occurrence value might be needed. In reality, this overall occurrence thing is a mistacke, but it's solving an issue that I yet don't know how to properly solve. Change-Id: I7f8579ad2bde3f96b06aaf09c8b8c67d4b97e7b0 Issue-ID: CCSDK-1693 Signed-off-by: Alexis de Talhouët <adetalhouet89@gmail.com> Signed-off-by: Shaaban Ebrahim <shaaban.eltanany.ext@orange.com> (cherry picked from commit d39772eaeb2c6e6665c4a6d41f6af84f63151184)
2019-11-01Improve Remote Python Executor error handling andSerge Simard2-9/+43
Issue-ID: CCSDK-1855 Signed-off-by: Serge Simard <serge@agilitae.com> Change-Id: I924918fb06a5a0f118772dedaa41c536c7eca9e7 Signed-off-by: Serge Simard <serge@agilitae.com> (cherry picked from commit 35ab81bb9ff203e14116de10bc2735ffb2883f67)
2019-10-31netconf lib bugfixes: invoke_rpc + timeouts.Oleg Mitsura5-21/+64
Issue-ID: CCSDK-1886 Signed-off-by: Oleg Mitsura <oleg.mitsura@amdocs.com> Change-Id: I0a33199d4b4cbd5e3355d1e7596d22bd7cdbd075
2019-10-30Add wrapper function for Cli and Netconf executorSteve Siani2-4/+18
Issue-ID: CCSDK-1707 Signed-off-by: Steve Siani <alphonse.steve.siani.djissitchi@ibm.com> Change-Id: I2c29d0135b8252cd21ed3d139516ac637c846927 (cherry picked from commit 1d7e5f7f80281823cbfc4a2e2ea9833c6412de8c)
2019-09-30Roll cds versionTimoney, Dan (dt5972)8-9/+9
Roll CDS to next snapshot version Change-Id: I369633e10d1fd5b1b4fec55122fe36af1666cfe9 Issue-ID: CCSDK-1748 Signed-off-by: Timoney, Dan (dt5972) <dtimoney@att.com>
2019-09-29Refactoring ResourceAssignmentUtilsSingal, Kapil (ks220y)8-60/+63
Refactoring ResourceAssignmentUtils parseResponseNodeForPrimitiveTypes API to remove cyclic value assignments Issue-ID: CCSDK-1748 Signed-off-by: Singal, Kapil (ks220y) <ks220y@att.com> Change-Id: I27b5a7d3ed2df38cf4e3e44686aec094ebdb5f25 Refactoring ResourceAssignmentUtils Changing isNull condition to isNullOrEmpty to make sure Empty value doesn't get assigned to resource Issue-ID: CCSDK-1748 Signed-off-by: Singal, Kapil (ks220y) <ks220y@att.com> Change-Id: I0744537c7ddec80f20ffd7e6545b947439f63743 Resource Resolution Refactoring Refactoring some logging statements and adding new loggers Issue-ID: CCSDK-1748 Signed-off-by: Singal, Kapil (ks220y) <ks220y@att.com> Change-Id: I5676659eea01056a7d29206f13473a4361516755
2019-09-20Bug-fix - CDS Processor-DB & Default Dictionary not workingSteve Siani11-382/+580
Issue-ID: CCSDK-1718 Issue-ID: CCSDK-1717 Issue-ID: CCSDK-1746 Refactoring Resource Resolution Component Use Case: ---------- Input Value (IV): It can be API Input Value or API Default value If a Resource is marked as Input -> pick IV If a Resource is marked as other than Input -> pick IV -> if IV is not present then resolve it as per DataDictionary Definition ** Return Error if Resource is not resolved using assert : ResourceAssignmentUtils.assertTemplateKeyValueNotNull Change-Id: Ib92d970d07a1dcf7362ab499a398de49ae8323a1 Change-Id: I42c1c15070f77bc9e7e73cc0dc2ee3a30ff19564 Signed-off-by: Steve Siani <alphonse.steve.siani.djissitchi@ibm.com>
2019-09-18Merge "Roll to next snapshot" into elaltoDan Timoney8-9/+9
2019-09-18Updated Remote Ansible component to retrieve all artifacts and logs produced ↵Serge Simard2-31/+68
by job/workflow. Issue-ID: CCSDK-1741 Signed-off-by: Serge Simard <serge@agilitae.com> Change-Id: I83e8bac79977a08d16d5356c0d21af1d7897cfc0 Signed-off-by: Serge Simard <serge@agilitae.com>
2019-09-17Roll to next snapshotTimoney, Dan (dt5972)8-9/+9
Roll to next snapshot version Change-Id: I9ec9655ed36ededa95d75d14338835eb9e86804e Issue-ID: CCSDK-1701 Signed-off-by: Timoney, Dan (dt5972) <dtimoney@att.com>
2019-09-11Roll versions for El AltoTimoney, Dan (dt5972)8-9/+9
Roll to next El Alto snapshot Change-Id: I4e2016ab8711a74f781bd1421e35e289c716a612 Issue-ID: CCSDK-1701 Signed-off-by: Timoney, Dan (dt5972) <dtimoney@att.com>
2019-09-06Merge "Resource resolution fix + improvement."Dan Timoney1-2/+7
2019-09-05Resource resolution fix + improvement.Serge Simard1-2/+7
Fix: Fix for list typed data resolution retrieved from database table. Improvement: exposing occurrence property to template engine; useful, when doing multi-occurrence template generation, to index list data resolved previously. Issue-ID: CCSDK-1693 Signed-off-by: Serge Simard <serge@agilitae.com> Change-Id: I3a601ebabfcd42c439a515d3fe44ff4fc00b2314 Signed-off-by: Serge Simard <serge@agilitae.com>
2019-09-05Merge "RR Complex types and Unit tests coverage"Dan Timoney3-67/+505
2019-09-05Do not throw exception when no data exist.Alexis de Talhouët4-31/+24
The first time we're doing a diff, if a store operation has never been done before, we shouldn't throw exception, we should silently succeed and set the diff as empty value. Change-Id: Ie2371737758a1525da6b76ac85bceb7fe1aa4673 Issue-ID: CCSDK-1690 Signed-off-by: Alexis de Talhouët <adetalhouet89@gmail.com>
2019-09-04RR Complex types and Unit tests coverageSteve Siani3-67/+505
Issue-ID: CCSDK-1615 Signed-off-by: Steve Siani <alphonse.steve.siani.djissitchi@ibm.com> Change-Id: I1035aa05b4b038095c9d17fdcd00c462bed5085a
2019-08-29Resolve duplicate application property valuesBrinda Santh1-2/+2
Change-Id: I0813ff96388bce77eba9fbc9eff0eccf59a6be6a Issue-ID: CCSDK-1663 Signed-off-by: Brinda Santh <brindasanth@in.ibm.com>
2019-08-29Merge "Roll versions"Dan Timoney8-9/+9
2019-08-28Roll versionsTimoney, Dan (dt5972)8-9/+9
Roll versions in master branch Change-Id: I12ac01bc8769303c9d6fe7053306bdaa68f54396 Signed-off-by: Timoney, Dan (dt5972) <dtimoney@att.com>
2019-08-28rename config-data=>sdncOleg Mitsura2-5/+5
Issue-ID: CCSDK-1623 Signed-off-by: Oleg Mitsura <oleg.mitsura@amdocs.com> Change-Id: Id203a2c9673e732cba5425f8e301f84711fe3705
2019-08-27Add Get function in Netconf execution service for operational commandsSteve Siani6-2/+94
Issue-ID: CCSDK-1657 Signed-off-by: Steve Siani <alphonse.steve.siani.djissitchi@ibm.com> Change-Id: I12b82a7f1233fce256190ec0d35a5b85ad937b7b
2019-08-27Make source-db consistent across samplesOleg Mitsura12-183/+187
Issue-Id: CCSDK-1623 Signed-off-by: Oleg Mitsura <oleg.mitsura@amdocs.com> Change-Id: Iec7c6909c39c34894be11bfdac45f6394010d9cf
2019-08-16Add support for AWX workflow_job_template execution to Remote Ansible Executor.Serge Simard1-36/+77
Issue-ID: CCSDK-1357 Signed-off-by: Serge Simard <serge@agilitae.com> Change-Id: Id0014834f528a437d26127aa9fe1da4a8316bf22
2019-08-15Update to NeonTimoney, Dan (dt5972)8-8/+9
Update to neon versions Change-Id: I095b46cefa264006bea5722b952c789374870370 Issue-ID: CCSDK-1389 Signed-off-by: Timoney, Dan (dt5972) <dtimoney@att.com>
2019-08-13Merge "Resource Configuration Snapshots Executor and API"Brinda Santh Muthuramalingam15-0/+1188
2019-08-13Resource Configuration Snapshots Executor and APISerge Simard15-0/+1188
Issue-ID: CCSDK-1604 Signed-off-by: Serge Simard <serge@agilitae.com> Change-Id: I349c649e941431b48a309123489d26fb22e0e50a Signed-off-by: Serge Simard <serge@agilitae.com>
2019-08-12Handle all Data Type and DD with complex typeSteve Siani4-105/+99
Issue-ID: CCSDK-1611 Signed-off-by: Steve Siani <alphonse.steve.siani.djissitchi@ibm.com> Change-Id: I6bb9878ab4fea7024125fa4ce6293bfb8faee316
2019-08-12Merge "Resource resolution should return a string"Dan Timoney1-4/+4
2019-08-12Resource resolution should return a stringAlexis de Talhouët1-4/+4
When being called by SDNC, expected response format is a String, not a Json, then within SDNC we call jsonToTCtx by passing the String as input. When we receive the Json instead of a string, that function throw an exception because it expects a String. Also, SDNC marshall directly within the SLI context the Json object, but the path isn't the one being looked for. Finally, resource resolution, by its definition, as per as its model, should set the returned value as a string, not a json. Change-Id: Iffae3128507069c2546e179c17e50fb16e43f310 Issue-ID: CCSDK-1606 Signed-off-by: Alexis de Talhouët <adetalhouet89@gmail.com>
2019-08-09Add class model for workflow and resource data type.Brinda Santh2-0/+10
Change-Id: Ia42f56541bef0418dddb797c019ecda3afa6983b Issue-ID: CCSDK-1380 Signed-off-by: Brinda Santh <brindasanth@in.ibm.com>
2019-08-09Add resource definition resolution service.Brinda Santh11-168/+357
Change-Id: Ife75d290540e3ed0e0dfd0a82785a498607a2d25 Issue-ID: CCSDK-1577 Signed-off-by: Brinda Santh <brindasanth@in.ibm.com>
2019-08-09Merge "Fix occurrence really optional"Dan Timoney1-1/+1
2019-08-09Merge "Set resource data value when fetch from database"Dan Timoney1-3/+7
2019-08-09Merge "Default resolution status when storing result"Dan Timoney1-1/+1
2019-08-09Add resource assignment DSL.Brinda Santh2-11/+126
Change-Id: I44a3596c05b02faa171f90b9207f774ce34976a6 Issue-ID: CCSDK-1577 Signed-off-by: Brinda Santh <brindasanth@in.ibm.com>
2019-08-09Add resource definition DSL.Brinda Santh2-0/+172
Change-Id: I66d340727918842a26f07e8609a043c37e5089f4 Issue-ID: CCSDK-1577 Signed-off-by: Brinda Santh <brindasanth@in.ibm.com>
2019-08-09Add resource source template DSL.Brinda Santh4-112/+378
Change-Id: If68ce2e944700cb19380d34ff3b466a9c8633472 Issue-ID: CCSDK-1577 Signed-off-by: Brinda Santh <brindasanth@in.ibm.com>
2019-08-09Add property definition type DSL.Brinda Santh4-12/+12
Change-Id: I83a3d1391c60cd426236b55d0d399e273e7c15dc Issue-ID: CCSDK-1577 Signed-off-by: Brinda Santh <brindasanth@in.ibm.com>
2019-08-09Add resource source node type DSL definitions.Brinda Santh2-0/+200
Change-Id: If21c4964bda08e5d50e6fd11fb1d657e5bf8785c Issue-ID: CCSDK-1577 Signed-off-by: Brinda Santh <brindasanth@in.ibm.com>
2019-08-09Set resource data value when fetch from databaseAlexis de Talhouët1-3/+7
When doing resource resolution, if the same resolution-key, or the same resource-id/resource-type combo, is used, then the process will only try to resolve the resources set with a "failure" status from the RESOURCE_RESOLUTION db table. In the case the resource has previsously successfully been resolved, then we need to set its value in the resource assignemnt resolution store so it can be used later in the processing, for instance if another resource depends on it. Change-Id: Ifa3957fe3d2365e1f4347aa61ed963124f8a69f7 Issue-ID: CCSDK-1606 Signed-off-by: Alexis de Talhouët <adetalhouet89@gmail.com>
2019-08-09Default resolution status when storing resultAlexis de Talhouët1-1/+1
It can happen the resolve fails, and the status end up not being set, hence to avoid any exception, we default to failure. Change-Id: Ia5fb9ad954c109f394425f33c506e66d7e1969e4 Issue-ID: CCSDK-1606 Signed-off-by: Alexis de Talhouët <adetalhouet89@gmail.com>