summaryrefslogtreecommitdiffstats
path: root/src
AgeCommit message (Collapse)AuthorFilesLines
2020-06-03Add grpc contextupdate client call to orchestratorEric Multanen13-99/+492
Adds a contextupdate client function that can be invoked for any action or placement controller to process intents for that controller. Adds the corresponding server side handling for the ovnaction controller. Issue-ID: MULTICLOUD-1019 Signed-off-by: Eric Multanen <eric.w.multanen@intel.com> Change-Id: Ifdfc99e522288a530735bc4c1402d45449f6d057
2020-06-03Move cluster management into its own microserviceEric Multanen27-113/+1981
Split out the cluster provider and cluster APIs and packages into a separate microservice to align with the architecture. Issue-ID: MULTICLOUD-1029 Signed-off-by: Eric Multanen <eric.w.multanen@intel.com> Change-Id: I08f357b5a488004a2389b72a178ae33e101d1540
2020-06-03Merge "Add UninstallApp call to grpc"Ritu Sood2-0/+14
2020-06-02Add UninstallApp call to grpcManjunath Ranganathaiah2-0/+14
Issue-ID: MULTICLOUD-1005 Signed-off-by: Manjunath Ranganathaiah <manjunath.ranganathaiah@intel.com> Change-Id: I90c8ff0d548690ea19d325612d1bcd3e5049dc36
2020-06-02Reorganize ncm packages to align with architectureEric Multanen18-530/+815
Reorginize the ncm packges to delineate - cluster provider and cluster management - virtual and provider netowrk intent management - intent scheduler - internal ovn4k8s network controller Overall, no code changes, just moving things around. Issue-ID: MULTICLOUD-1029 Signed-off-by: Eric Multanen <eric.w.multanen@intel.com> Change-Id: I3d43c7e4eb6f285b51c0385ba18626d3511a14f5
2020-06-02Create OVN network action controller from ncmEric Multanen28-149/+1115
Split out part of ncm microservice to act as the Onv4k8s network action controller for the orchestrator. No code changes really - just moving around to fit the architectural plan. Issue-ID: MULTICLOUD-1029 Signed-off-by: Eric Multanen <eric.w.multanen@intel.com> Change-Id: I17292ac72d041050269f05fc4a0c2a6ca741aeb5
2020-06-01Adding cluster meta data and saving in etcdRajamohan Raj6-135/+372
As part of this patch, we assign groupNumbers for the set of clusters which are under anyOf, or in other words are optional for deployement of app. Also refactored the instantiation flow by separating out the etcd interactions Issue-ID: MULTICLOUD-1064 Signed-off-by: Rajamohan Raj <rajamohan.raj@intel.com> Change-Id: I21ece189daf6e6b3a7cfdba5df22d57b3d33ca78
2020-05-28Fix Network and ProviderNetwork yaml formattingEric Multanen4-10/+10
Correct yaml format of Network and ProviderNetwork CRs produced by ncm so that they can be deployed in a cluster. Issue-ID: MULTICLOUD-1072 Signed-off-by: Eric Multanen <eric.w.multanen@intel.com> Change-Id: I27e55c0c7428ccee6ddb720445e104054eefcee3
2020-05-28Add appcontext instructions during intent applyEric Multanen1-0/+34
Create AppContext instruction records at the app and resource levels when handling the apply api for network and providernetwork intents. Issue-ID: MULTICLOUD-1029 Signed-off-by: Eric Multanen <eric.w.multanen@intel.com> Change-Id: I3c82087273278b2503959664f0a8ee4e34eb0cd2
2020-05-28Add grpc client to resource synchronizer to ncmEric Multanen2-12/+84
Adds a grpc client to resource synchronizer to ncm to handle network and providernetwork. Issue-ID: MULTICLOUD-1029 Signed-off-by: Eric Multanen <eric.w.multanen@intel.com> Change-Id: I45646d66ab1ec79818d0942694f8238718c407b3
2020-05-28fixup rsync go.mod fileEric Multanen3-5/+5
Issue-ID: MULTICLOUD-1005 Signed-off-by: Eric Multanen <eric.w.multanen@intel.com> Change-Id: I5dd7f9d0ef1862acaf3d987381a5970de488707e
2020-05-28Update go.mod files of services to use local codeEric Multanen8-16/+548
Change go.mod files to replace usage of services in this repo with local code instead of upstream builds. Fix a couple resulting issues. Issue-ID: MULTICLOUD-1077 Signed-off-by: Eric Multanen <eric.w.multanen@intel.com> Change-Id: I597c7bf98beac3fcee9e37699966cbe839335bf2
2020-05-21InstallApp Grpc proto and server for rsyncManjunath Ranganathaiah7-4/+424
Add the InstallApp GRPC proto file server code to the resource synchronizer. Issue-ID: MULTICLOUD-1005 Signed-off-by: Manjunath Ranganathaiah <manjunath.ranganathaiah@intel.com> Change-Id: I8e586f1b878009fd4df53ef48aae6deded0f64ea
2020-05-20Change NCM for upstream change in orchestratorRajamohan Raj3-9/+2
Issue-ID: MULTICLOUD-1064 Signed-off-by: Rajamohan Raj <rajamohan.raj@intel.com> Change-Id: Ie4a914adbb20f6227dcba9c380a9d416f5274ad3
2020-05-20Changing the value type to interfaceRajamohan Raj1-2/+2
Issue-ID: MULTICLOUD-1064 Signed-off-by: Rajamohan Raj <rajamohan.raj@intel.com> Change-Id: I50c1fc3ea0110d4d65d53201c62314ea6c74631b
2020-05-15Adding meta data for app in appContextRajamohan Raj7-52/+163
In this patch, modified the appContext and rtc lib by adding functions for setting and getting the meta data associated with the apps. Issue-ID: MULTICLOUD-1064 Signed-off-by: Rajamohan Raj <rajamohan.raj@intel.com> Change-Id: I08f91ddda3044f172caf7b2673c069fed16c32c4
2020-05-14Merge "Create appContext and save to etcd"Ritu Sood4-35/+338
2020-05-13Add gRPC servers to ncm serviceEric Multanen4-1/+162
Add a contextupdate grpc server to the ncm service. Issue-ID: MULTICLOUD-1029 Signed-off-by: Eric Multanen <eric.w.multanen@intel.com> Change-Id: I38caa625c028baac06a6202f03b86d0f2bf38126
2020-05-12Move controller module into separate packageEric Multanen8-83/+109
Move the controller part of the module package into a separate controller package. Issue-ID: MULTICLOUD-1029 Signed-off-by: Eric Multanen <eric.w.multanen@intel.com> Change-Id: Id07c1012aeff8a72458b37d42671495510cade75
2020-05-12Create appContext and save to etcdRajamohan Raj4-35/+338
In this patch, following tasks are accomplished 1. Creation of appContext and storing the appcontexts for each app in the compositeApp into etcd as part of the instantiation process 2. Added a util method to extract parameters from k8s manifest files. 3. Added a new testing script to auto create NCM artifacts through the NCM APIs 4. Modified the existing plugin_collection_v2.sh to better test the orchestrator APIs. 5. Added logging to appcontext lib 6. Bug fix in the helm charts. Issue-ID: MULTICLOUD-1064 Signed-off-by: Rajamohan Raj <rajamohan.raj@intel.com> Change-Id: I1b0e4d1351ad3a083be529239748015ea5db2a41
2020-05-06Revert "Update brokerhandler API to conform with /v1/ path pattern"0.6.0Konrad Banka2-9/+8
This reverts commit 4ae60c1b50750587ab9d3960617a47d7db57b311. Reason for revert: Unable to reproduce bug, reverting fix implementation Issue-ID: MULTICLOUD-1053 Change-Id: Icc12260f9c122c6e5ac038d07a0e6cd56201e3ba Signed-off-by: Konrad Bańka <k.banka@samsung.com>
2020-05-04Directory structure, build and dockerfile for resource sync microserviceManjunath Ranganathaiah6-0/+493
Issue-ID: MULTICLOUD-1005 Signed-off-by: Manjunath Ranganathaiah <manjunath.ranganathaiah@intel.com> Change-Id: I22cbb8512d4ce0d5b9ce6d20a1b99e3e570db405
2020-05-02Merge "Add gRPC framework to orchestrator"Ritu Sood10-37/+910
2020-05-02Merge "Update ncm code for upstream changes"Ritu Sood2-2/+2
2020-05-01Update ncm code for upstream changesRajamohan Raj2-2/+2
The signature of two functions of upstream code in orchestration is to be changed. The new function signature for changes in appcontext.go: AddResource(handle interface{}, resname string, value []byte) UpdateResourceValue(handle interface{}, value []byte) The above code shall be pushed in the next patch for orchestration Issue-ID: MULTICLOUD-1064 Signed-off-by: Rajamohan Raj <rajamohan.raj@intel.com> Change-Id: I58db28e2e0ea27fba9b88839156a43517cdad1c9
2020-04-30Add gRPC framework to orchestratorEric Multanen10-37/+910
Adds proto and generated go files for a healtcheck, contextupdate and installapp rpc services. Adds framework for orchestrator as an rpc client to connect to configured controllers. Issue-ID: MULTICLOUD-1019 Signed-off-by: Eric Multanen <eric.w.multanen@intel.com> Change-Id: Ie66865789fe2146258c91e168cfb8d5933905814
2020-04-30Add API support for network chain intentEric Multanen5-0/+573
Adds API for managing Network Chain intents for composite applications. Issue-ID: MULTICLOUD-1029 Signed-off-by: Eric Multanen <eric.w.multanen@intel.com> Change-Id: Ie3d4e8f1e3179397d86829d951e2bb877597b38d
2020-04-24Fix missing key error while getting resource instManjunath Ranganathaiah1-1/+1
Issue-ID: MULTICLOUD-1005 Signed-off-by: Manjunath Ranganathaiah <manjunath.ranganathaiah@intel.com> Change-Id: I79e9090769f9ef2ce979d5f1a3b5264171164ae0
2020-04-23Merge "Added intentResolver"Ritu Sood10-51/+190
2020-04-22Controller API supportEric Multanen7-48/+296
Add controller API support as baseline for adding gRPC framework. Issue-ID: MULTICLOUD-1019 Signed-off-by: Eric Multanen <eric.w.multanen@intel.com> Change-Id: Ifd522a0eefbb8e54be45cc62003d3809283c9bfe
2020-04-22Add code to apply workload network annotationsEric Multanen5-6/+447
Apply workload network intents to indicated resources in the AppContext. This will add/update network annotations for pods or resources that have pod templates. Issue-ID: MULTICLOUD-1029 Signed-off-by: Eric Multanen <eric.w.multanen@intel.com> Change-Id: I9ae4387a8c28a95510406da361cfef3f8257bc80
2020-04-22Merge "Script to test DCM API"Ritu Sood1-0/+147
2020-04-22Merge "Orchestrator support for network intent updates"Ritu Sood1-0/+32
2020-04-21Script to test DCM APIItohan1-0/+147
Issue-ID: MULTICLOUD-996 Signed-off-by: Itohan Ukponmwan <itohan.ukponmwan@intel.com> Change-Id: I18b75693beeaa5d5fe64e91087ddaa911a553a5f
2020-04-21Merge "Implement Apply API for DCM"Ritu Sood6-63/+661
2020-04-21Orchestrator support for network intent updatesEric Multanen1-0/+32
Adds support code in orchestrator for handling updates to app context resources when ncm handles network intents. Add a get cluster names call to the app context Issue-ID: MULTICLOUD-1029 Signed-off-by: Eric Multanen <eric.w.multanen@intel.com> Change-Id: Ifdc78488a1e86f43d6fe656c59675862c4818af5
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