summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2020-08-07Rsync change behaviour on error handlingRitu Sood2-49/+76
If error in any resource stop processing and end all goroutines. Also return gRpc call after starting the goroutine. Adds retry checks also Issue-ID: MULTICLOUD-1005 Signed-off-by: Ritu Sood <ritu.sood@intel.com> Change-Id: I1189e02f0c0426181fdc995a0c4816ceaa64ec7d
2020-08-07Merge "Correct add-cluster metadata form field syntax"Eric Multanen1-2/+2
2020-08-05DCM - fix code formatting via vscode (II)Igor D.C15-1695/+1680
Part two of fixing code format/syntax with Visual Studio Code. Furthermore, also switched line endings from CRLF to LF (all test files seemed to be ending this way, unlike the other Go files). Issue-ID: MULTICLOUD-1143 Signed-off-by: Igor D.C <igor.duarte.cardoso@intel.com> Change-Id: Iaae868c780a42ea82ca1208e3cbdc3ec6ffd1f97
2020-08-05Merge "Add cleanup step to dcm_call_api.sh test script"Ritu Sood1-15/+68
2020-08-05Merge "Update Service ports"Eric Multanen5-22/+23
2020-08-03Update Service portsRitu Sood5-22/+23
Keep same ports for all installations Issue-ID: MULTICLOUD-1065 Signed-off-by: Ritu Sood <ritu.sood@intel.com> Change-Id: I4009839fe6ff6915803b4f3e630075996efc371a
2020-08-03Add StateInfo structure synced resourcesEric Multanen20-112/+396
Add a StateInfo structure to the Cluster and Deployment-Intent-Group resources to keep track of the lifecycle state of these resources. Moved the appcontext id that was being kept into this structure as well. Enabled the approve state (and API) for the deployment intent group. Issue-ID: MULTICLOUD-1042 Signed-off-by: Eric Multanen <eric.w.multanen@intel.com> Change-Id: I36602d8a0658d9d6d37b8799f9a372a7d1042496
2020-08-03Sanity test script for new releases.Rajamohan Raj3-5/+513
Developed a script which can be used to test a new release and confirm that the minimum components like clm, instantiation by orchestrator and rsync are working fine after the code change. Issue-ID: MULTICLOUD-1174 Signed-off-by: Rajamohan Raj <rajamohan.raj@intel.com> Change-Id: I7d519fa88b71fb34d13b7d61f3f8b36edc9fa5f3
2020-07-29Add cleanup step to dcm_call_api.sh test scriptIgor D.C1-15/+68
dcm_call_api.sh exercises some DCM API calls. This patch adds an optional cleanup phase where it also exercises the API calls to delete resources. Plus added two extra GET calls for individual clusters and minor tweaks like set DCM port to 9077 (prevent conflict with orchestrator). Issue-ID: MULTICLOUD-1143 Signed-off-by: Igor D.C <igor.duarte.cardoso@intel.com> Change-Id: I7a00edb5c986b26ec4be739bf8b01ac362abec90
2020-07-28Merge "Adds PUT api to v2/projects"Eric Multanen6-7/+257
2020-07-28DCM - fix code formatting via vscodeIgor D.C4-903/+871
Visual Studio Code automatic code formatting was performed on the 4 modified DCM files. Issue-ID: MULTICLOUD-1143 Signed-off-by: Igor D.C <igor.duarte.cardoso@intel.com> Change-Id: I24d2b44181b5c0737df7cb4541f9eede0950211a
2020-07-26Correct add-cluster metadata form field syntaxIgor D.C1-2/+2
Currently, the "metadata" form field expects JSON with the top-level dictionary "metadata", and then the actual data inside. The Postman collection doesn't provide that top-level dict which results in a failed API call when using the Postman request as is. Issue-ID: MULTICLOUD-1143 Signed-off-by: Igor D.C <igor.duarte.cardoso@intel.com> Change-Id: I5f0c4b699eb38f7e133e9d3d55eb2a0eda890601
2020-07-24Adds PUT api to v2/projectsLarry Sachs6-7/+257
Add functionality to support the PUT api for v2/projects/{project-name} Also add unit tests for the PUT api Issue-ID: MULTICLOUD-1130 Change-Id: Ia271569c5f0dec3152952e64171fd5a182aaa333 Signed-off-by: Larry Sachs <larry.j.sachs@intel.com>
2020-07-23Fix ncm port in Helm ChartRitu Sood2-3/+4
Issue-ID: MULTICLOUD-1065 Signed-off-by: Ritu Sood <ritu.sood@intel.com> Change-Id: I45dfca5007e030420da9228ff698bfb729348dd4
2020-07-23Merge "Postman Collection for EMCO API's"Eric Multanen1-0/+15748
2020-07-21Add newline to end of orchestrator/scripts/build.shLarry Sachs1-1/+2
Fixes the build warning 'E004 File did not end with a newline' Issue-ID: MULTICLOUD-1131 Signed-off-by: Larry Sachs <larry.j.sachs@intel.com> Change-Id: I0a69fe25f93feb6a700c140c9dae9c214d5d4dd0
2020-07-17Merge "Move status tracking CR to rsync"Ritu Sood6-66/+109
2020-07-17Merge "Add APIs for getAll DeploymentIntents and GetAll GenericPlacemnetIntents"Ritu Sood5-2/+145
2020-07-17Merge "Add API to query all composite apps under a project"Ritu Sood4-1/+61
2020-07-17Add APIs for getAll DeploymentIntents and GetAll GenericPlacemnetIntentsRajamohan Raj5-2/+145
In this patch, implemented two separate routes for getting all genericPlacemnetIntents and getting all deployment intents. Issue-ID: MULTICLOUD-1128 Signed-off-by: Rajamohan Raj <rajamohan.raj@intel.com> Change-Id: I81fadb126752788da7c459aa43896fafa583310e
2020-07-17Merge "Update host_providers/vagrant/setup.sh for virtualbox"Ritu Sood1-1/+1
2020-07-17Merge "Update vagrant readme to include info about sample yml files"Ritu Sood1-0/+8
2020-07-17Merge "Add steps to readme file to cleanup emco services."Ritu Sood1-0/+9
2020-07-17Update vagrant readme to include info about sample yml filesLarry Sachs1-0/+8
Updates the kud/hosting_providers/vagrant/README.md to include info about the ./config/samples/pdf.yml.* sample files. Issue-ID: MULTICLOUD-1129 Change-Id: I5ab02948932d8a9e9e5a8cfc65350726183cd78d Signed-off-by: Larry Sachs <larry.j.sachs@intel.com>
2020-07-17Add steps to readme file to cleanup emco services.Manjunath Ranganathaiah1-0/+9
Issue-ID: MULTICLOUD-1005 Signed-off-by: Manjunath Ranganathaiah <manjunath.ranganathaiah@intel.com> Change-Id: I61cfee24223811cb77359d6537d496556e44f4f2
2020-07-17Add API to query all composite apps under a projectRajamohan Raj4-1/+61
In this patch implemented a new route to query all compApps under a project. Issue-ID: MULTICLOUD-1127 Signed-off-by: Rajamohan Raj <rajamohan.raj@intel.com> Change-Id: I5d5d4861539edd2ca0eccff16d94b75439e14db7
2020-07-17Merge "Update resource name for docker images"Eric Multanen6-20/+20
2020-07-16Implement GetAll projects handlerRajamohan Raj4-0/+54
In this patch implement the route: /v2/projects. Issue-ID: MULTICLOUD-1126 Signed-off-by: Rajamohan Raj <rajamohan.raj@intel.com> Change-Id: Ia38aa560a74c26b8528d6bd579038c1b80b4d3c9
2020-07-16Move status tracking CR to rsyncEric Multanen6-67/+110
Handle creation and deletion of the ResourceBundleState Custom Resource per app/cluster in the rsync microservice instead of adding it to the resources of the composite application in the orchestrator service. Issue-ID: MULTICLOUD-1125 Signed-off-by: Eric Multanen <eric.w.multanen@intel.com> Change-Id: Id0c0639ff62e788628e78f972107a7603c27abfb
2020-07-16Update resource name for docker imagesRitu Sood6-20/+20
Change the image name to stable for helm chart and developer scripts Issue-ID: MULTICLOUD-1065 Signed-off-by: Ritu Sood <ritu.sood@intel.com> Change-Id: I11e1773949279c7c05100d2988af9ad3aacbd43d
2020-07-15Change the Info to print resource nameRitu Sood1-2/+2
Issue-ID: MULTICLOUD-1005 Signed-off-by: Ritu Sood <ritu.sood@intel.com> Change-Id: Ifca8f939b0d2e8baccb7c97b3a1c857e16b59fa3
2020-07-15Merge "Update Rsync"Eric Multanen22-847/+3686
2020-07-13Postman Collection for EMCO API's6.0.0-ONAPfrankfurtRitu Sood1-0/+15748
Issue-ID: MULTICLOUD-1096 Signed-off-by: Ritu Sood <ritu.sood@intel.com> Change-Id: Id0809648f1f6beb527a359f28a7ed0e704030257
2020-07-10Update RsyncRitu Sood22-847/+3686
Changed Rsync to use ordered install. Changed to use cli-runtime instead of go-client. Based on code from repo https://github.com/johandry/klient Issue-ID: MULTICLOUD-1005 Signed-off-by: Ritu Sood <ritu.sood@intel.com> Change-Id: I4c2537cb74bd4d24a409cc1f0b7f9ee0875a4e39
2020-07-09Fixing the triple dash issue in YAML.Rajamohan Raj5-26/+38
In this patch, identified the root cause of failure due to triple dash and fixed it. Also reverted back to original helm charts for M3db operator. Issue-ID: MULTICLOUD-1114 Signed-off-by: Rajamohan Raj <rajamohan.raj@intel.com> Change-Id: I175cd134cc751bf4b59e72c9c79e0e658a62f348
2020-07-08Update host_providers/vagrant/setup.sh for virtualboxLarry Sachs1-1/+1
host_providers/vagrant/setup.sh -p virtualbox update to /etc/apt/sources.list is now 'bionic' (was 'trusty') Issue-ID: MULTICLOUD-1122 Signed-off-by: Larry Sachs <larry.j.sachs@intel.com> Change-Id: I0cd989466bab4a571b9e18a5e666c8516b168c1d
2020-07-08Merge "Update Baremetal Deployment README"Ritu Sood1-8/+113
2020-07-08Update Baremetal Deployment READMELarry Sachs1-8/+113
Updates the Baremetal README.md with info from https://wiki.onap.org/display/DW/Kubernetes+Baremetal+deployment+setup+instructions These scripts were tested on Ubuntu 18.04 Issue-ID: MULTICLOUD-1108 Change-Id: I16d41f3459deef16d156aa85a115aee57b78cf09 Signed-off-by: Larry Sachs <larry.j.sachs@intel.com>
2020-07-08Add terminate support to orchestrator and ncmEric Multanen11-113/+174
Complete the basic terminate support for the orchestrator and ncm services. 1. When terminate REST API is invoked on a deployment intent group, call the uninstall grpc api to rsync and then remove the app context. 2. When terminate REST API is invoked on a cluster, add the uninstall grpc api call to rsync to remove the network resources from the clusters. Issue-ID: MULTICLOUD-1040 Signed-off-by: Eric Multanen <eric.w.multanen@intel.com> Change-Id: I181e891a8c7c973970af061f9ff07d80c3bb64f9
2020-07-08Adds composite app status update and queryEric Multanen26-312/+834
This patch provides the basic framework for supporting monitoring of composite application resources in clusters. 1. Updates to the monitor files for use with v2. 2. Invokes the Watcher process per cluster/app when the app is instantiated. 3. Adds a ResourceBundleState CR resource to the cluster/app so that monitor will be able to update status to it. 4. Watcher updates appropriate appcontext status object when updates are made in clusters by monitor 5. Update appcontext library to define a status handle and object at the app/cluster level 6. Labels resources with an appropriate tracking label to coordinate with the ResourceBundleState CR Issue-ID: MULTICLOUD-1042 Signed-off-by: Eric Multanen <eric.w.multanen@intel.com> Change-Id: If007c1fd86ca7a65bb941d1776cfd2d3afed766b
2020-07-08Add watch functionality for Status CRRitu Sood2-5/+139
Status CR gets updated when there is status update for the resources scheduled by Rsync. On change to status CR the watch in the patch will be triggered and the update can be handled. Issue-ID: MULTICLOUD-1042 Signed-off-by: Ritu Sood <ritu.sood@intel.com> Change-Id: I2a46654dca29c05586dbf1e009bec89b0fa75b67
2020-07-07Fix go.mod for monitorLarry Sachs1-3/+0
Removed replace directives that were causing the local build to fail. Issue-ID: MULTICLOUD-1101 Signed-off-by: Larry Sachs <larry.j.sachs@intel.com> Change-Id: Ie6604f98a342356af0e477613d5b3840352b6b38
2020-07-07Script for M3Db deployment through orchestratorRajamohan Raj3-0/+11
In this patch, the prometheus-collectd deployment script through orchestrator is enchanced to include M3Db deployment. Issue-ID: MULTICLOUD-1114 Signed-off-by: Rajamohan Raj <rajamohan.raj@intel.com> Change-Id: Idd085be16cce1e5ae00f6f70c8a265f8e74ffffa
2020-07-07Script for M3DB operator deployment through orchestratorRajamohan Raj36-51/+434
In this patch, wrote a script for auto deploy of M3DB operator through the orchestrator. Issue-ID: MULTICLOUD-1112 Signed-off-by: Rajamohan Raj <rajamohan.raj@intel.com> Change-Id: Ia1951c5ef0de20e9b47f6ab5330dec8db5a1c46f
2020-07-07Script for prometheus as composite app using orchestratorRajamohan Raj5-46/+642
In this patch, identified few issues with rsync and came with a work around for handling list as a kind. Wrote a scipt which can deploy prometheus as a composite app using orchestrator. Issue-ID: MULTICLOUD-1110 Signed-off-by: Rajamohan Raj <rajamohan.raj@intel.com> Change-Id: Ib7172c16a2f37dbc4715e59c5be217e154cd3be0
2020-07-06Update MultiCloud committer infoBin Yang1-32/+18
Change-Id: Iacb286298c9a1ab2b84ef0d09140cdf5f2cc9f9b Issue-ID: MULTICLOUD-1115 Signed-off-by: Bin Yang <bin.yang@windriver.com>
2020-06-30Merge "Fixing issues in OpenAPI document"Ritu Sood1-353/+486
2020-06-30Merge "Fix Readme for running v2 API microservices"Ritu Sood1-3/+13
2020-06-29Fix Readme for running v2 API microservicesLarry Sachs1-3/+13
Reformat deployments/kubernetes/Readme.md file in md style. Issue-ID: MULTICLOUD-1105 Change-Id: Ie2190dec0ee8b0251bddf765b153fbccda2b912b Signed-off-by: Larry Sachs <larry.j.sachs@intel.com>
2020-06-29Fixing issues in OpenAPI documentRitu Sood1-353/+486
Issue-ID: MULTICLOUD-1096 Signed-off-by: Ritu Sood <ritu.sood@intel.com> Change-Id: I949fead4770e7604322a4645aaa552c54048bd31