multicloud/k8s.git
4 years agoUpdate the Kubernetes Version to 1.16 69/106869/44
Yao Le [Thu, 30 Apr 2020 14:40:20 +0000 (22:40 +0800)]
Update the Kubernetes Version to 1.16

Update kubespray to 2.12 to deploy Kubernetes 1.16

Issue-ID: MULTICLOUD-1063
Signed-off-by: Yao Le <le.yao@intel.com>
Change-Id: I537f6395e5d05d8b72411dd1e0789e19972f1947

4 years agoFix the Multus Baremetal containerization testing 93/108293/1
r.kuralamudhan [Tue, 26 May 2020 22:18:20 +0000 (15:18 -0700)]
Fix the Multus Baremetal containerization testing

- interface name will be different in each Baremetal
- Multus testing good for Vagrant and AIO testing only

Issue-ID: MULTICLOUD-1037
Co-authored-by: yu marin <weifei.yu@intel.com>
Signed-off-by: Kuralamudhan Ramakrishnan <kuralamudhan.ramakrishnan@intel.com>
Change-Id: I50786f07f0dbd9aadffda69d02597c85e2675203

4 years agoBug fix for the ImagePullBackOff error in qat test 83/108283/2
Kuralamudhan Ramakrishnan [Tue, 26 May 2020 18:14:14 +0000 (18:14 +0000)]
Bug fix for the ImagePullBackOff error in qat test

Issue-ID: MULTICLOUD-1076
Signed-off-by: Kuralamudhan Ramakrishnan <kuralamudhan.ramakrishnan@intel.com>
Change-Id: I2b6bfb265ce5e055987788f6f28fc475a8b5b46c

4 years agoAdding Multus test in vagrant and containerization installer 15/108215/1
Kuralamudhan Ramakrishnan [Tue, 26 May 2020 01:32:44 +0000 (01:32 +0000)]
Adding Multus test in vagrant and containerization installer

Issue-ID: MULTICLOUD-1037
Co-authored-by: yu marin <weifei.yu@intel.com>
Signed-off-by: Kuralamudhan Ramakrishnan <kuralamudhan.ramakrishnan@intel.com>
Change-Id: Id07394cc454b3660fb5f06982fea020e93b26039

4 years agoUpdating multus, SRIOV and nfd test cases 85/103985/11
marvinYu [Thu, 19 Mar 2020 14:16:30 +0000 (22:16 +0800)]
Updating multus, SRIOV and nfd test cases

Updating some AddOn test cases and add README.md file.

Issue-ID: MULTICLOUD-1037
Signed-off-by: marvinYu <weifei.yu@intel.com>
Change-Id: Iee2c31207cf2cd37fb8119bceef286aa887079f9

4 years agosriov baremetal installation fix 78/108178/1
Kuralamudhan Ramakrishnan [Mon, 25 May 2020 00:12:20 +0000 (00:12 +0000)]
sriov baremetal installation fix

Signed-off-by: Kuralamudhan Ramakrishnan <kuralamudhan.ramakrishnan@intel.com>
Issue-ID: MULTICLOUD-1074
Change-Id: I5c497aef954945c4baee10ff5613b220ed9b8152

4 years agoMerge "Change NCM for upstream change in orchestrator"
Ritu Sood [Thu, 21 May 2020 19:00:55 +0000 (19:00 +0000)]
Merge "Change NCM for upstream change in orchestrator"

4 years agoMerge "Update scripts for ovn4nfv in multicloud-k8s"
Ritu Sood [Thu, 21 May 2020 04:29:53 +0000 (04:29 +0000)]
Merge "Update scripts for ovn4nfv in multicloud-k8s"

4 years agoChange NCM for upstream change in orchestrator 24/107924/7
Rajamohan Raj [Tue, 19 May 2020 21:51:37 +0000 (21:51 +0000)]
Change NCM for upstream change in orchestrator

Issue-ID: MULTICLOUD-1064
Signed-off-by: Rajamohan Raj <rajamohan.raj@intel.com>
Change-Id: Ie4a914adbb20f6227dcba9c380a9d416f5274ad3

4 years agoUpdate docker version in containerization soltuion 20/108020/1
r.kuralamudhan [Thu, 21 May 2020 03:31:32 +0000 (20:31 -0700)]
Update docker version in containerization soltuion

Change docker version to fix kubespray issue in containerization soltuion

Co-authored-by: Ritu Sood <ritu.sood@intel.com>
Co-authored-by: Le yao <le.yao@intel.com>
Signed-off-by: Kuralamudhan Ramakrishnan <kuralamudhan.ramakrishnan@intel.com>
Issue-ID: MULTICLOUD-1073
Change-Id: Id575c64b1630127f1a06ce89ba5b89249d004956

4 years agoUpdate scripts for ovn4nfv in multicloud-k8s 93/107593/4
Ruoyu [Wed, 13 May 2020 02:27:17 +0000 (10:27 +0800)]
Update scripts for ovn4nfv in multicloud-k8s

* Update the image version to integratedcloudnative/ovn4nfv-k8s-plugin
* Update the CRD of provider network to support direct provider network

Issue-ID: MULTICLOUD-1070
Change-Id: Icfa321bbd354de47af4db65b2021c87facc26871
Signed-off-by: Ruoyu <ruoyu.ying@intel.com>
4 years agoChanging the value type to interface 22/107922/3
Rajamohan Raj [Tue, 19 May 2020 21:36:58 +0000 (21:36 +0000)]
Changing the value type to interface

Issue-ID: MULTICLOUD-1064
Signed-off-by: Rajamohan Raj <rajamohan.raj@intel.com>
Change-Id: I50c1fc3ea0110d4d65d53201c62314ea6c74631b

4 years agoUpdate docker version 17/108017/1
Ritu Sood [Wed, 20 May 2020 22:22:41 +0000 (15:22 -0700)]
Update docker version

Change docker version to fix kubespray issue

Signed-off-by: Ritu Sood <ritu.sood@intel.com>
Issue-ID: MULTICLOUD-1073
Change-Id: I79571677f81efbb12a963b7527d918eddaf8db1f

4 years agoAdding meta data for app in appContext 05/107505/12
Rajamohan Raj [Mon, 11 May 2020 22:09:18 +0000 (22:09 +0000)]
Adding meta data for app in appContext

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

4 years agoremove the outdated SDWAN testing 20/107720/1
r.kuralamudhan [Fri, 15 May 2020 06:04:44 +0000 (23:04 -0700)]
remove the outdated SDWAN testing

Issue-ID: MULTICLOUD-1071
Signed-off-by: Kuralamudhan Ramakrishnan <kuralamudhan.ramakrishnan@intel.com>
Change-Id: Ia3818ee16393d8e8b2d465d354ce777192baca9e

4 years agoMerge "Create appContext and save to etcd"
Ritu Sood [Thu, 14 May 2020 00:05:49 +0000 (00:05 +0000)]
Merge "Create appContext and save to etcd"

4 years agoAdd gRPC servers to ncm service 48/106148/10
Eric Multanen [Thu, 23 Apr 2020 19:48:55 +0000 (12:48 -0700)]
Add gRPC servers to ncm service

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

4 years agoMove controller module into separate package 87/107587/1
Eric Multanen [Tue, 12 May 2020 21:28:33 +0000 (14:28 -0700)]
Move controller module into separate package

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

4 years agoadd an ncm test script 04/107504/2
Eric Multanen [Mon, 11 May 2020 21:29:27 +0000 (14:29 -0700)]
add an ncm test script

Add ncm test script to create, query, and delete
a set of test ncm data.

Issue-ID: MULTICLOUD-1069
Signed-off-by: Eric Multanen <eric.w.multanen@intel.com>
Change-Id: Icf97941ca1df8a5693c45597f115c1fba17df402

4 years agoCreate appContext and save to etcd 79/107079/5
Rajamohan Raj [Thu, 30 Apr 2020 23:07:15 +0000 (23:07 +0000)]
Create appContext and save to etcd

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

4 years agoFixing README.md for containerization installation 34/107434/1
Kuralamudhan Ramakrishnan [Mon, 11 May 2020 06:44:12 +0000 (06:44 +0000)]
Fixing README.md for containerization installation

Issue-ID: MULTICLOUD-1068
Signed-off-by: Kuralamudhan Ramakrishnan <kuralamudhan.ramakrishnan@intel.com>
Change-Id: I8ced72f4d9f13b9cb2305fc3778cdd65e933d778

4 years agoIntegrate Openness EAA 25/104825/10
ChenjieXu [Wed, 1 Apr 2020 05:26:54 +0000 (13:26 +0800)]
Integrate Openness EAA

Openness EAA provides application/service registration
and authentication. EAA is integrated by running EAA via
ONAP4K8S.

Issue-ID: MULTICLOUD-1044
Signed-off-by: ChenjieXu <chenjie.xu@intel.com>
Change-Id: I66dffc5bcfc66675f6b62672e32496ec7f71454c

4 years agoMerge "add cmk in KuD"
Ritu Sood [Wed, 6 May 2020 23:17:45 +0000 (23:17 +0000)]
Merge "add cmk in KuD"

4 years agoAdd k8splugin releases file for 0.6.0 15/106015/5
Eric Multanen [Thu, 9 Apr 2020 17:38:13 +0000 (10:38 -0700)]
Add k8splugin releases file for 0.6.0

Add releases directory and container yaml file for 0.6.0

Issue-ID: MULTICLOUD-1052
Signed-off-by: Eric Multanen <eric.w.multanen@intel.com>
Change-Id: I722ba0d3b5bb57d6533208cd0f051e2d8619510a

4 years agoRevert "Update brokerhandler API to conform with /v1/ path pattern" 84/107184/2 0.6.0
Konrad Banka [Wed, 6 May 2020 05:16:13 +0000 (05:16 +0000)]
Revert "Update brokerhandler API to conform with /v1/ path pattern"

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>
4 years agoadd cmk in KuD 11/102311/83
Liang Ding [Thu, 31 Oct 2019 06:47:35 +0000 (23:47 -0700)]
add cmk in KuD

- deploy cmk related pods
- untaint compute nodes if necessary
- run cmk unit tests: allocate CPUs from exclusive and shared pools
- deploy a testing nginx pod along with cmk testing pods
- preset 1/2 CPUs for shared/exlusive pools to fit CI server machines
  users can adjust the parameters to meet their own requirements

Test Results:
  - many rounds of vagrant/5 VMs(controller01/02/03 and compute01/02)
    based test are all OK
  - 14 rounds tests on my local server (S2600WFQ (36C/72T) )and
    PC(HP Z228 (4C/4T)) with all-in-one bare metal deployment are all OK
  - CI(a 4C/4T machine) results of latest patch set also show that the
    test of bare metal deployment is OK
  - NOTE: both my local test and CI use the same testing method of calling
          aio.sh after applying the latest patch set.

Change-Id: I046a4a63b94f92f23347ab76c21a661521e01119
Issue-ID: MULTICLOUD-879
Signed-off-by: Liang Ding <liang.ding@intel.com>
4 years agoDirectory structure, build and dockerfile for resource sync microservice 63/105963/2
Manjunath Ranganathaiah [Tue, 14 Apr 2020 21:23:12 +0000 (21:23 +0000)]
Directory structure, build and dockerfile for resource sync microservice

Issue-ID: MULTICLOUD-1005
Signed-off-by: Manjunath Ranganathaiah <manjunath.ranganathaiah@intel.com>
Change-Id: I22cbb8512d4ce0d5b9ce6d20a1b99e3e570db405

4 years agoMerge "Add gRPC framework to orchestrator"
Ritu Sood [Sat, 2 May 2020 00:35:32 +0000 (00:35 +0000)]
Merge "Add gRPC framework to orchestrator"

4 years agoMerge "Update ncm code for upstream changes"
Ritu Sood [Sat, 2 May 2020 00:06:42 +0000 (00:06 +0000)]
Merge "Update ncm code for upstream changes"

4 years agoUpdate ncm code for upstream changes 00/107000/2
Rajamohan Raj [Fri, 1 May 2020 22:45:00 +0000 (22:45 +0000)]
Update ncm code for upstream changes

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

4 years agoAdd gRPC framework to orchestrator 47/106147/6
Eric Multanen [Thu, 23 Apr 2020 19:46:35 +0000 (12:46 -0700)]
Add gRPC framework to orchestrator

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

4 years agoAdd API support for network chain intent 14/106714/3
Eric Multanen [Tue, 28 Apr 2020 00:33:25 +0000 (17:33 -0700)]
Add API support for network chain intent

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

4 years agoMerge "Change the base installation directory"
Huang Haibin [Thu, 30 Apr 2020 00:36:46 +0000 (00:36 +0000)]
Merge "Change the base installation directory"

4 years agoMerge "Install criproxy binary in /usr/local/bin instead of /tmp. Issue-ID: MULTICLOU...
Ritu Sood [Mon, 27 Apr 2020 19:45:25 +0000 (19:45 +0000)]
Merge "Install criproxy binary in /usr/local/bin instead of /tmp. Issue-ID: MULTICLOUD-1051"

4 years agoFix missing key error while getting resource inst 20/106620/1
Manjunath Ranganathaiah [Fri, 24 Apr 2020 20:10:22 +0000 (20:10 +0000)]
Fix missing key error while getting resource inst

Issue-ID: MULTICLOUD-1005
Signed-off-by: Manjunath Ranganathaiah <manjunath.ranganathaiah@intel.com>
Change-Id: I79e9090769f9ef2ce979d5f1a3b5264171164ae0

4 years agoMerge "Added intentResolver"
Ritu Sood [Thu, 23 Apr 2020 21:48:53 +0000 (21:48 +0000)]
Merge "Added intentResolver"

4 years agoMerge "Controller API support"
Ritu Sood [Thu, 23 Apr 2020 21:40:06 +0000 (21:40 +0000)]
Merge "Controller API support"

4 years agoMerge "Add code to apply workload network annotations"
Ritu Sood [Thu, 23 Apr 2020 21:30:12 +0000 (21:30 +0000)]
Merge "Add code to apply workload network annotations"

4 years agoMerge "Upgrate the out-of-date link in virtlet test"
Ritu Sood [Thu, 23 Apr 2020 21:05:16 +0000 (21:05 +0000)]
Merge "Upgrate the out-of-date link in virtlet test"

4 years agoController API support 46/106146/5
Eric Multanen [Thu, 16 Apr 2020 17:44:06 +0000 (10:44 -0700)]
Controller API support

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

4 years agoAdd code to apply workload network annotations 48/105448/9
Eric Multanen [Wed, 15 Apr 2020 03:51:50 +0000 (20:51 -0700)]
Add code to apply workload network annotations

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

4 years agoMerge "Script to test DCM API"
Ritu Sood [Wed, 22 Apr 2020 17:35:16 +0000 (17:35 +0000)]
Merge "Script to test DCM API"

4 years agoMerge "Orchestrator support for network intent updates"
Ritu Sood [Wed, 22 Apr 2020 17:06:05 +0000 (17:06 +0000)]
Merge "Orchestrator support for network intent  updates"

4 years agoScript to test DCM API 98/106398/2
Itohan [Wed, 22 Apr 2020 01:03:13 +0000 (18:03 -0700)]
Script to test DCM API

Issue-ID: MULTICLOUD-996
Signed-off-by: Itohan Ukponmwan <itohan.ukponmwan@intel.com>
Change-Id: I18b75693beeaa5d5fe64e91087ddaa911a553a5f

4 years agoMerge "Implement Apply API for DCM"
Ritu Sood [Tue, 21 Apr 2020 21:39:21 +0000 (21:39 +0000)]
Merge "Implement Apply API for DCM"

4 years agoOrchestrator support for network intent updates 82/105982/5
Eric Multanen [Wed, 15 Apr 2020 03:47:35 +0000 (20:47 -0700)]
Orchestrator support for network intent  updates

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

4 years agoUpgrate the out-of-date link in virtlet test 11/106311/1
Yao Le [Tue, 21 Apr 2020 11:17:44 +0000 (19:17 +0800)]
Upgrate the out-of-date link in virtlet test

The fedora 29 image link is out of date. It is not reachable now.
So upgrade the link to fedora 31.

Issue-ID: MULTICLOUD-1057
Signed-off-by: Yao Le <le.yao@intel.com>
Change-Id: I5f384cb906bf080c55ea4ea2a27b1514722c8b76

4 years agoImplement Apply API for DCM 73/105973/8
Itohan [Wed, 15 Apr 2020 00:06:13 +0000 (17:06 -0700)]
Implement Apply API for DCM

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

4 years agoMerge "Update Vagrant VM image to Ubuntu-18.04"
Huang Haibin [Mon, 20 Apr 2020 05:35:46 +0000 (05:35 +0000)]
Merge "Update Vagrant VM image to Ubuntu-18.04"

4 years agoInstall criproxy binary in /usr/local/bin instead of /tmp. 35/106235/1
Eric Tang [Sun, 19 Apr 2020 01:48:24 +0000 (09:48 +0800)]
Install criproxy binary in /usr/local/bin instead of /tmp.
Issue-ID: MULTICLOUD-1051

Signed-off-by: Eric Tang <qcorba@gmail.com>
Change-Id: I96443ee539de0e2a18011148f86f97e70634cae3
Signed-off-by: Eric Tang <qcorba@gmail.com>
4 years agoAdded intentResolver 41/106041/4
Rajamohan Raj [Wed, 15 Apr 2020 18:45:47 +0000 (18:45 +0000)]
Added intentResolver

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

4 years agoMerge "Add apply API for network intents"
Ritu Sood [Fri, 17 Apr 2020 22:45:23 +0000 (22:45 +0000)]
Merge "Add apply API for network intents"

4 years agoRemove orchestrator dependency from ncm 18/106218/1
Rajamohan Raj [Fri, 17 Apr 2020 20:51:36 +0000 (20:51 +0000)]
Remove orchestrator dependency from ncm

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

4 years agoAdd apply API for network intents 33/104433/12
Eric Multanen [Wed, 15 Apr 2020 00:54:45 +0000 (17:54 -0700)]
Add apply API for network intents

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

4 years agoMerge "Mongo api changes"
Ritu Sood [Thu, 16 Apr 2020 22:03:58 +0000 (22:03 +0000)]
Merge "Mongo api changes"

4 years agoUpdate brokerhandler API to conform with /v1/ path pattern 41/106141/1
Konrad Bańka [Thu, 16 Apr 2020 18:16:51 +0000 (20:16 +0200)]
Update brokerhandler API to conform with /v1/ path pattern

Issue-ID: MULTICLOUD-1053
Signed-off-by: Konrad Bańka <k.banka@samsung.com>
Change-Id: I8f567bed2783e7257784cd4ce4c9f76207634e7a

4 years agoMongo api changes 75/105975/1
Eric Multanen [Wed, 15 Apr 2020 00:48:55 +0000 (17:48 -0700)]
Mongo api changes

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

4 years agoAdded query routes for deploymentIntentGroup 43/105743/2
Rajamohan Raj [Fri, 10 Apr 2020 05:02:58 +0000 (05:02 +0000)]
Added query routes for deploymentIntentGroup

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

4 years agoMerge "Adding query APIs for AppIntents"
Ritu Sood [Mon, 13 Apr 2020 20:38:39 +0000 (20:38 +0000)]
Merge "Adding query APIs for AppIntents"

4 years agoChange the base installation directory 31/105831/1
Yao Le [Mon, 13 Apr 2020 17:15:16 +0000 (01:15 +0800)]
Change the base installation directory

The /tmp will refresh after reboot, so change it to &HOME

Issue-ID: MULTICLOUD-1050
Signed-off-by: Yao Le <le.yao@intel.com>
Change-Id: I47a030b0e33f48c653b21d81d52f7cf717b6d34f

4 years agoTest cases for resolving the helm templates 61/105061/5
Rajamohan Raj [Fri, 3 Apr 2020 07:43:11 +0000 (07:43 +0000)]
Test cases for resolving the helm templates

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

4 years agoMerge "Resolve the helm templates"
Ritu Sood [Mon, 13 Apr 2020 16:45:39 +0000 (16:45 +0000)]
Merge "Resolve the helm templates"

4 years agoResolve the helm templates 18/104718/9
Rajamohan Raj [Tue, 31 Mar 2020 01:30:03 +0000 (01:30 +0000)]
Resolve the helm templates

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

4 years agoAPIs for network, workload and interface intents 00/104100/12
Eric Multanen [Thu, 19 Mar 2020 23:07:43 +0000 (16:07 -0700)]
APIs for network, workload and interface intents

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

4 years agoMerge "Add validation routines"
Ritu Sood [Fri, 10 Apr 2020 20:33:16 +0000 (20:33 +0000)]
Merge "Add validation routines"

4 years agoAdd Distributed Cloud Manager 36/101936/19
enyinna1234 [Fri, 14 Feb 2020 16:41:49 +0000 (08:41 -0800)]
Add Distributed Cloud Manager

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

4 years agoAdding query APIs for AppIntents 97/105697/1
Rajamohan Raj [Thu, 9 Apr 2020 16:54:55 +0000 (16:54 +0000)]
Adding query APIs for AppIntents

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

4 years agoAdd validation routines 61/105561/1
Eric Multanen [Wed, 8 Apr 2020 19:01:24 +0000 (12:01 -0700)]
Add validation routines

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

4 years agoMerge "Automation adds index.rst"
Jessica Wagantall [Wed, 8 Apr 2020 05:40:01 +0000 (05:40 +0000)]
Merge "Automation adds index.rst"

4 years agoAutomation adds index.rst 87/105387/2
LF Jenkins CI [Tue, 7 Apr 2020 17:41:53 +0000 (17:41 +0000)]
Automation adds index.rst

Issue-ID: CIMAN-376

Change-Id: Ib17bd822915eea1e1033f7422ee44438924364bf
Signed-off-by: lf-jobbuilder <releng+lf-jobbuilder@linuxfoundation.org>
4 years agoAdding function to Query cluster based on label 94/102794/3
Ritu Sood [Tue, 3 Mar 2020 08:44:52 +0000 (00:44 -0800)]
Adding function to Query cluster based on label

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

4 years agoUpdate Vagrant VM image to Ubuntu-18.04 96/105196/1
Yao Le [Tue, 7 Apr 2020 15:34:16 +0000 (23:34 +0800)]
Update Vagrant VM image to Ubuntu-18.04

Fix bug ICN-260 KUD Multi Vagrant 18.04 issue
Fix bug ICN-303 Compute01 no spcae left in KUD Multi Vagrant
Fix bug ICN-285 Nameserver issues behind a proxy

Issue-ID: MULTICLOUD-1004
Signed-off-by: Yao Le <le.yao@intel.com>
Change-Id: I9e5c6c0e618ebd63babe650f06ca21ff10669cc4

4 years agoMerge "Revert "Update Vagrant VM Version""
Huang Haibin [Tue, 7 Apr 2020 06:49:00 +0000 (06:49 +0000)]
Merge "Revert "Update Vagrant VM Version""

4 years agoRevert "Update Vagrant VM Version" 06/105206/1
Le Yao [Tue, 7 Apr 2020 06:14:21 +0000 (06:14 +0000)]
Revert "Update Vagrant VM Version"

This reverts commit f802b87c1d3caecc74789d435358d4f8ff2555a3.

Reason for revert: Will rebuild with Nameserver issue solved

Issue-ID: MULTICLOUD-1004
Change-Id: Ieafee94e4fe909c30ef8a4167d242f40e114d767
Signed-off-by: Yao Le <le.yao@intel.com>
4 years agoMerge "Update image version of k8splugin"
Bin Yang [Fri, 3 Apr 2020 01:23:04 +0000 (01:23 +0000)]
Merge "Update image version of k8splugin"

4 years agoUpdate image version of k8splugin 94/104894/1
Ritu Sood [Wed, 1 Apr 2020 23:56:21 +0000 (16:56 -0700)]
Update image version of k8splugin

Update image version of k8splugin to 0.6.0-SNAPSHOT

Issue-ID: MULTICLOUD-870
Signed-off-by: Ritu Sood <ritu.sood@intel.com>
Change-Id: I7e21d35958d432ebdd63544a3a9254f0fd115c8c

4 years agoAdd init and reinit interfaces to context libs 08/104708/7
Manjunath Ranganathaiah [Mon, 30 Mar 2020 18:37:18 +0000 (18:37 +0000)]
Add init and reinit interfaces to context libs

Issue-ID: MULTICLOUD-1005
Signed-off-by: Manjunath Ranganathaiah <manjunath.ranganathaiah@intel.com>
Change-Id: I9839d265840c25b2fbfbe0265a65c65388eaebcb

4 years agoApp context library interface for etcd 71/104071/7
Manjunath Ranganathaiah [Fri, 20 Mar 2020 15:39:06 +0000 (15:39 +0000)]
App context library interface for etcd

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>
4 years agoUpdate Vagrant VM Version 61/102561/4
Yao Le [Fri, 28 Feb 2020 16:51:35 +0000 (00:51 +0800)]
Update Vagrant VM Version

Fix bug ICN-260 KUD Multi Vagrant 18.04 issue
Fix bug ICN-303 Compute01 no spcae left in KUD Multi Vagrant

Issue-ID: MULTICLOUD-1004
Signed-off-by: Yao Le <le.yao@intel.com>
Change-Id: Ic74d4ec2c9ae4bbe42c71f13380f779f842e496d

4 years agoMerge "Update Vagrant VM Version"
Huang Haibin [Tue, 24 Mar 2020 02:30:56 +0000 (02:30 +0000)]
Merge "Update Vagrant VM Version"

4 years agoSync up Key json attribute names 89/104089/3
Eric Multanen [Fri, 20 Mar 2020 19:34:18 +0000 (12:34 -0700)]
Sync up Key json attribute names

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

4 years agoAdd Network and Provider Network Intent API support 97/103697/10
Eric Multanen [Sat, 14 Mar 2020 00:39:40 +0000 (17:39 -0700)]
Add Network and Provider Network Intent API support

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

4 years agoCreate network service with cluster API 45/103645/6
Eric Multanen [Thu, 12 Mar 2020 22:59:24 +0000 (15:59 -0700)]
Create network service with cluster API

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

4 years agoMerge "Add update interface to run time context library"
Ritu Sood [Fri, 20 Mar 2020 17:53:04 +0000 (17:53 +0000)]
Merge "Add update interface to run time context library"

4 years agoAdd more validation methods 14/103914/2
Eric Multanen [Thu, 19 Mar 2020 00:33:27 +0000 (17:33 -0700)]
Add more validation methods

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

4 years agoAdded the new plugin_collection_v2 script. 19/103819/3
Rajamohan Raj [Tue, 17 Mar 2020 20:57:50 +0000 (20:57 +0000)]
Added the new plugin_collection_v2 script.

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

4 years agoAdd update interface to run time context library 66/103766/1
Manjunath Ranganathaiah [Mon, 16 Mar 2020 20:27:26 +0000 (20:27 +0000)]
Add update interface to run time context library

Issue-ID: MULTICLOUD-1005
Change-Id: Ie6a8f5d83f56ea12107fdf81fe6819b1637b252a
Signed-off-by: Manjunath Ranganathaiah <manjunath.ranganathaiah@intel.com>
4 years agoAdded getAllApps functionality in App api 59/103659/2
Srivahni Chivukula [Thu, 12 Mar 2020 22:50:42 +0000 (15:50 -0700)]
Added getAllApps functionality in App api

Issue-ID: MULTICLOUD-994
Signed-off-by: Srivahni Chivukula <srivahni.chivukula@intel.com>
Change-Id: I459504c45b9bedea0e6bc15ca57e7876d5f59d28

4 years agoModified project api to use new mongodb methods 67/103567/3
Srivahni Chivukula [Wed, 11 Mar 2020 20:59:21 +0000 (13:59 -0700)]
Modified project api to use new mongodb methods

Issue-ID: MULTICLOUD-994
Signed-off-by: Srivahni Chivukula <srivahni.chivukula@intel.com>
Change-Id: I8e7e17a1dab164c4ea7d50743b20f0e08958a957

4 years agoAdd apps under composite app API 76/102176/7
Srivahni Chivukula [Fri, 21 Feb 2020 18:08:04 +0000 (10:08 -0800)]
Add apps under composite app API

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

4 years agoAdded tests to Composite App API 31/102131/9
Srivahni Chivukula [Fri, 21 Feb 2020 00:23:58 +0000 (16:23 -0800)]
Added tests to Composite App API

Issue-ID: MULTICLOUD-994
Signed-off-by: Srivahni Chivukula <srivahni.chivukula@intel.com>
Change-Id: I39f3dc28bca3ff7cefda006cb96eb86c2c069efe

4 years agoRun time context interface library 43/102643/9
Manjunath Ranganathaiah [Fri, 28 Feb 2020 23:19:24 +0000 (15:19 -0800)]
Run time context interface library

Issue-ID: MULTICLOUD-1005
Signed-off-by: Manjunath Ranganathaiah <manjunath.ranganathaiah@intel.com>
Change-Id: I12c55441b5701387ead851b8294088457f4401b7

4 years agoAdd Delete and DeleteAll functionality to etcd 42/103542/1
Ritu Sood [Thu, 12 Mar 2020 01:05:13 +0000 (18:05 -0700)]
Add Delete and DeleteAll functionality to etcd

Currently only supports DeleteAll.

Issue-ID: MULTICLOUD-871
Signed-off-by: Ritu Sood <ritu.sood@intel.com>
Change-Id: I9ee03648462c5a04481c89bf864cdec35cfd4230

4 years agoHandle uncommon format of proper tar archive 05/103405/2
Konrad Bańka [Tue, 10 Mar 2020 05:43:44 +0000 (06:43 +0100)]
Handle uncommon format of proper tar archive

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

4 years agoMerge "Adding QAT device plugin to KuD"
Ritu Sood [Mon, 9 Mar 2020 18:21:20 +0000 (18:21 +0000)]
Merge "Adding QAT device plugin to KuD"

4 years agoRemove not required file 10/103310/1
Ritu Sood [Sat, 7 Mar 2020 05:52:46 +0000 (21:52 -0800)]
Remove not required file

commands file is an example and is not needed

Issue-ID: MULTICLOUD-956
Signed-off-by: Ritu Sood <ritu.sood@intel.com>
Change-Id: Ie2097f2491f6dcc2b6347fac120f5e8d47dae120

4 years agoMerge "Adding Remove function to Mongo"
Bin Yang [Fri, 6 Mar 2020 21:34:13 +0000 (21:34 +0000)]
Merge "Adding Remove function to Mongo"

4 years agoMerge "Change DB Name to accept variable"
Ritu Sood [Fri, 6 Mar 2020 19:38:38 +0000 (19:38 +0000)]
Merge "Change DB Name to accept variable"

4 years agoAdding Remove function to Mongo 76/103176/1
Ritu Sood [Fri, 6 Mar 2020 03:00:02 +0000 (19:00 -0800)]
Adding Remove function to Mongo

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

4 years agoAdd API support to handle App Profiles 01/102901/5
Eric Multanen [Thu, 20 Feb 2020 00:19:18 +0000 (16:19 -0800)]
Add API support to handle App Profiles

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