multicloud/k8s.git
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 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 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 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>
5 years agoUpdate vFW Helm chart 99/88499/1
Ritu Sood [Fri, 24 May 2019 21:03:41 +0000 (14:03 -0700)]
Update vFW Helm chart

Fixed sink containers
to use the right containers and also
fixed IP addresses. Some cleanup

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

5 years agoMerge changes from topics "broker_response", "develop"
Bin Yang [Fri, 24 May 2019 04:37:20 +0000 (04:37 +0000)]
Merge changes from topics "broker_response", "develop"

* changes:
  Update broker responses to match spec and SO
  Minor change to instance response

5 years agoUpdate broker responses to match spec and SO 26/88426/3
Kiran Kamineni [Thu, 23 May 2019 20:50:50 +0000 (13:50 -0700)]
Update broker responses to match spec and SO

The broker responses need to match the spec and
what SO expects as responses.
CREATE_COMPLETE instead of CREATED in both POST and GET
DELETE now returns a response body
GET by name is now supported
Name is an alias for vf_module_id which is expected to be provided
as an attribute in sdnc_directives in the original POST request

Issue-ID: MULTICLOUD-645
Change-Id: Ifeca755a07298d0a858cbe9e80f9ce654d6d21b8
Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
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 agoMinor change to instance response 24/88324/1
Kiran Kamineni [Thu, 23 May 2019 06:48:26 +0000 (23:48 -0700)]
Minor change to instance response

Minor change to instance response. Now it includes
the full request parameters in the response.

Issue-ID: MULTICLOUD-649
Change-Id: Ia4a7e479f842dd580bcfb13aa91dc0b0a456cf25
Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.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>