multicloud/k8s.git
4 years agoFix path to images 88/94388/1
Ritu Sood [Thu, 29 Aug 2019 20:28:37 +0000 (13:28 -0700)]
Fix path to images

Relative playbook path breaks
in aio configuration.

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

4 years agoAdd support for Network Operator 02/93602/3
Ritu Sood [Wed, 14 Aug 2019 19:41:37 +0000 (19:41 +0000)]
Add support for Network Operator

ovn4nfvk8s plugin now uses operator sdk
and controller runtime. It now includes
support for Network operator. This patch
includes changes needed in KUD for that.

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

4 years agoMerge "Version update."
Ritu Sood [Thu, 22 Aug 2019 12:20:56 +0000 (12:20 +0000)]
Merge "Version update."

4 years agoMerge "Adding Helm charts of MetalLB"
Kiran Kamineni [Tue, 20 Aug 2019 22:56:28 +0000 (22:56 +0000)]
Merge "Adding Helm charts of MetalLB"

4 years agoVersion update. 00/93900/1
Akhila Kishore [Mon, 19 Aug 2019 22:54:12 +0000 (15:54 -0700)]
Version update.

Updating Kubespray version from 2.8.2 to 2.10.4 for KuD offline
support and integration with new add-ons in future.

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

4 years agoMerge "Revert "Version update.""
Ritu Sood [Mon, 19 Aug 2019 22:53:39 +0000 (22:53 +0000)]
Merge "Revert "Version update.""

4 years agoRevert "Version update." 99/93899/1
Kiran Kamineni [Mon, 19 Aug 2019 22:48:50 +0000 (22:48 +0000)]
Revert "Version update."

This reverts commit 5f760c3fb7d0e74833b1a2137e6ff3dadc71b2f5.

Issue-ID: MULTICLOUD-772
Change-Id: I6feffd87545195992fb28e98dcee4038d9b08474
Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
4 years agoMerge "Version update."
Kiran Kamineni [Mon, 19 Aug 2019 22:45:54 +0000 (22:45 +0000)]
Merge "Version update."

4 years agoMerge "Add query parameters support to instance API"
Ritu Sood [Mon, 19 Aug 2019 22:27:28 +0000 (22:27 +0000)]
Merge "Add query parameters support to instance API"

4 years agoVersion update. 93/93893/1
Akhila Kishore [Mon, 19 Aug 2019 21:55:38 +0000 (14:55 -0700)]
Version update.

Updating Kubespray version from 2.8.2 to 2.10.4 for KuD offline
support and integration with new add-ons in future.

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

4 years agoMerge "Fix bug in tagging podTemplates"
Ritu Sood [Mon, 19 Aug 2019 17:39:27 +0000 (17:39 +0000)]
Merge "Fix bug in tagging podTemplates"

4 years agoAdding Helm charts of MetalLB 42/93542/2
Pramod [Wed, 14 Aug 2019 18:25:56 +0000 (11:25 -0700)]
Adding Helm charts of MetalLB

MetalLB is the loadbalancer for Kubernetes

Issue-ID: MULTICLOUD-747
Signed-off-by: Pramod <pramod.raghavendra.jayathirth@intel.com>
Change-Id: Ic07877234f9b0f80cb636f7b4e3c265b8be8a945

4 years agoHelm charts for Istio deployment 38/92738/4
Pramod [Mon, 5 Aug 2019 22:56:10 +0000 (15:56 -0700)]
Helm charts for Istio deployment

This Chart will deploy istio in SDS configuration
and enables istio sidecar injection in required
namespace

Issue-ID: MULTICLOUD-711
Signed-off-by: Pramod <pramod.raghavendra.jayathirth@intel.com>
Change-Id: I9a4dd781c14c2dc2bb1ee8ca648e3c8911ac1fe1

4 years agoAdd query parameters support to instance API 82/93482/1
Kiran Kamineni [Wed, 7 Aug 2019 22:45:54 +0000 (15:45 -0700)]
Add query parameters support to instance API

Add support for query parameters to find instances
with rb-name, rb-version, profile-name as query parameters
eg: curl IP:PORT/v1/instance?rb-name=test&rb-version=v1

Issue-ID: MULTICLOUD-662
Change-Id: If68c87885c8b8dd097cbb3860e8c7320310a6ef7
Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
4 years agoFix bug in tagging podTemplates 48/93448/1
Kiran Kamineni [Thu, 8 Aug 2019 22:22:43 +0000 (15:22 -0700)]
Fix bug in tagging podTemplates

Fix a bug in tagging podTemplates
Using the runtime converter to convert
unstructured map data to podTemplateSpec now.

Issue-ID: MULTICLOUD-675
Change-Id: I661d3c63ae39b3533bb9c0a9934fc507284c7074
Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
4 years agoMerge "Fix istio test scenario endpoint API validation"
Kiran Kamineni [Thu, 8 Aug 2019 13:19:43 +0000 (13:19 +0000)]
Merge "Fix istio test scenario endpoint API validation"

4 years agoMerge "Add top level make"
Ritu Sood [Wed, 7 Aug 2019 21:41:45 +0000 (21:41 +0000)]
Merge "Add top level make"

4 years agoAdd custom label to track created resources 35/91635/7
Kiran Kamineni [Wed, 17 Jul 2019 23:55:00 +0000 (16:55 -0700)]
Add custom label to track created resources

Create a custom label on created resources
Also, create it on pods where pods are being
created.
This will help us later for filtering and querying
pods and resources.

Issue-ID: MULTICLOUD-675
Change-Id: I4b4fce7b67f9f27559d99dcca94a9191b96cb7c6
Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
4 years agoMerge "Helm chart to deploy Istio-operator"
Kiran Kamineni [Wed, 7 Aug 2019 15:57:19 +0000 (15:57 +0000)]
Merge "Helm chart to deploy Istio-operator"

4 years agoMerge "Update committers info"
Xiaohua Zhang [Wed, 7 Aug 2019 08:00:38 +0000 (08:00 +0000)]
Merge "Update committers info"

4 years agoUpdate committers info 56/92756/5
Bin Yang [Tue, 6 Aug 2019 07:27:15 +0000 (07:27 +0000)]
Update committers info

Change-Id: I9f1e94d3b038cffca8b5980eb5f9f209a85021cb
Issue-ID: MULTICLOUD-751
Signed-off-by: Bin Yang <bin.yang@windriver.com>
4 years agoMerge changes Ia35fac70,I7ffaa3d4,I53e7e4d6
Bin Yang [Tue, 6 Aug 2019 06:20:07 +0000 (06:20 +0000)]
Merge changes Ia35fac70,I7ffaa3d4,I53e7e4d6

* changes:
  Update plugin.sh with new helper functions
  Provide connection info for plugin testcase
  Correct k8splugin endpoint configuration in KUD test

4 years agoHelm chart to deploy Istio-operator 37/92737/1
Pramod [Mon, 5 Aug 2019 22:35:41 +0000 (15:35 -0700)]
Helm chart to deploy Istio-operator

Istio-operator is required to manage the
lifecycle and deployments of Istio

Issue-ID: MULTICLOUD-710

Signed-off-by: Pramod <pramod.raghavendra.jayathirth@intel.com>
Change-Id: Ifd2d05e790148096b5c0b454208e233aa5a299f9

4 years agoMerge "Correct go version installed by k8s addons"
Bin Yang [Mon, 5 Aug 2019 07:20:23 +0000 (07:20 +0000)]
Merge "Correct go version installed by k8s addons"

4 years agoMerge "Add static compile time check to plugins"
Bin Yang [Mon, 5 Aug 2019 07:20:02 +0000 (07:20 +0000)]
Merge "Add static compile time check to plugins"

4 years agoMerge changes I46d47e64,I14d8eb6b
Bin Yang [Mon, 5 Aug 2019 07:19:37 +0000 (07:19 +0000)]
Merge changes I46d47e64,I14d8eb6b

* changes:
  Add test case for loading vFW Helm chart
  Correct cni retrieval process from resource name

4 years agoMerge "Minor improvement to log statements"
Bin Yang [Mon, 5 Aug 2019 07:18:54 +0000 (07:18 +0000)]
Merge "Minor improvement to log statements"

4 years agoAdd top level make 30/92630/1
Kiran Kamineni [Fri, 2 Aug 2019 23:15:53 +0000 (16:15 -0700)]
Add top level make

Added a top level Makefile which calls
all the sub packages under the src tree.
This will be called in the ci-management golang template
for this project.

Issue-ID: MULTICLOUD-666
Change-Id: I0027fd62e3665d6eae6733227871ed42bab2ca54
Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
4 years agoUpdate plugin.sh with new helper functions 40/91540/3
Konrad Bańka [Tue, 16 Jul 2019 13:42:57 +0000 (15:42 +0200)]
Update plugin.sh with new helper functions

Plugin.sh has been refactored to use new wrapper functions as well
as utilize helm package command for creating resource bundle in
order to test proper handling of this scenario by plugin

Issue-ID: MULTICLOUD-686

Signed-off-by: Konrad Bańka <k.banka@samsung.com>
Change-Id: Ia35fac70153fdb34ba75bfff31f9b2566b986cf1

4 years agoCorrect go version installed by k8s addons 61/90761/9
Konrad Bańka [Tue, 2 Jul 2019 06:50:50 +0000 (08:50 +0200)]
Correct go version installed by k8s addons

Andrewrothstein.go galaxy role, that was responsible for
go installation was in too old tag to support demanded
(1.12.4) go version. It also blocked ovn-kubernetes addon
installation that's fixed now. Go version has been also
upgraded to 1.12.5

Issue-ID: MULTICLOUD-644

Signed-off-by: Konrad Bańka <k.banka@samsung.com>
Change-Id: I926bd061a361b2ae2efa2aecedf4fa6321f04cc8

4 years agoAdd test case for loading vFW Helm chart 90/91890/3
Ritu Sood [Thu, 1 Aug 2019 10:29:41 +0000 (12:29 +0200)]
Add test case for loading vFW Helm chart

This test checks vFW lifecycle using the k8splugin.

Issue-ID: MULTICLOUD-708

Change-Id: I46d47e64562d75d8b1f7552fc073b1e59efa443e
Signed-off-by: Ritu Sood <ritu.sood@intel.com>
Co-authored-by: Konrad Bańka <k.banka@samsung.com>
4 years agoCorrect cni retrieval process from resource name 66/92366/4
Konrad Bańka [Wed, 31 Jul 2019 14:35:52 +0000 (16:35 +0200)]
Correct cni retrieval process from resource name

Due to some minor issues, network resource name wasn't being
parsed properly, thus failing removing ovn networks when
deleting VNF instance.

Issue-ID: MULTICLOUD-708

Signed-off-by: Konrad Bańka <k.banka@samsung.com>
Change-Id: I14d8eb6b82d0ee74b266272fd8a842b45e6c2b40

4 years agoAdd static compile time check to plugins 01/92401/1
Kiran Kamineni [Wed, 31 Jul 2019 18:48:19 +0000 (11:48 -0700)]
Add static compile time check to plugins

Add a static compile time check to
plugins to make sure that any interface implementation
mismatch is caught at compile time rather than runtime.

Issue-ID: MULTICLOUD-666
Change-Id: I7f57774ad9384edb874cf64534f521014aea422f
Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
4 years agoMerge "Changing Pull Policy for vFw Helm chart"
Bin Yang [Thu, 25 Jul 2019 07:05:52 +0000 (07:05 +0000)]
Merge "Changing Pull Policy for vFw Helm chart"

4 years agoChanging Pull Policy for vFw Helm chart 02/91902/2
Ritu Sood [Tue, 23 Jul 2019 19:57:52 +0000 (12:57 -0700)]
Changing Pull Policy for vFw Helm chart

Pull policy is "Always" because of that
VM/container images are pulled everytime
for each chart. This slows down the
deployment to several minutes in the
lab environment. Changing pull policy to
"IfNotPresent".

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

4 years agoMerge "Provide ovn-central-address for local deployments"
Bin Yang [Wed, 24 Jul 2019 00:28:10 +0000 (00:28 +0000)]
Merge "Provide ovn-central-address for local deployments"

4 years agoProvide ovn-central-address for local deployments 42/91842/3
Konrad Bańka [Tue, 23 Jul 2019 06:32:54 +0000 (08:32 +0200)]
Provide ovn-central-address for local deployments

K8splugin served with docker-compose doesn't utilize
ovn-central-address configured in host environment.
Function responsible for generating config file has been
modified to provide this information if available.

Issue-ID: MULTICLOUD-708

Signed-off-by: Konrad Bańka <k.banka@samsung.com>
Change-Id: Ie3c27c68c02a0e206f6447e8c4330e18af942cd8

4 years agoMerge "Add a listallhandler to definitions api"
Bin Yang [Tue, 23 Jul 2019 07:31:04 +0000 (07:31 +0000)]
Merge "Add a listallhandler to definitions api"

4 years agoMerge "Add port to ovn central ip"
Bin Yang [Tue, 23 Jul 2019 07:30:48 +0000 (07:30 +0000)]
Merge "Add port to ovn central ip"

4 years agoMerge "Adapt network plugin to interface restrictions"
Bin Yang [Tue, 23 Jul 2019 07:30:35 +0000 (07:30 +0000)]
Merge "Adapt network plugin to interface restrictions"

4 years agoMerge "Add a list api for instances"
Bin Yang [Tue, 23 Jul 2019 07:30:16 +0000 (07:30 +0000)]
Merge "Add a list api for instances"

4 years agoMerge changes from topics "listprofiles", "tagprofile", "tag_defn"
Bin Yang [Tue, 23 Jul 2019 07:29:59 +0000 (07:29 +0000)]
Merge changes from topics "listprofiles", "tagprofile", "tag_defn"

* changes:
  Add list api for profiles
  Make profile db tags specific
  Make definition tags specific

4 years agoMerge "Improve provisioning central IP address for ovn tests"
Bin Yang [Tue, 23 Jul 2019 07:28:42 +0000 (07:28 +0000)]
Merge "Improve provisioning central IP address for ovn tests"

4 years agoMerge "Provide idempotent multus plugin configuration"
Bin Yang [Tue, 23 Jul 2019 07:28:22 +0000 (07:28 +0000)]
Merge "Provide idempotent multus plugin configuration"

4 years agoAdd port to ovn central ip 38/91838/1
Kiran Kamineni [Tue, 23 Jul 2019 00:28:48 +0000 (17:28 -0700)]
Add port to ovn central ip

Add port to the default OVN central ip
field.

Issue-ID: MULTICLOUD-666
Change-Id: Ib1644aafc00472769422dffd48a83ed7e53b2910
Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
4 years agoMinor improvement to log statements 37/91837/1
Kiran Kamineni [Tue, 23 Jul 2019 00:02:55 +0000 (17:02 -0700)]
Minor improvement to log statements

Removing some log statements that are cluttering the output.
Added a log statement to print errors during instantiation.

Issue-ID: MULTICLOUD-666
Change-Id: I76ad59c9cb36b5cb999573afec18e6f1adbed4ad
Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
4 years agoAdapt network plugin to interface restrictions 12/91812/1
Konrad Bańka [Mon, 22 Jul 2019 13:48:31 +0000 (15:48 +0200)]
Adapt network plugin to interface restrictions

Network plugin was not fully compliant with interface it should
implement due to type of one function argument. Relevant functions
have been adapted to utilize proper types.

Issue-ID: MULTICLOUD-708

Signed-off-by: Konrad Bańka <k.banka@samsung.com>
Change-Id: Ic619ad476dba5e6582759290e18edceaa98c332f

4 years agoAdd list api for profiles 08/91708/1
Kiran Kamineni [Thu, 18 Jul 2019 21:49:25 +0000 (14:49 -0700)]
Add list api for profiles

Add a list api for profiles for a specific
definition and version.
GET /v1/rb/definition/name/version/profile
will list all the profiles.

Issue-ID: MULTICLOUD-730
Change-Id: If1b8e6910c276a0f7139ab13340721c6ec8a49e8
Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
4 years agoAdd a listallhandler to definitions api 89/91689/2
Kiran Kamineni [Thu, 18 Jul 2019 00:14:07 +0000 (17:14 -0700)]
Add a listallhandler to definitions api

GET calls to the v1/rb/definition will
return all definitions and their versions

Issue-ID: MULTICLOUD-715
Change-Id: Ia0951ac83283830e475bf727e7d5ced7aab3add2
Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
4 years agoMake profile db tags specific 06/91706/1
Kiran Kamineni [Thu, 18 Jul 2019 23:05:33 +0000 (16:05 -0700)]
Make profile db tags specific

Tags used in profile such as metadata
are too generic. Instead we are using specific
ones with the type prefixed.

Issue-ID: MULTICLOUD-730
Change-Id: I2f189d35bc202f4a71e0a92ca5b7188ebfd1cef2
Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
4 years agoMake definition tags specific 05/91705/1
Kiran Kamineni [Thu, 18 Jul 2019 22:28:34 +0000 (15:28 -0700)]
Make definition tags specific

Tags used in db such as metadata
are too generic. Instead we are using specific
ones with the type prefixed.

Issue-ID: MULTICLOUD-730
Change-Id: Ice76cf743f0782a3d7e76747cde1f0e0b116b14e
Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
4 years agoAdd a list api for instances 02/91702/1
Kiran Kamineni [Thu, 18 Jul 2019 21:11:11 +0000 (14:11 -0700)]
Add a list api for instances

curl -X GET /v1/instance
returns all the instances created.
It returns abbreviated instances for improved readability.
For details on what resources were created
for each instance, use the ID with GET.

Issue-ID: MULTICLOUD-715
Change-Id: I05afe0fd2c254acbca4329289c81545f95c9fac5
Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
4 years agoMerge "Remove kubeconfigdir. Use a tempfile instead"
Bin Yang [Wed, 17 Jul 2019 01:54:06 +0000 (01:54 +0000)]
Merge "Remove kubeconfigdir. Use a tempfile instead"

4 years agoRemove kubeconfigdir. Use a tempfile instead 12/90412/3
Kiran Kamineni [Mon, 24 Jun 2019 21:54:29 +0000 (14:54 -0700)]
Remove kubeconfigdir. Use a tempfile instead

Kubeconfigdir does not need to be a configurable
parameter. We just create a local file and use that
to create the config after which it is not needed.

Issue-ID: MULTICLOUD-614
Change-Id: I2df561d50b620e24c5ae5266b7200210e0c11caf
Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
4 years agovFw Demo Helm chart issue 59/91559/1
Ritu Sood [Tue, 16 Jul 2019 18:02:01 +0000 (11:02 -0700)]
vFw Demo Helm chart issue

Fixing a typo in vFw Helm chart

Change-Id: I5e7657dba037e48539ac32a98f1731ec1ff942a8
Issue-ID: MULTICLOUD-708
Signed-off-by: Ritu Sood <ritu.sood@intel.com>
4 years agoImprove provisioning central IP address for ovn tests 63/90763/7
Konrad Bańka [Tue, 2 Jul 2019 07:07:49 +0000 (09:07 +0200)]
Improve provisioning central IP address for ovn tests

Function responsible for providing central ovn address has been
corrected to utilize already configured address instead of
checking it each time. Error reporting within the same function
has been also corrected and improved as well as iproute package
became used for address determining instead of net-tools' ifconfig

Issue-ID: MULTICLOUD-686

Signed-off-by: Konrad Bańka <k.banka@samsung.com>
Change-Id: I156297098b7919471df711f049f0d9439bd81420

4 years agoProvide connection info for plugin testcase 77/90877/4
Konrad Bańka [Thu, 4 Jul 2019 06:49:12 +0000 (08:49 +0200)]
Provide connection info for plugin testcase

Plugin.sh testcase was unable to instantiate VNF as it was
missing k8s backend configuration. This configuration is
now provided before instantiation and torn down on test end.

Issue-ID: MULTICLOUD-639

Signed-off-by: Konrad Bańka <k.banka@samsung.com>
Change-Id: I7ffaa3d4e2df84b38b50e11900406b55f94c6de8

4 years agoCorrect k8splugin endpoint configuration in KUD test 76/90876/3
Konrad Bańka [Thu, 4 Jul 2019 07:10:25 +0000 (09:10 +0200)]
Correct k8splugin endpoint configuration in KUD test

Plugin.sh was misconfigured to connect at wrong port
of k8splugin service.

Issue-ID: MULTICLOUD-686

Signed-off-by: Konrad Bańka <k.banka@samsung.com>
Change-Id: I53e7e4d6fdb727adc755318012ee262dbec811ef

4 years agoProvide idempotent multus plugin configuration 86/90286/4
Konrad Bańka [Fri, 21 Jun 2019 09:26:15 +0000 (11:26 +0200)]
Provide idempotent multus plugin configuration

Blockinfile task overrides marker section in order to provide
valid json content in file. Because of this, generated block is
added each time this playbook is run. This makes CNI config file
contain malformed content when launched more than once.

Issue-ID: MULTICLOUD-676

Signed-off-by: Konrad Bańka <k.banka@samsung.com>
Change-Id: If1c98414be4fb3a5b6c1c63fada0bd934448f040

4 years agoMerge "Move connectionhandler.go into api package"
Bin Yang [Tue, 16 Jul 2019 00:52:24 +0000 (00:52 +0000)]
Merge "Move connectionhandler.go into api package"

4 years agoMerge changes Id235f454,I0c6dd5e4
Bin Yang [Tue, 16 Jul 2019 00:51:44 +0000 (00:51 +0000)]
Merge changes Id235f454,I0c6dd5e4

* changes:
  Correct plugin_edgex testcase
  Provide wrapper functions for issuing k8splugin API calls

4 years agoMerge "Add getconnectivityrecordbyname function"
Bin Yang [Tue, 16 Jul 2019 00:49:49 +0000 (00:49 +0000)]
Merge "Add getconnectivityrecordbyname function"

4 years agoFix istio test scenario endpoint API validation 47/91447/1
Konrad Bańka [Mon, 15 Jul 2019 13:00:09 +0000 (15:00 +0200)]
Fix istio test scenario endpoint API validation

Current query issued at the end of testcase to
istio service API didn't validate the case, when
http server responded with 5XX http code. By
reusing common wrapper for cURL, this is now
handled properly.

Issue-ID: MULTICLOUD-686

Signed-off-by: Konrad Bańka <k.banka@samsung.com>
Change-Id: Ifb73494c9a6d98143edccaad095b2de5d456ef4f

4 years agoCorrect plugin_edgex testcase 48/91148/4
Konrad Bańka [Wed, 10 Jul 2019 10:19:16 +0000 (12:19 +0200)]
Correct plugin_edgex testcase

Plugin_edgex.sh script hasn't been updated to few changes
that happened in k8splugin API and CSAR definitions. This
commit rewrites previous test scenario to be up to date with
current plugin state.

Issue-ID: MULTICLOUD-686

Signed-off-by: Konrad Bańka <k.banka@samsung.com>
Change-Id: Id235f4549e10f57451bf2b6195df8c95230e1c7e

4 years agoProvide wrapper functions for issuing k8splugin API calls 46/91146/2
Konrad Bańka [Wed, 10 Jul 2019 10:11:32 +0000 (12:11 +0200)]
Provide wrapper functions for issuing k8splugin API calls

In plugin.sh and plugin_edgex.sh test scenarios, there are
executed many curl calls to API endpoint. As curl's default
behavior for handling 4xx and 5xx status code is not perfect,
wrapper functions have been created to easily ensure correctness
of issued API call.

Issue-ID: MULTICLOUD-686

Signed-off-by: Konrad Bańka <k.banka@samsung.com>
Change-Id: I0c6dd5e4f896972245a6fa6c8c2a10d8df8ec406

4 years agoCreate dir before extracting archive 04/91304/2
Kiran Kamineni [Fri, 12 Jul 2019 00:21:27 +0000 (17:21 -0700)]
Create dir before extracting archive

Some archives don't include a directory entry.
Eg: tgz archives generated by helm package.
This bug fix checks that a directory exists before
an extracted file is created there.

Issue-ID: MULTICLOUD-705
Change-Id: If6720948d470b83786901574f5d8d3227835a047
Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
4 years agoReduce process count in test 05/91305/1
Kiran Kamineni [Fri, 12 Jul 2019 00:57:09 +0000 (17:57 -0700)]
Reduce process count in test

CI seems to be failing with out of memory issues
This reduces the multiprocess to 2 for the go test
command.

Issue-ID: MULTICLOUD-666
Change-Id: I3f70ecad51cc16f8972346882d5d98fc803427ef
Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
4 years agoFix helm installation conflict 60/90760/7
Konrad Bańka [Tue, 2 Jul 2019 06:43:11 +0000 (08:43 +0200)]
Fix helm installation conflict

Kubespray installs helm client on kubernetes master. The same client
has to be installed on host running installation playbooks. In single
node scenario, local host already has helm client installed by
kubespray, thus leading to conflict due to way of provisioning.
This helm installation has been moved to global configure playbook, as
well as corrected, not to fail on single host deployments.

Issue-ID: MULTICLOUD-690

Signed-off-by: Konrad Bańka <k.banka@samsung.com>
Change-Id: I1ef779ed0f2fde82758ce9e229c3f5bb015b2aeb

4 years agoMove connectionhandler.go into api package 78/90478/2
Kiran Kamineni [Tue, 25 Jun 2019 18:42:31 +0000 (11:42 -0700)]
Move connectionhandler.go into api package

Move connectionhandler.go into api package
This brings it inline with the other API handlers

Issue-ID: MULTICLOUD-666
Change-Id: Ia3b832159f537c6d8d8ecc93b56bc9b085649f7e
Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
4 years agoAdd getconnectivityrecordbyname function 10/90410/3
Kiran Kamineni [Mon, 24 Jun 2019 21:15:45 +0000 (14:15 -0700)]
Add getconnectivityrecordbyname function

Plugins need this connectivity information
Adding code to retrieve it

Issue-ID: MULTICLOUD-688
Change-Id: I5fa1b69cdad754a432316edc4188c19b7fe10f84
Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
4 years agoMerge "Change the import paths for go get access"
Bin Yang [Wed, 26 Jun 2019 04:27:11 +0000 (04:27 +0000)]
Merge "Change the import paths for go get access"

4 years agoChange the import paths for go get access 13/90413/2
Kiran Kamineni [Tue, 25 Jun 2019 00:01:24 +0000 (17:01 -0700)]
Change the import paths for go get access

This allows other projects to do a go get and use this repo.
go get github.com/multicloud-k8s/src/k8splugin
will do the job.
import github.com/multicloud-k8s/src/k8splugin
will import the root package

Issue-ID: MULTICLOUD-666
Change-Id: I2f41c88c5a7fb3305b78cce8a83a0e102baa444c
Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
4 years agoCorrect installer.sh to enable testing during deployment 70/90370/2
Konrad Bańka [Mon, 24 Jun 2019 09:37:55 +0000 (11:37 +0200)]
Correct installer.sh to enable testing during deployment

Issue-ID: MULTICLOUD-686

Signed-off-by: Konrad Bańka <k.banka@samsung.com>
Change-Id: I02724ca72a217cbb5be8cfee5edf136f4bf8ce2c

4 years agoMake aio.sh preserve host's ssh keys if possible 34/89634/4
Konrad Bańka [Mon, 10 Jun 2019 12:03:45 +0000 (14:03 +0200)]
Make aio.sh preserve host's ssh keys if possible

aio.sh script creates rsa key that is also added to host's authorized_keys.
Currently, existing id_rsa keys are removed in order to generate fresh key each time.

This change makes setup script reuse existing key when possible.

Issue-ID: MULTICLOUD-676

Change-Id: I3b6b837f64dabd3cb6a14aa5ea65e67c6b8db6a8
Signed-off-by: Konrad Bańka <k.banka@samsung.com>
4 years agoUnify resolving current directory in KUD scripts 17/90217/1
Samuli Silvius [Thu, 20 Jun 2019 06:29:05 +0000 (09:29 +0300)]
Unify resolving current directory in KUD scripts

Issue-ID: MULTICLOUD-685

Change-Id: I62199f64da360627a13c467139a39430ae389167
Signed-off-by: Samuli Silvius <s.silvius@partner.samsung.com>
4 years agoAdding ci-kud-installer wrapper 52/88352/3
Michal Ptacek [Thu, 23 May 2019 13:05:38 +0000 (15:05 +0200)]
Adding ci-kud-installer wrapper

this wrapper is new entry point for CI job triggering aio.sh
execution.

Change-Id: I650675c9cfff396010bf3a1d36e9840dedf9d403
Issue-ID: MULTICLOUD-635
Signed-off-by: Michal Ptacek <m.ptacek@partner.samsung.com>
Signed-off-by: Samuli Silvius <s.silvius@partner.samsung.com>
4 years agoMerge "Multus error when the namesapace is not default"
Bin Yang [Wed, 19 Jun 2019 22:47:15 +0000 (22:47 +0000)]
Merge "Multus error when the namesapace is not default"

4 years agoMerge "Add ovn-networkobj for Multus"
Bin Yang [Wed, 19 Jun 2019 22:46:56 +0000 (22:46 +0000)]
Merge "Add ovn-networkobj for Multus"

4 years agoMerge "Plugin code refactoring"
Bin Yang [Wed, 19 Jun 2019 22:46:37 +0000 (22:46 +0000)]
Merge "Plugin code refactoring"

4 years agoMerge "Make ovn-central network interface configurable"
Bin Yang [Wed, 19 Jun 2019 22:46:10 +0000 (22:46 +0000)]
Merge "Make ovn-central network interface configurable"

4 years agoMerge "Enable mitogen to speed up Ansible execution"
Bin Yang [Wed, 19 Jun 2019 22:45:37 +0000 (22:45 +0000)]
Merge "Enable mitogen to speed up Ansible execution"

4 years agoMultus error when the namesapace is not default 25/90125/1
Ritu Sood [Wed, 19 Jun 2019 05:01:07 +0000 (05:01 +0000)]
Multus error when the namesapace is not default

Multus has a limitation that namespace
in which network is defined has to be
explicitly provided. As we are defining
network in "default" namespace, that needs
to be provided in all deployment files

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

4 years agoAdd ovn-networkobj for Multus 19/90119/1
Ritu Sood [Wed, 19 Jun 2019 04:46:17 +0000 (04:46 +0000)]
Add ovn-networkobj for Multus

Add ovn custom resource for Multus as part
of installation

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

4 years agoMake ovn-central network interface configurable 23/87523/11
Samuli Silvius [Mon, 13 May 2019 07:05:46 +0000 (10:05 +0300)]
Make ovn-central network interface configurable

installer.sh script is configuring ovn-central address <ip>:<port>
to environment variable.
Ip address is detected from the ovn-central host through ansible
by grepping ifconfig output, but in this step detected network
interface is hard-coded in the code to be "eth1".

This commit makes network interface configurable in aio/vagrant
deployment.

Issue-ID: MULTICLOUD-621

Change-Id: Icbe22ffdcb45c5f16067ea609eec76fb70c0ea78
Signed-off-by: Samuli Silvius <s.silvius@partner.samsung.com>
4 years agoMerge changes I798b9dd9,I36b65dd2
Bin Yang [Mon, 10 Jun 2019 00:50:02 +0000 (00:50 +0000)]
Merge changes I798b9dd9,I36b65dd2

* changes:
  Remove the requirement to run aio.sh as root
  Documentation update for aio.sh CI change

4 years agoMerge "Make aio.sh suitable for CI"
Bin Yang [Mon, 10 Jun 2019 00:49:54 +0000 (00:49 +0000)]
Merge "Make aio.sh suitable for CI"

4 years agoMerge "Starting of k8splugin with docker-compose is broken"
Bin Yang [Mon, 10 Jun 2019 00:49:09 +0000 (00:49 +0000)]
Merge "Starting of k8splugin with docker-compose is broken"

4 years agoEnable mitogen to speed up Ansible execution 37/89537/3
Victor Morales [Thu, 6 Jun 2019 19:00:03 +0000 (12:00 -0700)]
Enable mitogen to speed up Ansible execution

Signed-off-by: Victor Morales <victor.morales@intel.com>
Signed-off-by: Samuli Silvius <s.silvius@partner.samsung.com>
Issue-ID: MULTICLOUD-301
Change-Id: I427145e26eabc92ab19b0a143b759113dbfbeeea

4 years agoPlugin code refactoring 51/89551/2
Kiran Kamineni [Thu, 30 May 2019 21:43:06 +0000 (14:43 -0700)]
Plugin code refactoring

The plugin code has been refactored to
implement a common interface.
This will allow us to do plugin validation
at loadtime of the plugin instead of at runtime.
This also makes the code calling the plugins cleaner
and easier to read.

Issue-ID: MULTICLOUD-557
Change-Id: Ice2bcc9b850d7c0e1707dcc42132c63dd77472a7
Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
4 years agoRemove the requirement to run aio.sh as root 89/89389/2
Samuli Silvius [Wed, 5 Jun 2019 15:32:16 +0000 (18:32 +0300)]
Remove the requirement to run aio.sh as root

However user needs to be in sudoers without password
needed to able to run needed steps with sudo.

Issue-ID: MULTICLOUD-672

Change-Id: I798b9dd9dad4175c2b43700bfe801d34b578fe97
Signed-off-by: Samuli Silvius <s.silvius@partner.samsung.com>
4 years agoDocumentation update for aio.sh CI change 31/88931/6
Samuli Silvius [Thu, 30 May 2019 16:16:27 +0000 (19:16 +0300)]
Documentation update for aio.sh CI change

Update documentation accordingly.

Issue-ID: MULTICLOUD-629

Change-Id: I36b65dd270a25d63884d161163cfa8e7a813d241
Signed-off-by: Samuli Silvius <s.silvius@partner.samsung.com>
4 years agoMake aio.sh suitable for CI 30/88930/2
Samuli Silvius [Thu, 30 May 2019 16:02:11 +0000 (19:02 +0300)]
Make aio.sh suitable for CI

aio.sh script currently clones multicloud/k8s repo itself.
That is unnessary and makes it impossible to hook k8s repository
to CI system where commit changeset is used to define repository
files to be tested.

This commit will remove cloning of multicloud/k8s repository
and also move aio.sh to baremetal folder which seems to be
the intended place for it.

Issue-ID: MULTICLOUD-629

Change-Id: Ifc54bbc1ec06bc4c3fbbecca7e676d5ffa392d78
Signed-off-by: Samuli Silvius <s.silvius@partner.samsung.com>
4 years agoFixing kubectl conflict on KUD addons 16/89016/4
Samuli Silvius [Fri, 31 May 2019 11:19:07 +0000 (14:19 +0300)]
Fixing kubectl conflict on KUD addons

Removing kubectl (andrewrothstein.kubectl) dependency
that conflicts with kubectl installed by Kupespray.

Copy kubectl installed by Kubespray also to host
running Ansible.
That needs kubectl_localhost: true in Kubespray configuration
to make it copy binary to localhost.

Issue-ID: MULTICLOUD-667

Change-Id: I8c5f56488a9f559c4358cea5ad56fa23b26ec6aa
Signed-off-by: Samuli Silvius <s.silvius@partner.samsung.com>
4 years agoRemove andrewrothstein.kubectl role 34/84734/7
Ritu Sood [Tue, 9 Apr 2019 18:29:59 +0000 (11:29 -0700)]
Remove andrewrothstein.kubectl role

Removing andrewrothstein.kubectl role
which was causing issues in aio
baremetal scenario

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

5 years agoStarting of k8splugin with docker-compose is broken 42/88142/5 dublin
Samuli Silvius [Tue, 21 May 2019 07:32:22 +0000 (10:32 +0300)]
Starting of k8splugin with docker-compose is broken

docker-compose.yml and start.sh script cannot be used
in installer.sh to start k8splugin and mongo.

This commit modifies start.sh script to be usable in
installer.sh to start plugin before tests.

Also fixed kud_tests variable in installer.sh.

Issue-ID: MULTICLOUD-640

Change-Id: I60cc850d6f5b58df574f79ad3c65b801c59b3a14
Signed-off-by: Samuli Silvius <s.silvius@partner.samsung.com>
5 years agoFix IP address for sink pod 18/88718/1
Ritu Sood [Tue, 28 May 2019 22:03:12 +0000 (15:03 -0700)]
Fix IP address for sink pod

IP address was incorrect for
sink

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

5 years agoMerge "Remove env variable" 0.4.0
Bin Yang [Mon, 27 May 2019 02:58:55 +0000 (02:58 +0000)]
Merge "Remove env variable"

5 years agoMerge "Update vFW Helm chart"
Bin Yang [Mon, 27 May 2019 02:58:38 +0000 (02:58 +0000)]
Merge "Update vFW Helm chart"

5 years agoMerge "Install jq as an dependency for yq"
Bin Yang [Mon, 27 May 2019 02:57:54 +0000 (02:57 +0000)]
Merge "Install jq as an dependency for yq"

5 years agoRemove env variable 07/88507/1
Kiran Kamineni [Sat, 25 May 2019 04:41:53 +0000 (21:41 -0700)]
Remove env variable

Remove ENV variable. Somehow I missed
removing this variable when we moved to configuration
files.

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