aboutsummaryrefslogtreecommitdiffstats
path: root/src
AgeCommit message (Collapse)AuthorFilesLines
2020-04-20Implement Apply API for DCMItohan6-63/+661
This implents the Apply API. When the apply API is called, this reads from mongodb and creates resources in ETCD Issue-ID: MULTICLOUD-996 Signed-off-by: Itohan Ukponmwan <itohan.ukponmwan@intel.com> Change-Id: I5b9c8b44673e66296d1339b5b3f4afc5f4cae9cc
2020-04-17Added intentResolverRajamohan Raj10-51/+190
IntentResolver shall collect the clusterdetails for each of the app where it needs to be deployed. This shall be called by the instantiation code. Issue-ID: MULTICLOUD-1041 Signed-off-by: Rajamohan Raj <rajamohan.raj@intel.com> Change-Id: I7d29901e46a5349ef502786c187c1c88bea61a12
2020-04-17Merge "Add apply API for network intents"Ritu Sood8-20/+316
2020-04-17Remove orchestrator dependency from ncmRajamohan Raj1-8/+2
NCM shall be like a library which orchestrator shall call as and when required. NCM will assume that whenever orchestrator calls it all the validation of orchestrator components is done, so NCM shall not validate orchestrator components. Otherwise, if NCM calls the orchestration, this will result in cyclic import issue. Issue-ID: MULTICLOUD-1041 Signed-off-by: Rajamohan Raj <rajamohan.raj@intel.com> Change-Id: Ie352c730ffd39863d6de23d6a9a9a934f460392b
2020-04-16Add apply API for network intentsEric Multanen8-20/+316
Support POST API to 'apply' and 'terminate' network and providernetwork intents for a given cluster. Issue-ID: MULTICLOUD-1029 Signed-off-by: Eric Multanen <eric.w.multanen@intel.com> Change-Id: I8c9bae9e93aeeb68654eaab1f15de9883c22215c
2020-04-16Merge "Mongo api changes"Ritu Sood2-3/+31
2020-04-16Update brokerhandler API to conform with /v1/ path patternKonrad Bańka2-8/+9
Issue-ID: MULTICLOUD-1053 Signed-off-by: Konrad Bańka <k.banka@samsung.com> Change-Id: I8f567bed2783e7257784cd4ce4c9f76207634e7a
2020-04-14Mongo api changesEric Multanen2-3/+31
Add RemoveTag call to allow removal of attribute from a mongo document. Allow find to return and empty list. Issue-ID: MULTICLOUD-1029 Signed-off-by: Eric Multanen <eric.w.multanen@intel.com> Change-Id: I315efb8a4da485b697727254ccc9a5828f11a0d0
2020-04-13Added query routes for deploymentIntentGroupRajamohan Raj5-14/+155
In this patch added a route which can query allIntents belonging to a DeploymentIntentGroup and another route for querying all intents under an intent in a deploymentIntentGroup Issue-ID: MULTICLOUD-1049 Signed-off-by: Rajamohan Raj <rajamohan.raj@intel.com> Change-Id: I06ec4d2ee8dae2aeca77e4db3ca690863014cc62
2020-04-13Merge "Adding query APIs for AppIntents"Ritu Sood9-28/+250
2020-04-13Test cases for resolving the helm templatesRajamohan Raj37-79/+659
Added test cases for overriding values and resolving the helm charts. Also addressed the merge conflicts and review comments Issue-ID: MULTICLOUD-1041 Signed-off-by: Rajamohan Raj <rajamohan.raj@intel.com> Change-Id: I511e8e2e71c60e878df434370fc053f09cda1f66
2020-04-13Merge "Resolve the helm templates"Ritu Sood20-21/+938
2020-04-11Resolve the helm templatesRajamohan Raj20-21/+938
Resolving the helm templates for each of the apps in the compositeApp by utilizing the helm libraries and thus getting the sorted templates with all values rendered. This is a subtask of adding instantiation APIs. Issue-ID: MULTICLOUD-1041 Signed-off-by: Rajamohan Raj <rajamohan.raj@intel.com> Change-Id: Id4fddda69b5276b2409d835723b11367400ab6ea
2020-04-10APIs for network, workload and interface intentsEric Multanen9-4/+1292
Includes network controller intent and underlying network workload intent and workload interface intent APIs. Issue-ID: MULTICLOUD-1029 Signed-off-by: Eric Multanen <eric.w.multanen@intel.com> Change-Id: I9bb34e42785b16f39af81335b1f94dd5bb15d931
2020-04-10Add Distributed Cloud Managerenyinna123422-0/+3227
This handles RESTful API CRUD operations for logical clouds, CLuster, User Permissions, Quota, and Key Value pairs. See: https://wiki.onap.org/x/tAiVB Issue-ID: MULTICLOUD-996 Signed-off-by: Enyinna Ochulor <enyinna.ochulor@intel.com> Change-Id: I654a304cd682f762c02cfd92b4483d1edea63fca
2020-04-09Adding query APIs for AppIntentsRajamohan Raj11-31/+252
In this patch the following tasks where performed: 1. Added APIs for query Intents for each App in the compositeApp. For example, you can see all intents of collectd or prometheus seperately if both formed a compositeApp Collection. 2. Added 'provider-name' parameter to denote the cluster objects used in all intents. Earlier we had only clusterName and clusterlabel to denote a cluster. Modified the tests also for this. 3. Fixed bugs in the plugin_collection_v2.sh. 4. Fixed some minor logging and formatting bugs. Issue-ID: MULTICLOUD-1048 Signed-off-by: Rajamohan Raj <rajamohan.raj@intel.com> Change-Id: Ic452d7ba5d98bb265eb301de84d679d1abe0e34e
2020-04-08Add validation routinesEric Multanen2-4/+57
Splitting out new orchestration validation routines from other patch for ncm which uses them - so these changes can go in first. Should fix build issues. Issue-ID: MULTICLOUD-1029 Signed-off-by: Eric Multanen <eric.w.multanen@intel.com> Change-Id: I89c4163e1204d444e48a4786acececa20fce1844
2020-04-07Adding function to Query cluster based on labelRitu Sood5-1/+62
Add Query endpoint and implements returning list of clusters with label. Issue-ID: MULTICLOUD-922 Signed-off-by: Ritu Sood <ritu.sood@intel.com> Signed-off-by: Eric Multanen <eric.w.multanen@intel.com> Change-Id: I879b5e9002a0cbc9191abb99f1e164ee2b1c6581
2020-04-01Add init and reinit interfaces to context libsManjunath Ranganathaiah4-253/+365
Issue-ID: MULTICLOUD-1005 Signed-off-by: Manjunath Ranganathaiah <manjunath.ranganathaiah@intel.com> Change-Id: I9839d265840c25b2fbfbe0265a65c65388eaebcb
2020-03-25App context library interface for etcdManjunath Ranganathaiah2-0/+573
Issue-ID: MULTICLOUD-1005 Signed-off-by: Manjunath Ranganathaiah <manjunath.ranganathaiah@intel.com> Change-Id: Id4d3357fe851f6653112d24ac5d48b6dbaa6e888 Signed-off-by: Manjunath Ranganathaiah <manjunath.ranganathaiah@intel.com>
2020-03-23Sync up Key json attribute namesEric Multanen10-26/+26
Sync up names used for the Key structures and tagMeta attribute names. This should ensure that the mongo db routines will query properly. Issue-ID: MULTICLOUD-1029 Signed-off-by: Eric Multanen <eric.w.multanen@intel.com> Change-Id: I05da9de92a22cb73d60a7349c3cc5bd4cedd99a5
2020-03-23Add Network and Provider Network Intent API supportEric Multanen8-46/+999
Add API for CRUD operations to manage network and provider-network intent resources. Issue-ID: MULTICLOUD-1029 Signed-off-by: Eric Multanen <eric.w.multanen@intel.com> Change-Id: If3c71691b3825db50eacdb0ea87b0d5c436ad80f
2020-03-23Create network service with cluster APIEric Multanen19-52/+393
Creates a new network customization and configuration service. Seed it by moving the cluster-provider and cluster API from the orchestrator service to this new service. More APIs to follow. Just put a Dockerfile in the ncm/scripts directory for now. See: https://wiki.onap.org/pages/viewpage.action?pageId=79201398 Issue-ID: MULTICLOUD-1029 Signed-off-by: Eric Multanen <eric.w.multanen@intel.com> Change-Id: Iea1b1151e5f87fecaca9cfe8c9746a59eb447a7a
2020-03-20Merge "Add update interface to run time context library"Ritu Sood2-0/+63
2020-03-19Add more validation methodsEric Multanen6-144/+734
Add more validation methods and move to package orchestration/infra/validation Issue-ID: MULTICLOUD-1029 Signed-off-by: Eric Multanen <eric.w.multanen@intel.com> Change-Id: Id37bbb73fff9ab115ec49c88cdd3e08ee6be3098
2020-03-18Added the new plugin_collection_v2 script.Rajamohan Raj1-1/+1
The script calls the major creation APIs in v2 starting from project api, composite app, composite profile, generic placement intent & deployment intent. This should be used every time we need to test the Instantiation code. Also added the helm charts for composite app consisting of collectd and prometheus. Issue-ID: MULTICLOUD-1035 Signed-off-by: Rajamohan Raj <rajamohan.raj@intel.com> Change-Id: I95237c234cca674dd54f4ef7527083b5cf3e0a55
2020-03-16Add update interface to run time context libraryManjunath Ranganathaiah2-0/+63
Issue-ID: MULTICLOUD-1005 Change-Id: Ie6a8f5d83f56ea12107fdf81fe6819b1637b252a Signed-off-by: Manjunath Ranganathaiah <manjunath.ranganathaiah@intel.com>
2020-03-12Added getAllApps functionality in App apiSrivahni Chivukula3-0/+54
Issue-ID: MULTICLOUD-994 Signed-off-by: Srivahni Chivukula <srivahni.chivukula@intel.com> Change-Id: I459504c45b9bedea0e6bc15ca57e7876d5f59d28
2020-03-12Modified project api to use new mongodb methodsSrivahni Chivukula1-4/+4
Issue-ID: MULTICLOUD-994 Signed-off-by: Srivahni Chivukula <srivahni.chivukula@intel.com> Change-Id: I8e7e17a1dab164c4ea7d50743b20f0e08958a957
2020-03-12Add apps under composite app APISrivahni Chivukula13-30/+801
Implemented create, get and delete handlers for the apps under composite app. Added unit tests Added remove function to mockdb Handled multipart POST request to upload file along with app data. Issue-ID: MULTICLOUD-998 Signed-off-by: Srivahni Chivukula <srivahni.chivukula@intel.com> Change-Id: I25c1faba1212c0cc881c2cd599e8e66a7b93033e
2020-03-12Added tests to Composite App APISrivahni Chivukula6-6/+242
Issue-ID: MULTICLOUD-994 Signed-off-by: Srivahni Chivukula <srivahni.chivukula@intel.com> Change-Id: I39f3dc28bca3ff7cefda006cb96eb86c2c069efe
2020-03-12Run time context interface libraryManjunath Ranganathaiah2-0/+771
Issue-ID: MULTICLOUD-1005 Signed-off-by: Manjunath Ranganathaiah <manjunath.ranganathaiah@intel.com> Change-Id: I12c55441b5701387ead851b8294088457f4401b7
2020-03-11Add Delete and DeleteAll functionality to etcdRitu Sood2-1/+16
Currently only supports DeleteAll. Issue-ID: MULTICLOUD-871 Signed-off-by: Ritu Sood <ritu.sood@intel.com> Change-Id: I9ee03648462c5a04481c89bf864cdec35cfd4230
2020-03-10Handle uncommon format of proper tar archiveKonrad Bańka2-2/+46
Provide proper handling of tar archives containing "current directory", but stored in format: ``` . file2.txt dir1/ dir1/file1.txt ``` instead of typical: ``` ./ ./file2.txt ./dir1/ ./dir1/file1.txt ``` Issue-ID: MULTICLOUD-1025 Signed-off-by: Konrad Bańka <k.banka@samsung.com> Change-Id: Ideffd019255a9f2d029527066e5a6a03d45a2d7b
2020-03-06Merge "Adding Remove function to Mongo"Bin Yang4-4/+50
2020-03-06Merge "Change DB Name to accept variable"Ritu Sood3-7/+7
2020-03-05Adding Remove function to MongoRitu Sood4-4/+50
Adding remove function to remove a document only if no child refrences exist. Issue-ID: MULTICLOUD-922 Signed-off-by: Ritu Sood <ritu.sood@intel.com> Change-Id: I7d199502635170a65f7029360c7436ac0389f2a9
2020-03-05Add API support to handle App ProfilesEric Multanen11-26/+748
Add support for profiles per App under composite profiles. See: https://wiki.onap.org/display/DW/V2+API+Specification#V2APISpecification-Addingprofileperapplication Issue-ID: MULTICLOUD-997 Signed-off-by: Eric Multanen <eric.w.multanen@intel.com> Change-Id: I8569066d903327d640e315d0de835605ca1779c0
2020-03-05Composite Profile API and HandlerDileep Ranganathan10-29/+712
Implemented Composite Profile API and handler, adding create, get and delete handlers for the composite profile. Issue-ID: MULTICLOUD-997 Signed-off-by: Eric Multanen <eric.w.multanen@intel.com> Signed-off-by: Dileep Ranganathan <dileep.ranganathan@intel.com> Change-Id: Iab105cf88ef4635038cd36e90f3251bc900b2faf
2020-03-05Change DB Name to accept variableenyinna12343-7/+7
This enables the initialization of the mongo database name with a variable. Issue-ID: MULTICLOUD-996 Signed-off-by: Enyinna Ochulor <enyinna.ochulor@intel.com> Change-Id: Id3f07b47cedde16235ee7078e1e6f4d287106d29
2020-03-05Merge "Updating AAI wit resource info : part4"Ritu Sood2-0/+245
2020-03-05Merge "Updating AAI wit resource info : part3"Ritu Sood6-0/+649
2020-03-05Merge "Updating AAI wit resource info : part2"Ritu Sood1-0/+94
2020-03-05Merge "Updating AAI wit resource info : part1"Ritu Sood4-0/+588
2020-03-04Add DeploymentIntentGroup APIsRajamohan Raj16-47/+941
Implemented the routes for creation, deletion and getting DeploymentIntentGroup. Added routes for adding, getting and deleting intents. Issue-ID: MULTICLOUD-1002 Signed-off-by: Rajamohan Raj <rajamohan.raj@intel.com> Change-Id: I07ba3744107bcf30aa30ed89caa21bf474c0d92a
2020-03-04Updating AAI wit resource info : part4vamshi.nemalikonda2-0/+245
adding utils. Issue-ID: MULTICLOUD-457 Change-Id: Icf97d13a6c683b8f09491491ed2d3909f3378704 Signed-off-by: vamshi.nemalikonda <vn00480215@techmahindra.com> Updating AAI wit resource info : part4 improvements for utils. Issue-ID: MULTICLOUD-457 Change-Id: Icf97d13a6c683b8f09491491ed2d3909f3378704 Signed-off-by: vamshi.nemalikonda <vn00480215@techmahindra.com>
2020-03-04Updating AAI wit resource info : part1vamshi.nemalikonda4-0/+588
review comments implemented. Issue-ID: MULTICLOUD-457 Change-Id: Icf97d13a6c683b8f09491491ed2d2709f3700107 Signed-off-by: vamshi.nemalikonda <vn00480215@techmahindra.com> Updating AAI wit resource info : part1 improvements for controller. Issue-ID: MULTICLOUD-457 Change-Id: Icf97d13a6c683b8f09491491ed2d2709f3700107 Signed-off-by: vamshi.nemalikonda <vn00480215@techmahindra.com>
2020-03-04Updating AAI wit resource info : part2vamshi.nemalikonda1-0/+94
adding constants. Issue-ID: MULTICLOUD-457 Change-Id: Icf97d13a6c683b8f09491491ed2d2709f3800808 Signed-off-by: vamshi.nemalikonda <vn00480215@techmahindra.com> Updating AAI wit resource info : part2 review comments fixed for constants. Issue-ID: MULTICLOUD-457 Change-Id: Icf97d13a6c683b8f09491491ed2d2709f3800808 Signed-off-by: vamshi.nemalikonda <vn00480215@techmahindra.com>
2020-03-04Updating AAI wit resource info : part3vamshi.nemalikonda6-0/+649
adding api module. Issue-ID: MULTICLOUD-457 Change-Id: Icf97d13a6c683b8f09491491ed2d2709f4700107 Signed-off-by: vamshi.nemalikonda <vn00480215@techmahindra.com> Updating AAI wit resource info : part3 review comments fixes. Issue-ID: MULTICLOUD-457 Change-Id: Icf97d13a6c683b8f09491491ed2d2709f4700107 Signed-off-by: vamshi.nemalikonda <vn00480215@techmahindra.com>
2020-03-03Implemented AppIntents and GenPlaceIntentsRajamohan Raj14-45/+1186
Implemented the routes for creating, getting, and deleting generic placement intents and App intents. Issue-ID: MULTICLOUD-875 Signed-off-by: Rajamohan Raj <rajamohan.raj@intel.com> Change-Id: Iecb11c442958a43a517772e066de45213e3d7030