multicloud/k8s.git
5 years agoInstall jq as an dependency for yq 33/88333/1
Samuli Silvius [Thu, 23 May 2019 09:50:57 +0000 (12:50 +0300)]
Install jq as an dependency for yq

Before using yq binary we need to install also its
dependency jq.

This commit is fixing jq installation in case it was
required as dependency for yq.
Also refactored a bit dependency installations of tests.

Issue-ID: MULTICLOUD-617

Change-Id: I0ea1143befa1cff809c231422b5cfb14fba1de4e
Signed-off-by: Samuli Silvius <s.silvius@partner.samsung.com>
5 years agoMerge "Adding helm charts for vFirewall."
Bin Yang [Thu, 23 May 2019 06:15:38 +0000 (06:15 +0000)]
Merge "Adding helm charts for vFirewall."

5 years agovFW usecase update 40/88040/7
Ritu Sood [Fri, 17 May 2019 23:07:45 +0000 (16:07 -0700)]
vFW usecase update

Update vFw Uses case to use 1.5.0
artifacts. 1.3.1 artifacts were
removed from nexus this week.
Changed sink container to remove IP
addresses that are built in the image and
can't be changed or parametrized. Added
a configmap for sink container

Change-Id: Ib1aae1816de866889e93d61a77832680764acef6
Issue-ID: MULTICLOUD-623
Signed-off-by: Ritu Sood <ritu.sood@intel.com>
5 years agoAdding helm charts for vFirewall. 16/87716/12
Akhila Kishore [Tue, 14 May 2019 22:43:41 +0000 (15:43 -0700)]
Adding helm charts for vFirewall.

The charts are complete with templating and basic constructs.
They need to be modified in terms of chart dependency and also address
network configuration. Addressed comments, changed network config
values and included subcharts. Removed redundent vars. Removed
shell vars and updated sink. Updated vars. Removed escape
chars from password which and removed comment in pod annotations.
Removed comments from network files. Changed the deployment file
lables for all 3 charts. Extricated some of the values addressed by comments.
Set global vars. Updated sink-service labels.

Change-Id: Id6fc2e066c8a6c5b33b65caae3a49637521c3133
Issue-ID: MULTICLOUD-628
Signed-off-by: Akhila Kishore <akhila.kishore@intel.com>
5 years agoMerge "Print error message for etcd connection failure"
Bin Yang [Wed, 22 May 2019 01:45:47 +0000 (01:45 +0000)]
Merge "Print error message for etcd connection failure"

5 years agoMerge "Fixing ansible version"
Bin Yang [Wed, 22 May 2019 01:43:23 +0000 (01:43 +0000)]
Merge "Fixing ansible version"

5 years agoFixing ansible version 08/88008/5
Michal Ptacek [Fri, 17 May 2019 14:38:19 +0000 (14:38 +0000)]
Fixing ansible version

It would be safer to fix ansible version to prevent issues
coming with newer ansible releases which might not be
compatible with current playbooks within this repo.
E.g. 2.8.0 is not compatible.

Change-Id: Ia1b54c7644bcaf6c453ff6586682ca35ced9acec
Issue-ID: MULTICLOUD-634
Signed-off-by: Michal Ptacek <m.ptacek@partner.samsung.com>
Signed-off-by: Samuli Silvius <s.silvius@partner.samsung.com>
5 years agoPrint error message for etcd connection failure 21/88121/1
Kiran Kamineni [Mon, 20 May 2019 22:25:50 +0000 (15:25 -0700)]
Print error message for etcd connection failure

Error message during client creation needs to be
printed.

Issue-ID: MULTICLOUD-637
Change-Id: Ic3929ae774235133673032e35a2388d2e0b98d36
Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
5 years agoMerge "Support user_directives that are attributes lists"
Bin Yang [Mon, 20 May 2019 21:18:29 +0000 (21:18 +0000)]
Merge "Support user_directives that are attributes lists"

5 years agoMerge "Preventing installer.sh execution to hang"
Victor Morales [Mon, 20 May 2019 21:03:39 +0000 (21:03 +0000)]
Merge "Preventing installer.sh execution to hang"

5 years agoMerge "vFW usecase install unzip package"
Bin Yang [Mon, 20 May 2019 03:31:20 +0000 (03:31 +0000)]
Merge "vFW usecase install unzip package"

5 years agoSupport user_directives that are attributes lists 22/87922/2
Kiran Kamineni [Fri, 17 May 2019 03:58:34 +0000 (20:58 -0700)]
Support user_directives that are attributes lists

Support the attributes in user_directives
attributes are lists of the following form:
"attributes": [
  {
  "attribute_value": "foo",
  "attribute_name": "bar"
  },
  {
  "attribute_value": "value2",
  "attribute_name": "name2"
  }
  ]

Issue-ID: ONAPARC-349
Change-Id: I576bc251d1566dc26696f12f826a09bacb7417a0
Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
5 years agoPreventing installer.sh execution to hang 60/87860/1
Michal Ptacek [Thu, 16 May 2019 11:07:35 +0000 (11:07 +0000)]
Preventing installer.sh execution to hang

This newgrp command used is not suitable for shell scripting,
it looks like misuse as it created new shell under right group
but prevents further script execution as it has to be exited
first.

Change-Id: I974da3a4b8d1e0827c846150079d453789d89554
Issue-ID: MULTICLOUD-632
Signed-off-by: Michal Ptacek <m.ptacek@partner.samsung.com>
5 years agoMerge "Move config to app and connect to instance"
Bin Yang [Thu, 16 May 2019 03:13:16 +0000 (03:13 +0000)]
Merge "Move config to app and connect to instance"

5 years agoMerge "Add find method in instance"
Bin Yang [Thu, 16 May 2019 01:24:11 +0000 (01:24 +0000)]
Merge "Add find method in instance"

5 years agoMerge "Variable used before intialization"
Bin Yang [Thu, 16 May 2019 01:23:59 +0000 (01:23 +0000)]
Merge "Variable used before intialization"

5 years agoMerge "Change format of the network file"
Bin Yang [Thu, 16 May 2019 01:23:52 +0000 (01:23 +0000)]
Merge "Change format of the network file"

5 years agoMove config to app and connect to instance 23/87823/1
Kiran Kamineni [Wed, 15 May 2019 23:47:39 +0000 (16:47 -0700)]
Move config to app and connect to instance

Move config instantiation to app and connect it
to the instance to allow updates and so on.

Issue-ID: MULTICLOUD-464
Change-Id: Ic994ef78a6e0d2db5e695e33b7b8a302c74c10da
Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
5 years agoAdd find method in instance 19/87819/1
Kiran Kamineni [Wed, 15 May 2019 22:22:31 +0000 (15:22 -0700)]
Add find method in instance

Add a find method to get instances
based on rbname, version and profile.
If only rbname is provided, all instances based on
that resource bundle are returned.
If only rbname and version are provided, all instances
based on that combination are returned.
When all three parameters are provided, a single instance
that matches them is returned.

Issue-ID: MULTICLOUD-613
Change-Id: If63e844c77829211b807ce6cd7c11dad247751fc
Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
5 years agovFW usecase install unzip package 08/87808/1
Ritu Sood [Wed, 15 May 2019 20:23:16 +0000 (13:23 -0700)]
vFW usecase install unzip package

Unzip package required for vFw
scripts to be unzipped before using

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

5 years agoRemove extra v1 from broker path 00/87800/1
Kiran Kamineni [Wed, 15 May 2019 19:32:23 +0000 (12:32 -0700)]
Remove extra v1 from broker path

Remove extra v1 from path as it is added
in the MSB api anyway.

Issue-ID: MULTICLOUD-630
Change-Id: Ib7adbf2315e0a3b1fe8170096d877df8f1b64683
Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
5 years agoMerge "Add missing jq package installation"
Victor Morales [Wed, 15 May 2019 14:31:45 +0000 (14:31 +0000)]
Merge "Add missing jq package installation"

5 years agovFW packages and scripts version mismatch 13/87713/1
Ritu Sood [Tue, 14 May 2019 21:30:06 +0000 (14:30 -0700)]
vFW packages and scripts version mismatch

vFW pakages are being picked from
nexus staging version 1.3.1 but
the scripts are from master.
Change to get all packages from nexus

Change-Id: I51829b8ceaf96b4634d58a34c48f8e953ec0a684
Issue-ID: MULTICLOUD-623
Signed-off-by: Ritu Sood <ritu.sood@intel.com>
5 years agoVariable used before intialization 22/87722/1
Ritu Sood [Tue, 14 May 2019 16:48:39 +0000 (16:48 +0000)]
Variable used before intialization

Initialize variable before using

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

5 years agoChange format of the network file 21/87721/1
Ritu Sood [Tue, 14 May 2019 16:36:48 +0000 (16:36 +0000)]
Change format of the network file

Format of network file is different
between KUD and Plugin. Change the
format to match the format in KUD

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

5 years agoMerge "Make aio.sh rerunnable"
Victor Morales [Tue, 14 May 2019 15:06:23 +0000 (15:06 +0000)]
Merge "Make aio.sh rerunnable"

5 years agoAdd missing jq package installation 31/87331/5
Samuli Silvius [Thu, 9 May 2019 08:43:36 +0000 (11:43 +0300)]
Add missing jq package installation

KUD installer.sh is missing jq package installation.
Jq is used in tests/plugin.sh, tests/plugin_edgex.sh and tests/nfd.sh
functional tests.

Issue-ID: MULTICLOUD-617

Change-Id: Ib53bf3e47e42f98b0d38a2507f4664bbaaaceea0
Signed-off-by: Samuli Silvius <s.silvius@partner.samsung.com>
Signed-off-by: Victor Morales <victor.morales@intel.com>
5 years agoMake aio.sh rerunnable 53/87353/4
Samuli Silvius [Thu, 9 May 2019 11:53:43 +0000 (14:53 +0300)]
Make aio.sh rerunnable

aio.sh script can be run only ones.
Cloning of k8s on top of existing dir does not work
and ssh key generation on top of existing key does not work.

Issue-ID: MULTICLOUD-620

Change-Id: Ic60dfd6b96ab78f6edcdc3655c18f90c4427c856
Signed-off-by: Samuli Silvius <s.silvius@partner.samsung.com>
5 years agovFW test case wrong urls and version 04/87604/1
Ritu Sood [Mon, 13 May 2019 23:31:51 +0000 (16:31 -0700)]
vFW test case wrong urls and version

In vFw test case some urls are incorrect
and the vFW scripts release version
doesn't exist anymore

Change-Id: I296a6ac0a3779f3d63f5dfa4e411d4663fd98651
Issue-ID: MULTICLOUD-623
Signed-off-by: Ritu Sood <ritu.sood@intel.com>
5 years agoMerge "Move OVN to the latest version"
Victor Morales [Mon, 13 May 2019 16:58:15 +0000 (16:58 +0000)]
Merge "Move OVN to the latest version"

5 years agoMerge "Disable building of K8s plugin in KUD deployment"
Bin Yang [Mon, 13 May 2019 13:30:48 +0000 (13:30 +0000)]
Merge "Disable building of K8s plugin in KUD deployment"

5 years agoSource /etc/environment for tests 44/87344/1
Samuli Silvius [Thu, 9 May 2019 10:27:02 +0000 (13:27 +0300)]
Source /etc/environment for tests

After KUD deployment (at least aio.sh),
if running related tests immediately in the same shell session,
system wide environment variables (/etc/environment) are not effective.

This commit sources /etc/environment in commonly used _functions.sh.

Issue-ID: MULTICLOUD-619

Change-Id: I75cccdd8bdc8a67b92239704160331c58ad69d08
Signed-off-by: Samuli Silvius <s.silvius@partner.samsung.com>
5 years agoDisable building of K8s plugin in KUD deployment 69/87369/1
Akhila Kishore [Thu, 9 May 2019 02:55:47 +0000 (19:55 -0700)]
Disable building of K8s plugin in KUD deployment

K8S plugin is part of ONAP and should not be instantiated by KUD.
It only needs to be instantiated by OOM of ONAP.
Changing the default value.

Change-Id: I4e8f180981794b380bf05662243972ad03c23c90
Issue-ID: Issue-ID: MULTICLOUD-502
Signed-off-by: Akhila Kishore <akhila.kishore@intel.com>
5 years agoCheck always returns true for install_plugin 90/87290/1
Kiran Kamineni [Wed, 8 May 2019 22:44:08 +0000 (15:44 -0700)]
Check always returns true for install_plugin

The [[ test for KUD_PLUGIN_ENABLED always returns true.
Removed [[ to use the boolean operation instead.

Issue-ID: MULTICLOUD-616
Change-Id: I6bbd0c462ab7bb66447dec8dd16d786062a9c586
Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
5 years agoUpdate Readme to reflect the new golang version 71/87271/1
Kiran Kamineni [Wed, 8 May 2019 18:15:46 +0000 (11:15 -0700)]
Update Readme to reflect the new golang version

golang version used is 1.12.4. This patch updates
the README.md to reflect that.

Issue-ID: MULTICLOUD-615
Change-Id: I2ab4e0f12bf0a3ac1c807f39c5a9a05ee71c720f
Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
5 years agoMerge "update golang version for kud"
Bin Yang [Wed, 8 May 2019 18:09:41 +0000 (18:09 +0000)]
Merge "update golang version for kud"

5 years agoMerge "Fix pip install/upgrade logic"
Victor Morales [Tue, 7 May 2019 21:49:47 +0000 (21:49 +0000)]
Merge "Fix pip install/upgrade logic"

5 years agoupdate golang version for kud 78/87078/1
Kiran Kamineni [Mon, 6 May 2019 20:09:35 +0000 (13:09 -0700)]
update golang version for kud

Use the 1.12.4 version of golang for kud instead of
the older 1.11 version.

Issue-ID: MULTICLOUD-610
Change-Id: I5dab57da539fef78b3097aa73e6628980d534dde
Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
5 years agoMake service port configurable 70/87070/1 0.1.0
Kiran Kamineni [Mon, 6 May 2019 18:22:46 +0000 (11:22 -0700)]
Make service port configurable

Service port should be configurable.
This patch removes the hardcoded value.
The default value is 9015

Issue-ID: MULTICLOUD-609
Change-Id: Iae05f42bd06ecd061ec68a3a7c4a4a87f33b22fa
Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
5 years agoFix pip install/upgrade logic 29/87029/1
Samuli Silvius [Mon, 6 May 2019 12:27:42 +0000 (15:27 +0300)]
Fix pip install/upgrade logic

installer.sh has reverse logic for install/upgrade pip
after checking if pip is installed.

Issue-ID: MULTICLOUD-607

Change-Id: Ifc512e80d8da7a37acc771f40e9edd7596388fcb
Signed-off-by: Samuli Silvius <s.silvius@partner.samsung.com>
5 years agoCreate kubeconfig files in kubeconfig dir 63/86863/1
Kiran Kamineni [Wed, 1 May 2019 19:31:14 +0000 (12:31 -0700)]
Create kubeconfig files in kubeconfig dir

The connectivity api should allow the creation
of kubeconfig files in the kubeconfig dir.

Issue-ID: MULTICLOUD-292
Change-Id: I5ecc92622648c6c90b71ffad433a132e191cf4b3
Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
5 years agoMerge cloudregionid and connectionname 54/86754/1
Kiran Kamineni [Wed, 1 May 2019 23:03:47 +0000 (16:03 -0700)]
Merge cloudregionid and connectionname

Merge cloudregionid and connectionname to form cloudregion

Issue-ID: MULTICLOUD-292
Change-Id: If775ec5841636de37e1c10bc6d093c16a36c28dc
Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
5 years agoMerge "Fix multus and ovn tests"
Bin Yang [Sat, 27 Apr 2019 15:39:21 +0000 (15:39 +0000)]
Merge "Fix multus and ovn tests"

5 years agoMerge "Use the unstructured type for decode"
Bin Yang [Fri, 26 Apr 2019 02:00:11 +0000 (02:00 +0000)]
Merge "Use the unstructured type for decode"

5 years agoMerge "Adding healthcheck for OOM testing"
Bin Yang [Fri, 26 Apr 2019 02:00:05 +0000 (02:00 +0000)]
Merge "Adding healthcheck for OOM testing"

5 years agoMerge "Update info.yaml to add new committer"
Xiaohua Zhang [Fri, 26 Apr 2019 01:58:46 +0000 (01:58 +0000)]
Merge "Update info.yaml to add new committer"

5 years agoAdding healthcheck for OOM testing 14/86214/2
Kiran Kamineni [Thu, 25 Apr 2019 00:23:22 +0000 (17:23 -0700)]
Adding healthcheck for OOM testing

Add a heathcheck endpoint for OOM testing

Issue-ID: ONAPARC-363
Change-Id: Id5f77478d331fedb19ac162389d95852e10c5022
Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
5 years agoUse the unstructured type for decode 83/86183/2
Kiran Kamineni [Wed, 24 Apr 2019 18:39:17 +0000 (11:39 -0700)]
Use the unstructured type for decode

Use the unstructured type in the into field.
This allows us to remove the convert part of the
code and also allows decoding for CRDs.

Issue-ID: MULTICLOUD-585
Change-Id: I27ecdba7127ce63137dfbcd1c0a6938343b4e759
Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
5 years agoUpdated go.sum created from 1.12.4 19/86319/1
Kiran Kamineni [Thu, 25 Apr 2019 19:35:07 +0000 (12:35 -0700)]
Updated go.sum created from 1.12.4

Updated go.sum generated from build based on 1.12.4

Issue-ID: MULTICLOUD-587
Change-Id: I92474c20cc58f2b3e7d0085ed57548c19aa896d8
Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
5 years agoUpdate info.yaml to add new committer 51/85951/5
Bin Yang [Mon, 22 Apr 2019 10:18:16 +0000 (10:18 +0000)]
Update info.yaml to add new committer

Change-Id: I10dafd4a780d79a5696a39e5f68c1636cf0898c6
Issue-ID: MULTICLOUD-580
Signed-off-by: Bin Yang <bin.yang@windriver.com>
5 years agoMerge "Remove deployment plugin"
Bin Yang [Wed, 24 Apr 2019 01:41:08 +0000 (01:41 +0000)]
Merge "Remove deployment plugin"

5 years agoRemove unused variables dockerfile 00/86100/1
Kiran Kamineni [Tue, 23 Apr 2019 22:06:18 +0000 (15:06 -0700)]
Remove unused variables dockerfile

Remove unused environment variables from
dockerfile

Issue-ID: MULTICLOUD-575
Change-Id: I078d0e176e939a939cb141dcef1b52828cdb2b3a
Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
5 years agoRemove deployment plugin 98/86098/1
Kiran Kamineni [Tue, 23 Apr 2019 21:49:05 +0000 (14:49 -0700)]
Remove deployment plugin

The deployment plugin does not support managing
resources based on the old v1beta1 resource path.
This is supported by the generic plugin.
We will re-enable this plugin if there is a need for
special actions for deployments.

Issue-ID: MULTICLOUD-583
Change-Id: I20515fe1a4aadaf575f0cc798000d03d1bca0663
Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
5 years agoMove OVN to the latest version 84/86084/1
Ritu Sood [Tue, 23 Apr 2019 18:13:53 +0000 (11:13 -0700)]
Move OVN to the latest version

Chnage commit id for OVN

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

5 years agoFix multus and ovn tests 83/86083/1
Ritu Sood [Tue, 23 Apr 2019 18:05:30 +0000 (11:05 -0700)]
Fix multus and ovn tests

The tests were reporting success even when the
interfaces were not created correctly

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

5 years agoMerge "Add plugin to the folder names"
Bin Yang [Tue, 23 Apr 2019 02:03:08 +0000 (02:03 +0000)]
Merge "Add plugin to the folder names"

5 years agoMerge "Move configuration into config files"
Bin Yang [Tue, 23 Apr 2019 02:02:41 +0000 (02:02 +0000)]
Merge "Move configuration into config files"

5 years agoMerge "Updating Multus to v3.3-tp"
Bin Yang [Tue, 23 Apr 2019 02:02:25 +0000 (02:02 +0000)]
Merge "Updating Multus to v3.3-tp"

5 years agoAdd plugin to the folder names 90/85990/1
Kiran Kamineni [Tue, 23 Apr 2019 00:17:34 +0000 (17:17 -0700)]
Add plugin to the folder names

Make the folder name as k8splugin in keeping
with the repository name and other references.

Issue-ID: MULTICLOUD-581
Change-Id: Ida36877d0aa4ce156c11bdce9b91cb06f6aee8f9
Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
5 years agoMove configuration into config files 54/85854/2
Kiran Kamineni [Thu, 18 Apr 2019 23:38:20 +0000 (16:38 -0700)]
Move configuration into config files

Move k8splugin configuration into config files
instead of using environment variables.

Issue-ID: MULTICLOUD-579
Change-Id: I7b76d5a14d24f002a8db484097a31fb5e908b6f8
Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
5 years agoMerge "Virtlet Image link broken"
Bin Yang [Fri, 19 Apr 2019 09:06:58 +0000 (09:06 +0000)]
Merge "Virtlet Image link broken"

5 years agoMerge "Support non-namespaced objects in generic plugin"
Bin Yang [Fri, 19 Apr 2019 09:06:34 +0000 (09:06 +0000)]
Merge "Support non-namespaced objects in generic plugin"

5 years agoVirtlet Image link broken 44/85644/3
Ritu Sood [Thu, 18 Apr 2019 00:17:25 +0000 (17:17 -0700)]
Virtlet Image link broken

Fixed link

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

5 years agoUpdating Multus to v3.3-tp 22/85722/2
ritusood [Thu, 18 Apr 2019 14:21:57 +0000 (14:21 +0000)]
Updating Multus to v3.3-tp

Multus team created a tech preview for
Virtlet issue. Moving KUD to that release.

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

5 years agoSupport non-namespaced objects in generic plugin 39/85639/1
Kiran Kamineni [Wed, 17 Apr 2019 21:51:56 +0000 (14:51 -0700)]
Support non-namespaced objects in generic plugin

Generic plugin is not generic enough right now.
It was assuming that objects are namespaced.
This patch supports both types based on the
Scope field in the mapping.

Issue-ID: MULTICLOUD-557
Change-Id: I3ac512243d183b26cbf0aea2962dcd2a6492c887
Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
5 years agoFix docker build 36/85636/1
Kiran Kamineni [Wed, 17 Apr 2019 19:37:50 +0000 (12:37 -0700)]
Fix docker build

Docker build is broken. This patch fixes it.

Issue-ID: MULTICLOUD-575
Change-Id: I0edc900dfc66baa409c92eb656bd5d7886d6aa40
Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
5 years agoReplace Kind with GroupVersionKind 24/85524/1
Kiran Kamineni [Wed, 17 Apr 2019 01:09:13 +0000 (18:09 -0700)]
Replace Kind with GroupVersionKind

Kind is not unique to track resources in Kubernetes
GroupVersionKind is unique. We are just using that to
track our data. It is abstracted behind a couple of new
types for templates and resources.
This change makes a lot of the old kind based operations
redundant and simplified.

Issue-ID: MULTICLOUD-573
Change-Id: I8f4ded2ba6a0821a8fbd679dc99ce3a44d805524
Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
5 years agoRename plugin reference interface 07/85507/1
Kiran Kamineni [Tue, 16 Apr 2019 19:07:51 +0000 (12:07 -0700)]
Rename plugin reference interface

Rename the plugin interface to something
more relevant. KubernetesResource will be
used to describe resources for creation.

Issue-ID: MULTICLOUD-557
Change-Id: I2fff5363b897b968e95b26257d8f26509fb567fd
Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
5 years agoFix build error 78/85378/1
Kiran Kamineni [Mon, 15 Apr 2019 23:27:55 +0000 (16:27 -0700)]
Fix build error

Build is broken because of some changes that were
merged without being rebased on dependent patches.

Issue-ID: MULTICLOUD-350
Change-Id: If8bd455103dea3191fedb39ea525efaafb145953
Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
5 years agoMerge "Add Connectivity Info API"
Bin Yang [Fri, 12 Apr 2019 03:26:10 +0000 (03:26 +0000)]
Merge "Add Connectivity Info API"

5 years agoMerge "Day 2 Configuration API's"
Bin Yang [Fri, 12 Apr 2019 03:26:01 +0000 (03:26 +0000)]
Merge "Day 2 Configuration API's"

5 years agoAdd Connectivity Info API 05/85005/4
rsood [Thu, 11 Apr 2019 13:09:00 +0000 (13:09 +0000)]
Add Connectivity Info API

API to add connectivity information for
Cloud Regions to K8s Plugin
https://wiki.onap.org/display/DW/MultiCloud+K8s-Plugin-service+API%27s

Change-Id: I0a9166df9b076a7fdacf0b2f9e51a9cdebe4b621
Signed-off-by: rsood <ritu.sood@intel.com>
Issue-ID: MULTICLOUD-292
Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
5 years agoMerge "Provider network support when OVN is used"
Bin Yang [Thu, 11 Apr 2019 12:00:58 +0000 (12:00 +0000)]
Merge "Provider network support when OVN is used"

5 years agoMerge "Add support for so integration"
Bin Yang [Thu, 11 Apr 2019 12:00:25 +0000 (12:00 +0000)]
Merge "Add support for so integration"

5 years agoAdd support for so integration 03/85003/2
Kiran Kamineni [Thu, 11 Apr 2019 04:54:41 +0000 (21:54 -0700)]
Add support for so integration

Add support for the multicloud-api
that is called by SO for instantiation.

Issue-ID: MULTICLOUD-350
Change-Id: Icf9137dae9796ac256c3319b49af6c30b275a4a9
Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
5 years agoMerge "Add option to start https listener"
Bin Yang [Thu, 11 Apr 2019 05:48:32 +0000 (05:48 +0000)]
Merge "Add option to start https listener"

5 years agoMerge "Using the --chown flag to reduce image size"
Bin Yang [Thu, 11 Apr 2019 05:47:51 +0000 (05:47 +0000)]
Merge "Using the --chown flag to reduce image size"

5 years agoAdd option to start https listener 02/85002/1
Kiran Kamineni [Thu, 11 Apr 2019 04:53:45 +0000 (21:53 -0700)]
Add option to start https listener

Added support for tls connection for k8splugin.
It will load the certificates from its current folder.
Any installer needs to just put these files in the same
folder as the executable and it will pick them up and start
in https mode.

Issue-ID: MULTICLOUD-570
Change-Id: I505135daa3933b76023c941e7bee54be65fa791f
Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
5 years agoDay 2 Configuration API's 55/84755/4
rsood [Wed, 10 Apr 2019 05:00:04 +0000 (05:00 +0000)]
Day 2 Configuration API's

This patch adds Configuration API's
https://wiki.onap.org/display/DW/MultiCloud+K8s-Plugin-service+API%27s

Change-Id: I52ebfc5aa980ec8af4a31569d569216e9a2a760c
Issue-ID: MULTICLOUD-464
Signed-off-by: rsood <ritu.sood@intel.com>
5 years agoUsing the --chown flag to reduce image size 67/84967/1
Kiran Kamineni [Wed, 10 Apr 2019 23:56:34 +0000 (16:56 -0700)]
Using the --chown flag to reduce image size

Patch to reduce the size of the docker image
for multicloud/k8s image
Reduces size by about 300mb

Issue-ID: MULTICLOUD-350
Change-Id: I240c57267180c020b659795ea965f5c0877252fc
Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
5 years agoProvider network support when OVN is used 53/84953/1
Ritu Sood [Wed, 10 Apr 2019 21:28:08 +0000 (14:28 -0700)]
Provider network support when OVN is used

Example script is provided to create
OVN provider networks. Test case is
provided to place workloads on the OVN
provider network using ovn4nfv-k8s-plugin

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

5 years agoAdd support for generic plugin 64/84764/6
Kiran Kamineni [Mon, 8 Apr 2019 23:36:34 +0000 (16:36 -0700)]
Add support for generic plugin

Add support for generic kinds
We are currently using a known map to find the
group version resource for a kind.

Issue-ID: MULTICLOUD-350
Change-Id: I5a64f73760b73cf92b9a3fab8c22ad54e0a5f84f
Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
5 years agoExport kubernetesClient 53/84753/2
Kiran Kamineni [Tue, 9 Apr 2019 21:11:06 +0000 (14:11 -0700)]
Export kubernetesClient

Export kubernetesClient. There are situations where
this will need to be accessed in the plugins and we need
the definition to be exported for that.

Issue-ID: MULTICLOUD-350
Change-Id: I9eee03ea77e390effd33ed96cbbc25dc4cd09cdd
Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
5 years agoMerge "Fix integration test plugin.sh"
Bin Yang [Wed, 10 Apr 2019 01:00:17 +0000 (01:00 +0000)]
Merge "Fix integration test plugin.sh"

5 years agoUse consistent naming for Name and Version 80/84280/1
Kiran Kamineni [Thu, 4 Apr 2019 22:38:30 +0000 (15:38 -0700)]
Use consistent naming for Name and Version

Definition Name and Definition Version are now
using the consistent naming similar to the Profile
and instance structure.
Name becomes RBName
Version becomes RBVersion

Issue-ID: MULTICLOUD-350
Change-Id: Ifc329d4979a06cb017c6f9d916c227c696b664e0
Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
5 years agoFix integration test plugin.sh 66/84266/2
Kiran Kamineni [Thu, 4 Apr 2019 18:01:21 +0000 (11:01 -0700)]
Fix integration test plugin.sh

Update the integration test plugin.sh
with the latest api changes to instance
management.

Issue-ID: MULTICLOUD-350
Change-Id: Ie451b7378a774f3e382c5a46a9df2bbaf0f273a8
Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
5 years agoUse common code for executeRequest 59/84259/1
Kiran Kamineni [Thu, 4 Apr 2019 16:54:59 +0000 (09:54 -0700)]
Use common code for executeRequest

Use the common executeRequest function instead
of multiple copies of the same lines for test requests

Issue-ID: MULTICLOUD-557
Change-Id: Icde498b55592333af265fc348f3a286a59b9b61c
Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
5 years agoMerge "Add url path tests to definition handler"
Bin Yang [Thu, 4 Apr 2019 09:25:41 +0000 (09:25 +0000)]
Merge "Add url path tests to definition handler"

5 years agoMerge "Add url path tests to profile handler"
Bin Yang [Thu, 4 Apr 2019 09:25:30 +0000 (09:25 +0000)]
Merge "Add url path tests to profile handler"

5 years agoAdd url path tests to profile handler 53/84153/1
Kiran Kamineni [Wed, 3 Apr 2019 23:07:26 +0000 (16:07 -0700)]
Add url path tests to profile handler

Improve the profile tests by testing the
url path parameters as well.

Issue-ID: MULTICLOUD-547
Change-Id: Ib31a42cc6c3622d17ddc37eb0506ca991d2334c0
Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
5 years agoAdd url path tests to definition handler 54/84154/1
Kiran Kamineni [Wed, 3 Apr 2019 22:48:17 +0000 (15:48 -0700)]
Add url path tests to definition handler

Url path parameters are not tested in the current
unit tests. This is fixed with the use of the same
router that is used by the main program.

Issue-ID: MULTICLOUD-547
Change-Id: Ie162150fb1ecf22766011339e68e03f1067779a0
Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
5 years agoRefactor instance code 96/83996/2
Kiran Kamineni [Thu, 28 Mar 2019 19:53:13 +0000 (12:53 -0700)]
Refactor instance code

Issue-ID: MULTICLOUD-350
Change-Id: I2574d94e4ebada1e138913b2a03549dd90906d7b
Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
5 years agoMinor update KRD to KUD 81/83681/2
Akhila Kishore [Fri, 29 Mar 2019 06:18:30 +0000 (23:18 -0700)]
Minor update KRD to KUD

Change-Id: Id553c1300e6559443d87c58abf46bab81bf71535
Signed-off-by: Akhila Kishore <akhila.kishore@intel.com>
Issue-ID: MULTICLOUD-301

5 years agoMerge "Make profile key explicit"
Victor Morales [Tue, 2 Apr 2019 17:20:12 +0000 (17:20 +0000)]
Merge "Make profile key explicit"

5 years agoRemove build tags 92/83892/1
Kiran Kamineni [Mon, 1 Apr 2019 19:47:57 +0000 (12:47 -0700)]
Remove build tags

Remove build tags as this is causing issues where
mock plugins need to be loaded into files that do
unit testing as well.
Full integration testing is being done in the CSIT.

Issue-ID: MULTICLOUD-559
Change-Id: Icd147dac80d16a6fb8f33048c76d4083158cecd2
Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
5 years agoMake profile key explicit 79/83779/1
Kiran Kamineni [Fri, 29 Mar 2019 23:07:47 +0000 (16:07 -0700)]
Make profile key explicit

Using profilename instead of name in the db key
protects it from getting overwritten by anything
else that might use name as a key.
Using explicit key names makes sure that we don't
have to add bson structure tags in the code.

Issue-ID: MULTICLOUD-558
Change-Id: I9bd6f757496af22d8662b0d114f0ef7d33a5784a
Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
5 years agoFix merge issue 55/83755/1
Kiran Kamineni [Fri, 29 Mar 2019 16:33:43 +0000 (09:33 -0700)]
Fix merge issue

The TestUpdate method was updated properly with the
merge on to master. This fixes that issue.

Issue-ID: MULTICLOUD-553
Change-Id: I97c95b628fade37304590de59bb4bb6faaeb4450
Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
5 years agoMerge "Fix document typo in readme.md"
Bin Yang [Fri, 29 Mar 2019 05:17:22 +0000 (05:17 +0000)]
Merge "Fix document typo in readme.md"

5 years agoMerge "Add update method to db interface"
Bin Yang [Fri, 29 Mar 2019 05:17:07 +0000 (05:17 +0000)]
Merge "Add update method to db interface"

5 years agoFix document typo in readme.md 74/83674/1
Kiran Kamineni [Fri, 29 Mar 2019 04:08:00 +0000 (21:08 -0700)]
Fix document typo in readme.md

Fix some small typos in the readme.md file

Issue-ID: MULTICLOUD-350
Change-Id: I7ad44170ce773779e5c19711618ac8c349b618a9
Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>