aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2020-09-26Add a couple of sanity checks in DCMIgor D.C3-1/+21
When applying, check whether logical cloud is already applied. When deleting logical cloud, check if it exists. Issue-ID: MULTICLOUD-1143 Change-Id: I6aa11d8921db76e3d9e9632f915b55fe7ab8efab Signed-off-by: Igor D.C <igor.duarte.cardoso@intel.com>
2020-09-25Implement Terminate operation in DCMIgor D.C5-7/+179
Also makes minor changes to non-terminate code as a side-effect of supporting the new Terminate operation (such as including tagContext in the LogicalCloudClient implementation of LogicalCloudManager interface). These changes are/will also be leveraged by other operations. Issue-ID: MULTICLOUD-1143 Change-Id: Idbd2ec9f6cf0e5584a0f51cf4c16144db56d9fa0 Signed-off-by: Igor D.C <igor.duarte.cardoso@intel.com>
2020-09-25Introduce Monitor support for CSR resourceIgor D.C7-11/+288
These changes allow the Monitor to also track CSR (CertificateSigningResource) resources which will make it possible to know when a certificate has been issued by the K8s cluster signer. In turn, DCM will be able to read, store and use that certificate to generate kubeconfigs. Out-of-tree actions required: - publish monitor's docker image built from this source onto emcov2/monitor:latest Issue-ID: MULTICLOUD-1143 Change-Id: I7facd27bbfe08891151bb3b6a9a19948435e24e4 Signed-off-by: Igor D.C <igor.duarte.cardoso@intel.com>
2020-09-25Merge "Enhance error handling and HTTP codes in DCM"Ritu Sood10-19/+74
2020-09-25If getAppContextStatus fails, cancel waitForDoneIgor D.C1-1/+7
And log error appropriately. Essentially, add basic error handling and return from waitForDone. It is possible to trigger this error easily by having an rsync client wipe out etcd right after issuing an InvokeUninstallApp, as demonstrated by DCM (before it was adapted to use the new asynchronous rsync). Issue-ID: MULTICLOUD-1143 Change-Id: Id5c0d8da928738cb3cdc862eaefdb91db2eadf5f Signed-off-by: Igor D.C <igor.duarte.cardoso@intel.com>
2020-09-25Enhance error handling and HTTP codes in DCMIgor D.C10-19/+74
This improves error handling between DCM and the database resources and adds/corrects a lot more HTTP return codes in the API, respectively. Issue-ID: MULTICLOUD-1143 Change-Id: I3abc8025660e042f4c946f8bbfd280e1eb4c9583 Signed-off-by: Igor D.C <igor.duarte.cardoso@intel.com>
2020-09-25Merge "Let instructions exist under /subresource level"Ritu Sood1-1/+1
2020-09-24Add default/template config.json for DCMIgor D.C1-0/+14
DCM listening on port 9077 as default. The IP addresses for MongoDB and etcd are what we get by default on docker installations of those using emco deployments. Issue-ID: MULTICLOUD-1143 Change-Id: I9b30b278e3cf4fdb428665986e05c6916000b4e7 Signed-off-by: Igor D.C <igor.duarte.cardoso@intel.com>
2020-09-24Let instructions exist under /subresource levelIgor D.C1-1/+1
Instructions (order/dependency) can now belong to an app, a resource or a subresource. Issue-ID: MULTICLOUD-1143 Signed-off-by: Igor D.C <igor.duarte.cardoso@intel.com> Change-Id: Iee55c2bbb569de242e66f5a5456ac52025a00f0e
2020-09-24Cleanup tmp resources after instantiationRajamohan Raj2-10/+65
In this patch,we clean up the tmp files and directories generated during the process of instantiation. They include the tmp dirs with prefix : /tmp/helm-tmpl and /tmp/k8s-ext Issue-ID: MULTICLOUD-1206 Signed-off-by: Rajamohan Raj <rajamohan.raj@intel.com> Change-Id: I02d11bb2f8d920e35aae7343f041a53b1cd3f057
2020-09-23Merge "Add playbooks for v2 emco chart."Ritu Sood101-1/+112
2020-09-23Merge "Create helm chart for ICN/SDEWAN controllers"Ritu Sood12-0/+1755
2020-09-23Add playbooks for v2 emco chart.Todd Malsbary101-1/+112
Rename v2/onap4k8s to v2/emco, and rename sanity-check-for-v2.sh to emco.sh. This allows --plugins emco to be passed to installer.sh in place of --plugins onap4k8s. Issue-ID: MULTICLOUD-1181 Signed-off-by: Todd <todd.malsbary@intel.com> Change-Id: Idb427a8aa4c8aaff181965a540078c8cf6dd88aa
2020-09-23Enable installer.sh to use --plugins emco in place of onap4k8s.Todd1-20/+9
Issue-ID: MULTICLOUD-1181 Signed-off-by: Todd <todd.malsbary@intel.com> Change-Id: Ibfdf401d40398bf6b94543dedf4c860951d50de7
2020-09-23Create helm chart for ICN/SDEWAN controllersYao Le12-0/+1755
Create helm chart for sdewan-controller in KUD Issue-ID: MULTICLOUD-1104 Signed-off-by: Yao Le <le.yao@intel.com> Change-Id: Ic5d8daecdecba52c05d3ed38fa91ebd555ce5533
2020-09-22Fix missing operator-sdk dependency goautonegIgor D.C20-2395/+5643
goautoneg used to be available from bitbucket.org/ww/goautoneg but not anymore. operator-sdk has been importing it from github.com/munnerz/goautoneg for some time now but since we were using operator-sdk v0.9.0, it was still pointing at the old (now deleted) repository. This patch bumps operator-sdk to v0.19.0 (which doesn't use goautoneg from bitbucket), controller-runtime to v0.5.11, helm to v2.16.12 and all k8s.io dependencies to v0.16.9 (consistent with the k8s v1.16.9 we use). Code changes have been made to make all modules compatible with the new dependencies. All src go.sums have been cleaned (deleted and re-built). Issue-ID: MULTICLOUD-1143 Change-Id: I89fc39e9595b4a6a38dd90028b161bcecd3ef349 Signed-off-by: Igor D.C <igor.duarte.cardoso@intel.com>
2020-09-15Delete issues error code 404 when project name is invalidAditya Sharoff3-4/+21
Issue-ID: MULTICLOUD-1147 Signed-off-by: Aditya Sharoff <aditya.sharoff@intel.com> Change-Id: I659dfcb00b3f15bcf787ac3947f8755737b1fc39
2020-09-15Merge "Provide tests for nested labels provisioning"Eric Multanen3-1/+90
2020-09-14Provide tests for nested labels provisioningKonrad Bańka3-1/+90
Issue-ID: MULTICLOUD-1179 Signed-off-by: Konrad Bańka <k.banka@samsung.com> Change-Id: I2f8facefc5299408a47dd9f8bdba9410aa8171de
2020-09-11Merge "Use external service address and ports in sanity-check-for-v2.sh."Eric Multanen2-36/+77
2020-09-11Use external service address and ports in sanity-check-for-v2.sh.Todd Malsbary2-36/+77
This allows it to be used as an automated test. Issue-ID: MULTICLOUD-1181 Signed-off-by: Todd Malsbary <todd.malsbary@intel.com> Change-Id: Ib8636159291243bbb60f974984f296b67f6e397e
2020-09-11Merge "Adding validations for all JSON data across modules"Ritu Sood43-53/+373
2020-09-10Merge "Add log level support for orchestrator"Eric Multanen6-22/+50
2020-09-10Adding validations for all JSON data across modulesRajamohan Raj43-53/+373
Issue-ID: MULTICLOUD-1198 Signed-off-by: Rajamohan Raj <rajamohan.raj@intel.com> Change-Id: Idc2fbfd6e875bd7b662c7d60925aeb776b3f7bea
2020-09-10Merge "Provide capability to specify release-name during instantiation"Eric Multanen6-130/+205
2020-09-10Merge "Create monitor deployment yaml file"Ritu Sood2-6/+338
2020-09-09Create monitor deployment yaml fileEric Multanen2-6/+338
Combine all resources into a yaml file for deployment of the monitor program in a cluster. Issue-ID: MULTICLOUD-1065 Signed-off-by: Eric Multanen <eric.w.multanen@intel.com> Change-Id: I4b7029bb62d01dc166ad4e25a89f99d139057e0c
2020-09-09Changes to add state and retry logic to rsyncManjunath Ranganathaiah8-37/+426
- Adds retry watcher and related functionality. - Adds code to update, get the status from appcontext. - Adds logic to handle state transition during terminate. Issue-ID: MULTICLOUD-1005 Signed-off-by: Manjunath Ranganathaiah <manjunath.ranganathaiah@intel.com> Change-Id: I2ed76efd9d8b6f40fec547bbe8b7d8a86f69ce07
2020-09-10Merge "Changes to add state and retry logic to rsync"Eric Multanen8-37/+426
2020-09-09Add log level support for orchestratorRajamohan Raj6-22/+50
In this patch, a new config item for log-level is added, default log-level is set as "warn", for detailed logs, set log-level as "info" Issue-ID: MULTICLOUD-1200 Signed-off-by: Rajamohan Raj <rajamohan.raj@intel.com> Change-Id: I3205ce110a492ecc6a7c680e3d35e173a5624bb0
2020-09-09Merge "GET project Returns 404 instead of 500"Eric Multanen2-3/+3
2020-09-08Provide capability to specify release-name during instantiationKonrad Bańka6-130/+205
Allow release-name property to be provided during instantiation that, if provided, overrides release-name specified in profile. Additionally updated Makefile to allow easy compilation with different go version easily. Issue-ID: MULTICLOUD-1175 Signed-off-by: Konrad Bańka <k.banka@samsung.com> Change-Id: Id8db484369045cfb0bc99543a80317644fc838f9
2020-09-07Update project maturity statusBin Yang1-1/+1
Issue-ID: MULTICLOUD-1193 Signed-off-by: Bin Yang <bin.yang@windriver.com> Change-Id: I6d5b19f6e2da393b609732397d6903131f2fa50f
2020-09-04GET project Returns 404 instead of 500Aditya Sharoff2-3/+3
Issue-ID: MULTICLOUD-1148 Signed-off-by: Aditya Sharoff <aditya.sharoff@intel.com> Change-Id: I482cb8ff06ebf945020c5fc185479d9911aa946a
2020-09-02Merge "Update CLI with complete get implementation"Eric Multanen10-108/+536
2020-09-02Update CLI with complete get implementationRitu Sood10-108/+536
CLI updated with get functionality. Also adding vFw test case Issue-ID: MULTICLOUD-1065 Signed-off-by: Ritu Sood <ritu.sood@intel.com> Change-Id: I7bd22aca9fac9cb7b1f4c93d0ffad5b07b62cced
2020-09-02Update packages images pathRitu Sood7-11/+11
Issue-ID: MULTICLOUD-1065 Signed-off-by: Ritu Sood <ritu.sood@intel.com> Change-Id: I1ae50bafe7b4e40811d5d2061460e1c0240e3dde
2020-09-02Merge "Replace invalid literal true with valid string "true" in yaml."Ritu Sood1-1/+1
2020-09-01fix the vfw demo versionKuralamudhan Ramakrishnan3-3/+3
Issue-ID: MULTICLOUD-1146 Signed-off-by: Kuralamudhan Ramakrishnan <kuralamudhan.ramakrishnan@intel.com> Change-Id: I221cfc74809c3179c6bc389b513f20128138d24f
2020-09-01Merge "Enhance the status query API"Ritu Sood26-93/+967
2020-09-01Merge "Fix typos in README.md commands."Ritu Sood1-11/+14
2020-09-01Replace invalid literal true with valid string "true" in yaml.Todd Malsbary1-1/+1
Prior to this change qat_plugin_privileges.yaml fails to kubectl apply due to a validation error. Issue-ID: MULTICLOUD-1182 Signed-off-by: Todd Malsbary <todd.malsbary@intel.com> Change-Id: Ibe73c1b39d1164fe05ea5cdede74dc93f846c943
2020-08-31Merge "Add rsync registration changes to ncm too"Ritu Sood1-2/+66
2020-08-31Enhance the status query APIEric Multanen26-93/+967
This patch enhances the status query API. - The ResourceBundleState CRD is modified to just use the k8s Pod structure instead of a customized struct. - Status queries can either present results showing the rsync status of the composite app and resources or from information received from the cluster via the ResourceBundleState CR - Query parameters are provided to the API call to customize the query and response - Support for querying status of cluster network intents is added Issue-ID: MULTICLOUD-1042 Signed-off-by: Eric Multanen <eric.w.multanen@intel.com> Change-Id: Icca4cdd901e2f2b446414fade256fc24d87594cd
2020-08-31Add rsync registration changes to ncm tooEric Multanen1-2/+66
Changes made to remove dependency of rsyn registraion from orchestrator need to be added to ncm as well. Issue-ID: MULTICLOUD-1196 Signed-off-by: Eric Multanen <eric.w.multanen@intel.com> Change-Id: Ie572a127fd87cf50a1bb03163d98d3ebe901437e
2020-08-28Update go.mod for rsyncRajamohan Raj1-6/+2
Issue-ID: MULTICLOUD-1196 Signed-off-by: Rajamohan Raj <rajamohan.raj@intel.com> Change-Id: Ib5b59d025151f53d64d089a649a5b25f572d2c60
2020-08-27Remove the need for rysnc registration in orchestratorRajamohan Raj7-2072/+80
Removed dependency of rsync registration from orchestrator.RSYNC shall have a function NewRsyncInfo to initiate a new rsync independent of the orchestrator and make gRPC calls. Issue-ID: MULTICLOUD-1196 Signed-off-by: Rajamohan Raj <rajamohan.raj@intel.com> Change-Id: I16bbac6a6865cf3c4ee7b763dac72abe2ed1ad0a
2020-08-27Fix typos in README.md commands.Todd Malsbary1-11/+14
Issue-ID: MULTICLOUD-1180 Signed-off-by: Todd Malsbary <todd.malsbary@intel.com> Change-Id: Iba3c98406daf5728e26989c36f6ffee9e07aaea0
2020-08-26Improve configure API to support k8s resource updationsvamshi.nemalikonda8-2/+145
Code fore review. Issue-ID: MULTICLOUD-1124 Change-Id: I6bb9786660f6760c15008132f1c254e7f9b39561 Signed-off-by: vamshi.nemalikonda <vn00480215@techmahindra.com> Improve configure API to support k8s resource updations create resource enabled. Issue-ID: MULTICLOUD-1124 Change-Id: I6bb9786660f6760c15008132f1c254e7f9b39561 Signed-off-by: vamshi.nemalikonda <vn00480215@techmahindra.com> Improve configure API to support k8s resource updations code improvements. Issue-ID: MULTICLOUD-1124 Change-Id: I6bb9786660f6760c15008132f1c254e7f9b39561 Signed-off-by: vamshi.nemalikonda <vn00480215@techmahindra.com> Improve configure API to support k8s resource updations fixing unit test failures. Issue-ID: MULTICLOUD-1124 Change-Id: I6bb9786660f6760c15008132f1c254e7f9b39561 Signed-off-by: vamshi.nemalikonda <vn00480215@techmahindra.com>
2020-08-25CLI code for EMCORitu Sood14-0/+1358
Add cli emcoctl as a client utility for EMCO Issue-ID: MULTICLOUD-1065 Signed-off-by: Ritu Sood <ritu.sood@intel.com> Change-Id: Ie1951910628469b5a7e75550b9daa34ba377d1a4