multicloud/k8s.git
3 years agoSeries of negative tests that validate EMCO open api's 71/110471/15
Aditya Sharoff [Wed, 22 Jul 2020 23:36:53 +0000 (16:36 -0700)]
Series of negative tests that validate EMCO open api's
All negative tests are in negative_tests directory

Null is provided as an input to the POST, DELETE, and GET commands
and the behavior is observed

Issue-ID: MULTICLOUD-1142
Signed-off-by: Aditya Sharoff <aditya.sharoff@intel.com>
Change-Id: I8ccf4b5615fc378698faf7f88971db1e250de9b6
Signed-off-by: Aditya Sharoff <aditya.sharoff@intel.com>
3 years agoExpose override parameters usage in KUD API tests 75/111375/2
Konrad Bańka [Tue, 18 Aug 2020 13:51:38 +0000 (15:51 +0200)]
Expose override parameters usage in KUD API tests

Update plugin_fw.sh test script to also check for proper work of
override parameters functionality of instance API.
Also update instance API response to exclude duplicated
override-parameters entry, that's anyway accessible under
'.request.override-values' json path.

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

3 years agoUpdating m3db & m3db operator charts 97/110897/5
Rajamohan Raj [Tue, 4 Aug 2020 00:18:16 +0000 (00:18 +0000)]
Updating m3db & m3db operator charts

In this patch, updated all the charts related to m3db.
Developed scripts for deployment m3db stack through
orchestrator.

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

3 years agoMerge "Add Validation for API's"
Eric Multanen [Fri, 21 Aug 2020 00:11:26 +0000 (00:11 +0000)]
Merge "Add Validation for API's"

3 years agoAdd Validation for API's 98/110898/4
Ritu Sood [Tue, 4 Aug 2020 21:46:34 +0000 (14:46 -0700)]
Add Validation for API's

Adding input validations for API based
on Json schemas

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

3 years agoMerge "Update environment varables to match latest"
Eric Multanen [Tue, 18 Aug 2020 15:57:23 +0000 (15:57 +0000)]
Merge "Update environment varables to match latest"

3 years agoUpdate environment varables to match latest 97/111297/3
Manjunath Ranganathaiah [Fri, 14 Aug 2020 22:17:13 +0000 (22:17 +0000)]
Update environment varables to match latest

Issue-ID: MULTICLOUD-1005

Signed-off-by: Manjunath Ranganathaiah <manjunath.ranganathaiah@intel.com>
Change-Id: I2ebf81bf61d1eb6ea245ab421b426f4d44667f5b

3 years agoMerge "Add appcontext state, status and resource status"
Ritu Sood [Fri, 14 Aug 2020 22:57:11 +0000 (22:57 +0000)]
Merge "Add appcontext state, status and resource status"

3 years agoMerge "Rsync change behaviour on error handling"
Eric Multanen [Fri, 14 Aug 2020 22:56:15 +0000 (22:56 +0000)]
Merge "Rsync change behaviour on error handling"

3 years agoAdd appcontext state, status and resource status 91/110791/8
Eric Multanen [Fri, 7 Aug 2020 19:04:15 +0000 (12:04 -0700)]
Add appcontext state, status and resource status

Add support in the AppContext for managing an AppContext
(composite app level) status value.
Also adds support for tracking rsync status at the resource
level.
A mechanism for tracking history at the controlling resource
level (i.e. DeploymentGroupIntnt or Cluster) is added, in part,
so that all AppContexts associated can be deleted when
the resource is eventually deleted.

Issue-ID: MULTICLOUD-1042
Change-Id: I3d0a9a97ea45ca11f9f873104476e4b67521e56a
Signed-off-by: Eric Multanen <eric.w.multanen@intel.com>
3 years agoMerge "Integrate Topology Manager"
Huang Haibin [Mon, 10 Aug 2020 06:26:31 +0000 (06:26 +0000)]
Merge "Integrate Topology Manager"

3 years agoIntegrate Topology Manager 30/109630/16
chenjie1 [Sun, 28 Jun 2020 07:36:51 +0000 (15:36 +0800)]
Integrate Topology Manager

Integrate topology manager by utilizing ansible
scripts from openness.

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

3 years agoMake dcm_call_api.sh test sufficient for apply 39/111039/4
Igor D.C [Fri, 7 Aug 2020 17:27:36 +0000 (17:27 +0000)]
Make dcm_call_api.sh test sufficient for apply

dcm_call_api.sh test script for DCM API is now enough to get /apply
to work correctly out-of-the-box (i.e., all resource quotas are now
in the correct format and apiGroups has been set to "" by default).

Issue-ID: MULTICLOUD-1143
Signed-off-by: Igor D.C <igor.duarte.cardoso@intel.com>
Change-Id: Ia44ec3006409542ddd9e50d2345d2f9eaaad3ad5

3 years agoEnable the prometheus crd creation flags 58/111058/1
Rajamohan Raj [Fri, 7 Aug 2020 21:21:13 +0000 (21:21 +0000)]
Enable the prometheus crd creation flags

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

3 years agoRsync change behaviour on error handling 35/110535/2
Ritu Sood [Thu, 23 Jul 2020 22:56:20 +0000 (15:56 -0700)]
Rsync change behaviour on error handling

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

3 years agoMerge "Correct add-cluster metadata form field syntax"
Eric Multanen [Fri, 7 Aug 2020 17:52:03 +0000 (17:52 +0000)]
Merge "Correct add-cluster metadata form field syntax"

3 years agoDCM - fix code formatting via vscode (II) 75/110675/5
Igor D.C [Wed, 29 Jul 2020 01:37:15 +0000 (01:37 +0000)]
DCM - fix code formatting via vscode (II)

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

3 years agoMerge "Add cleanup step to dcm_call_api.sh test script"
Ritu Sood [Wed, 5 Aug 2020 22:59:23 +0000 (22:59 +0000)]
Merge "Add cleanup step to dcm_call_api.sh test script"

3 years agoMerge "Update Service ports"
Eric Multanen [Wed, 5 Aug 2020 22:45:11 +0000 (22:45 +0000)]
Merge "Update Service ports"

3 years agoUpdate Service ports 37/110637/2
Ritu Sood [Mon, 27 Jul 2020 23:46:53 +0000 (16:46 -0700)]
Update Service ports

Keep same ports for all
installations

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

3 years agoAdd StateInfo structure synced resources 67/110467/6
Eric Multanen [Wed, 22 Jul 2020 21:11:05 +0000 (14:11 -0700)]
Add StateInfo structure synced resources

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

3 years agoSanity test script for new releases. 90/110790/2
Rajamohan Raj [Thu, 30 Jul 2020 23:49:54 +0000 (23:49 +0000)]
Sanity test script for new releases.

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

3 years agoAdd cleanup step to dcm_call_api.sh test script 72/110572/6
Igor D.C [Mon, 20 Jul 2020 18:16:15 +0000 (18:16 +0000)]
Add cleanup step to dcm_call_api.sh test script

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

3 years agoMerge "Adds PUT api to v2/projects"
Eric Multanen [Tue, 28 Jul 2020 16:28:10 +0000 (16:28 +0000)]
Merge "Adds PUT api to v2/projects"

3 years agoDCM - fix code formatting via vscode 40/110640/1
Igor D.C [Tue, 28 Jul 2020 03:05:05 +0000 (03:05 +0000)]
DCM - fix code formatting via vscode

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

3 years agoCorrect add-cluster metadata form field syntax 98/110598/1
Igor D.C [Sun, 26 Jul 2020 05:30:08 +0000 (05:30 +0000)]
Correct add-cluster metadata form field syntax

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

3 years agoAdds PUT api to v2/projects 92/110392/5
Larry Sachs [Tue, 21 Jul 2020 05:46:49 +0000 (22:46 -0700)]
Adds PUT api to v2/projects

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>
3 years agoFix ncm port in Helm Chart 37/110537/1
Ritu Sood [Fri, 24 Jul 2020 02:59:49 +0000 (19:59 -0700)]
Fix ncm port in Helm Chart

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

3 years agoMerge "Postman Collection for EMCO API's"
Eric Multanen [Thu, 23 Jul 2020 23:16:43 +0000 (23:16 +0000)]
Merge "Postman Collection for EMCO API's"

3 years agoAdd newline to end of orchestrator/scripts/build.sh 19/110419/2
Larry Sachs [Tue, 21 Jul 2020 17:40:20 +0000 (10:40 -0700)]
Add newline to end of orchestrator/scripts/build.sh

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

3 years agoMerge "Move status tracking CR to rsync"
Ritu Sood [Fri, 17 Jul 2020 23:34:28 +0000 (23:34 +0000)]
Merge "Move status tracking CR to rsync"

3 years agoMerge "Add APIs for getAll DeploymentIntents and GetAll GenericPlacemnetIntents"
Ritu Sood [Fri, 17 Jul 2020 23:25:16 +0000 (23:25 +0000)]
Merge "Add APIs for getAll DeploymentIntents and GetAll GenericPlacemnetIntents"

3 years agoMerge "Add API to query all composite apps under a project"
Ritu Sood [Fri, 17 Jul 2020 23:25:11 +0000 (23:25 +0000)]
Merge "Add API to query all composite apps under a project"

3 years agoAdd APIs for getAll DeploymentIntents and GetAll GenericPlacemnetIntents 28/110328/2
Rajamohan Raj [Fri, 17 Jul 2020 14:04:19 +0000 (14:04 +0000)]
Add APIs for getAll DeploymentIntents and GetAll GenericPlacemnetIntents

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

3 years agoMerge "Update host_providers/vagrant/setup.sh for virtualbox"
Ritu Sood [Fri, 17 Jul 2020 20:27:10 +0000 (20:27 +0000)]
Merge "Update host_providers/vagrant/setup.sh for virtualbox"

3 years agoMerge "Update vagrant readme to include info about sample yml files"
Ritu Sood [Fri, 17 Jul 2020 20:26:24 +0000 (20:26 +0000)]
Merge "Update vagrant readme to include info about sample yml files"

3 years agoMerge "Add steps to readme file to cleanup emco services."
Ritu Sood [Fri, 17 Jul 2020 20:25:18 +0000 (20:25 +0000)]
Merge "Add steps to readme file to cleanup emco services."

3 years agoUpdate vagrant readme to include info about sample yml files 39/110339/1
Larry Sachs [Fri, 17 Jul 2020 15:20:10 +0000 (08:20 -0700)]
Update vagrant readme to include info about sample yml files

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>
3 years agoAdd steps to readme file to cleanup emco services. 42/110142/4
Manjunath Ranganathaiah [Tue, 14 Jul 2020 02:00:12 +0000 (02:00 +0000)]
Add steps to readme file to cleanup emco services.

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

3 years agoAdd API to query all composite apps under a project 02/110302/1
Rajamohan Raj [Fri, 17 Jul 2020 02:11:13 +0000 (02:11 +0000)]
Add API to query all composite apps under a project

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

3 years agoMerge "Update resource name for docker images"
Eric Multanen [Fri, 17 Jul 2020 01:39:28 +0000 (01:39 +0000)]
Merge "Update resource name for docker images"

3 years agoImplement GetAll projects handler 01/110301/1
Rajamohan Raj [Thu, 16 Jul 2020 23:12:57 +0000 (23:12 +0000)]
Implement GetAll projects handler

In this patch implement the route: /v2/projects.

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

3 years agoMove status tracking CR to rsync 96/110296/3
Eric Multanen [Thu, 16 Jul 2020 20:12:03 +0000 (13:12 -0700)]
Move status tracking CR to rsync

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

3 years agoUpdate resource name for docker images 00/110300/1
Ritu Sood [Thu, 16 Jul 2020 23:03:47 +0000 (16:03 -0700)]
Update resource name for docker images

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

3 years agoChange the Info to print resource name 23/110223/1
Ritu Sood [Thu, 16 Jul 2020 01:31:16 +0000 (18:31 -0700)]
Change the Info to print resource name

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

3 years agoMerge "Update Rsync"
Eric Multanen [Wed, 15 Jul 2020 18:43:10 +0000 (18:43 +0000)]
Merge "Update Rsync"

3 years agoPostman Collection for EMCO API's 41/110141/1 frankfurt 6.0.0-ONAP
Ritu Sood [Tue, 14 Jul 2020 00:06:01 +0000 (17:06 -0700)]
Postman Collection for EMCO API's

Issue-ID: MULTICLOUD-1096

Signed-off-by: Ritu Sood <ritu.sood@intel.com>
Change-Id: Id0809648f1f6beb527a359f28a7ed0e704030257

3 years agoUpdate Rsync 69/109869/10
Ritu Sood [Thu, 9 Jul 2020 03:44:33 +0000 (20:44 -0700)]
Update Rsync

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

3 years agoFixing the triple dash issue in YAML. 34/110034/1
Rajamohan Raj [Thu, 9 Jul 2020 20:51:34 +0000 (20:51 +0000)]
Fixing the triple dash issue in YAML.

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

3 years agoUpdate host_providers/vagrant/setup.sh for virtualbox 81/109981/2
Larry Sachs [Wed, 8 Jul 2020 16:54:22 +0000 (09:54 -0700)]
Update host_providers/vagrant/setup.sh for virtualbox

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

3 years agoMerge "Update Baremetal Deployment README"
Ritu Sood [Wed, 8 Jul 2020 22:33:27 +0000 (22:33 +0000)]
Merge "Update Baremetal Deployment README"

3 years agoUpdate Baremetal Deployment README 53/109753/5
Larry Sachs [Wed, 1 Jul 2020 21:45:12 +0000 (14:45 -0700)]
Update Baremetal Deployment README

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>
3 years agoAdd terminate support to orchestrator and ncm 08/109808/6
Eric Multanen [Thu, 2 Jul 2020 22:34:13 +0000 (15:34 -0700)]
Add terminate support to orchestrator and ncm

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

3 years agoAdds composite app status update and query 57/109757/14
Eric Multanen [Thu, 2 Jul 2020 06:30:49 +0000 (23:30 -0700)]
Adds composite app status update and query

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

3 years agoAdd watch functionality for Status CR 75/109475/4
Ritu Sood [Wed, 24 Jun 2020 05:41:32 +0000 (22:41 -0700)]
Add watch functionality for Status CR

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

3 years agoFix go.mod for monitor 25/109925/1
Larry Sachs [Tue, 7 Jul 2020 23:44:28 +0000 (16:44 -0700)]
Fix go.mod for monitor

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

3 years agoScript for M3Db deployment through orchestrator 28/109828/7
Rajamohan Raj [Sat, 4 Jul 2020 05:40:26 +0000 (05:40 +0000)]
Script for M3Db deployment through orchestrator

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

3 years agoScript for M3DB operator deployment through orchestrator 10/109810/3
Rajamohan Raj [Thu, 2 Jul 2020 23:18:38 +0000 (23:18 +0000)]
Script for M3DB operator deployment through orchestrator

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

3 years agoScript for prometheus as composite app using orchestrator 54/109754/3
Rajamohan Raj [Thu, 2 Jul 2020 00:48:08 +0000 (00:48 +0000)]
Script for prometheus as composite app using orchestrator

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

3 years agoUpdate MultiCloud committer info 36/109836/1
Bin Yang [Mon, 6 Jul 2020 05:27:03 +0000 (05:27 +0000)]
Update MultiCloud committer info

Change-Id: Iacb286298c9a1ab2b84ef0d09140cdf5f2cc9f9b
Issue-ID: MULTICLOUD-1115
Signed-off-by: Bin Yang <bin.yang@windriver.com>
3 years agoMerge "Fixing issues in OpenAPI document"
Ritu Sood [Tue, 30 Jun 2020 15:26:13 +0000 (15:26 +0000)]
Merge "Fixing issues in OpenAPI document"

3 years agoMerge "Fix Readme for running v2 API microservices"
Ritu Sood [Tue, 30 Jun 2020 15:08:55 +0000 (15:08 +0000)]
Merge "Fix Readme for running v2 API microservices"

4 years agoFix Readme for running v2 API microservices 66/109666/3
Larry Sachs [Mon, 29 Jun 2020 23:39:51 +0000 (16:39 -0700)]
Fix Readme for running v2 API microservices

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>
4 years agoFixing issues in OpenAPI document 71/109671/1
Ritu Sood [Tue, 30 Jun 2020 03:05:35 +0000 (20:05 -0700)]
Fixing issues in OpenAPI document

Issue-ID: MULTICLOUD-1096

Signed-off-by: Ritu Sood <ritu.sood@intel.com>
Change-Id: I949fead4770e7604322a4645aaa552c54048bd31

4 years agoAdd composite vFW demo 69/109469/3
Eric Multanen [Tue, 23 Jun 2020 19:39:26 +0000 (12:39 -0700)]
Add composite vFW demo

Add demonstration files and test scripts to show the vFW
use case as a composite application using network intents
and ovnaction intents to deploy to multiple clusters.

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

4 years agoRemove addons from the CI build 22/109622/4
Ritu Sood [Sat, 27 Jun 2020 01:22:42 +0000 (01:22 +0000)]
Remove addons from the CI build

Running into memory issues with
new addons. Experimental change
to address intermittent failures.

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

4 years agoMerge "ONAP4K8s helm chart"
Ritu Sood [Sun, 28 Jun 2020 18:41:11 +0000 (18:41 +0000)]
Merge "ONAP4K8s helm chart"

4 years agoRemove config and yaml file creation 18/109618/2
Manjunath Ranganathaiah [Fri, 26 Jun 2020 22:22:13 +0000 (22:22 +0000)]
Remove config and yaml file creation

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

4 years agoMerge "Update cFW instruction set"
Ritu Sood [Sun, 28 Jun 2020 03:06:50 +0000 (03:06 +0000)]
Merge "Update cFW instruction set"

4 years agoMerge "Change the error message for orchestrator startup"
Ritu Sood [Sun, 28 Jun 2020 03:04:49 +0000 (03:04 +0000)]
Merge "Change the error message for orchestrator startup"

4 years agoMerge "Update Go version"
Ritu Sood [Sun, 28 Jun 2020 03:04:33 +0000 (03:04 +0000)]
Merge "Update Go version"

4 years agoAdd instruction and rsync call to instantiate 68/109468/3
Eric Multanen [Tue, 23 Jun 2020 19:23:30 +0000 (12:23 -0700)]
Add instruction and rsync call to instantiate

This patch adds app and resource 'order' and 'dependency'
instructions to the appcontext, as these are currently
expected by rsync.

Adds the rsync client and call to rsync to instantiate the
appcontext.

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

4 years agoMerge "Instantiation and termination of a given context implementation."
Ritu Sood [Fri, 26 Jun 2020 19:34:28 +0000 (19:34 +0000)]
Merge "Instantiation and termination of a given context implementation."

4 years agoMerge "Integrate M3DB and prometheus & enable remoteWrite"
Ritu Sood [Fri, 26 Jun 2020 19:29:26 +0000 (19:29 +0000)]
Merge "Integrate M3DB and prometheus & enable remoteWrite"

4 years agoUpdate Go version 85/109585/1
Larry Sachs [Thu, 25 Jun 2020 22:14:35 +0000 (18:14 -0400)]
Update Go version

Signed-off-by: Larry Sachs <larry.j.sachs@intel.com>
Change-Id: I9f8da809544d050b6da8dddc574f5d9fcb35eed2
Issue-ID: MULTICLOUD-1100

4 years agoMerge "Integrate collectd, prometheus and grafana."
Ritu Sood [Thu, 25 Jun 2020 19:43:36 +0000 (19:43 +0000)]
Merge "Integrate collectd, prometheus and grafana."

4 years agoChange the error message for orchestrator startup 82/109582/1
Rajamohan Raj [Thu, 25 Jun 2020 19:15:44 +0000 (19:15 +0000)]
Change the error message for orchestrator startup

In this patch, changed the error message for orchestrator
startup without the TLS.
Earlier the message was bit ambiguous.

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

4 years agoInstantiation and termination of a given context implementation. 69/109369/8
Manjunath Ranganathaiah [Fri, 19 Jun 2020 17:54:58 +0000 (17:54 +0000)]
Instantiation and termination of a given context implementation.

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

4 years agoMerge "Update single-node KUD installation variables"
Ritu Sood [Wed, 24 Jun 2020 21:29:53 +0000 (21:29 +0000)]
Merge "Update single-node KUD installation variables"

4 years agoIntegrate M3DB and prometheus & enable remoteWrite 28/109528/1
Rajamohan Raj [Wed, 24 Jun 2020 18:42:17 +0000 (11:42 -0700)]
Integrate M3DB and prometheus & enable remoteWrite

In this patch, added the correct helm charts for
M3DB, M3DB operator,and verified by deploying them
on a 3-node k8s clusters. After deployment, we
enable the remote write from prometheus to M3DB.
So that M3Db can be used as a long term storage
solution for metrics collected by prometheus.

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

4 years agoIntegrate collectd, prometheus and grafana. 27/109327/2
Rajamohan Raj [Thu, 18 Jun 2020 21:55:42 +0000 (14:55 -0700)]
Integrate collectd, prometheus and grafana.

In this patch, made neccessary changes in collectd and prometheus
helm charts such that prometheus can pull data from collectd.
Prometheus GUI and Grafana GUI are verified as well.

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

4 years agoFix ovnaction cnitype key value 67/109467/1
Eric Multanen [Tue, 23 Jun 2020 19:19:44 +0000 (12:19 -0700)]
Fix ovnaction cnitype key value

Fix the annotation key value for cnitype - should be 'type'
instead of 'cniType'.

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

4 years agoUpdate single-node KUD installation variables 38/109438/1
Konrad Bańka [Tue, 23 Jun 2020 06:07:46 +0000 (08:07 +0200)]
Update single-node KUD installation variables

Single host installation requires some kubespray variables defined
differently from what is currently defined by default. All-in-one
installation script has been updated to provide these differences.
CI-building script has been updated and removed applying variables
there, as it's not specific just for CI, but for every single-node
installation.

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

4 years agoUpdate to fix inconsistent naming 76/109376/1
Ritu Sood [Fri, 19 Jun 2020 20:18:14 +0000 (13:18 -0700)]
Update to fix inconsistent naming

Dockerfile and Kunernetes resource files
use inconsistent names. This patch is to
fix inconsistent names.

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

4 years agoONAP4K8s helm chart 59/107159/5
Ritu Sood [Wed, 6 May 2020 03:54:16 +0000 (20:54 -0700)]
ONAP4K8s helm chart

ONAP4K8s helm chart with ONAP4K8s microservices
and related items like MongoDB, etcd, Fluentd.

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

4 years agoUpdate cFW instruction set 41/109241/2
Victor Morales [Wed, 17 Jun 2020 01:00:04 +0000 (18:00 -0700)]
Update cFW instruction set

The cFW example has been changed since 1.3.0 version. This commit
reduces the steps to setup and provision this CNF. Its main goal
is to simplify deployment process.

Issue-ID: MULTICLOUD-301
Change-Id: Id96ea4b427aff4c42ecfd43b42fa5d6970c4a6df
Signed-off-by: Victor Morales <v.morales@samsung.com>
4 years agoMerge "optimize size and time using "--no-cache-dir""
Ritu Sood [Wed, 17 Jun 2020 05:06:40 +0000 (05:06 +0000)]
Merge "optimize size and time using "--no-cache-dir""

4 years agoStatus operator to update status of resources 53/105453/2
Srivahni Chivukula [Wed, 8 Apr 2020 00:52:05 +0000 (17:52 -0700)]
Status operator to update status of resources

This operator monitors the status of
resources like pods, services, deployments,
daemonsets, configmaps etc. and updates the
status in the CR accordingly.

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

4 years agoMerge "Fix gRpc listen address"
Ritu Sood [Fri, 12 Jun 2020 00:45:41 +0000 (00:45 +0000)]
Merge "Fix gRpc listen address"

4 years agoMerge "Adding Kubernetes resources for v2 API"
Ritu Sood [Fri, 12 Jun 2020 00:45:32 +0000 (00:45 +0000)]
Merge "Adding Kubernetes resources for v2 API"

4 years agoMerge "Add Dockerfile for v2 Microservices"
Ritu Sood [Fri, 12 Jun 2020 00:45:26 +0000 (00:45 +0000)]
Merge "Add Dockerfile for v2 Microservices"

4 years agoFix gRpc listen address 02/108702/2
Ritu Sood [Tue, 2 Jun 2020 17:31:33 +0000 (10:31 -0700)]
Fix gRpc listen address

listen function doesn't work with ip address.
Binding on all interfaces

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

4 years agoAdding Kubernetes resources for v2 API 05/108705/4
Ritu Sood [Tue, 2 Jun 2020 18:41:57 +0000 (18:41 +0000)]
Adding Kubernetes resources for v2 API

Yaml file to start databases and
v2 microservices

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

4 years agoAdd Dockerfile for v2 Microservices 64/107164/6
Ritu Sood [Wed, 6 May 2020 04:22:59 +0000 (21:22 -0700)]
Add Dockerfile for v2 Microservices

Dockerfile for building and running
microservices.

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

4 years agoMake GRPC calls and delete extra cluster handles 72/108872/1
Rajamohan Raj [Sun, 7 Jun 2020 22:42:04 +0000 (22:42 +0000)]
Make GRPC calls and delete extra cluster handles

The patch makes grpc calls for context updation
for a given list of controllers and deletes the
    extra set of cluster handles for each anyOf
    cluster after context updation

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

4 years agooptimize size and time using "--no-cache-dir" 61/108861/1
Pratik Raj [Sat, 6 Jun 2020 16:16:26 +0000 (21:46 +0530)]
optimize size and time using "--no-cache-dir"

Using "--no-cache-dir" flag in pip install ,make sure dowloaded packages
by pip don't cached on system . This is a best practise which make sure
to fetch ftom repo instead of using local cached one . Further , in case
of Docker Containers , by restricing caching , we can reduce image size.
In term of stats , it depends upon the number of python packages
multiplied by their respective size . e.g for heavy packages with a lot
of dependencies it reduce a lot by don't caching pip packages.

Further , more detail information can be found at

https://medium.com/sciforce/strategies-of-docker-images-optimization-2ca9cc5719b6

Issue-ID: MULTICLOUD-1080

Signed-off-by: Pratik Raj <rajpratik71@gmail.com>
Change-Id: Ib79fae7e69eb669e39bc3eb52373668367460ba2

4 years agoImplement Priority Based Controller list 53/108753/5
Rajamohan Raj [Wed, 3 Jun 2020 20:57:11 +0000 (20:57 +0000)]
Implement Priority Based Controller list

As part of this patch, have implemented
a priorityQueue based contoller list which shall
contain placement contollers and action contollers
listed based on their priority.

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

4 years agoAdd grpc contextupdate client call to orchestrator 49/106149/20
Eric Multanen [Thu, 23 Apr 2020 19:55:38 +0000 (12:55 -0700)]
Add grpc contextupdate client call to orchestrator

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

4 years agoMove cluster management into its own microservice 45/108545/13
Eric Multanen [Wed, 27 May 2020 18:21:42 +0000 (11:21 -0700)]
Move cluster management into its own microservice

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

4 years agoMerge "Add UninstallApp call to grpc"
Ritu Sood [Wed, 3 Jun 2020 17:41:30 +0000 (17:41 +0000)]
Merge "Add UninstallApp call to grpc"