multicloud/k8s.git
5 years agoAdd support for parsing profile yaml files 40/76240/13
Kiran Kamineni [Wed, 23 Jan 2019 20:54:50 +0000 (12:54 -0800)]
Add support for parsing profile yaml files

Add code to parse profile configuration yaml
The parsing function is global and returns a client
which can then be used to get or apply specific parts
of the configuration on top of an extracted helm chart.

Issue-ID: ONAPARC-348
Change-Id: I4504d0b158fdfef476b8c2a461d33306926545d7
Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
5 years agoAdd support for downloading content 48/76148/12
Kiran Kamineni [Fri, 18 Jan 2019 20:09:56 +0000 (12:09 -0800)]
Add support for downloading content

Add support for downloading content for creating
the merged helm charts. This api will be used mainly
by the profile api to create a converged chart which
will then be created by the instantiation code
P2: Add unit tests for archive.go
    Add download method for profile.go
    Update comments for download method
P3: Add unit test for empty files
P4: Add unit tests for Download functions
P5: Rebase against new folder structure

Issue-ID: MULTICLOUD-291
Change-Id: I9779eaf95366f527f0360eaddea663722c13b196
Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
5 years agoMerge "Remove duplicate plugins make action"
Victor Morales [Mon, 28 Jan 2019 20:16:55 +0000 (20:16 +0000)]
Merge "Remove duplicate plugins make action"

5 years agoMove api.go functions 19/77419/1
Victor Morales [Sat, 26 Jan 2019 00:57:58 +0000 (16:57 -0800)]
Move api.go functions

CheckEnvVariables, CheckDatabaseConnection, LoadPlugins and
CheckInitialSettings functions are utility functions which are not
related with the API. These functions need to be moved to utils.go
file.

Change-Id: Ie6dfbafe8909962fba31534916a7e0f07ded116b
Signed-off-by: Victor Morales <victor.morales@intel.com>
Issue-ID: MULTICLOUD-301

5 years agoUse a standard Go project layout 26/76326/3
Victor Morales [Fri, 25 Jan 2019 01:46:43 +0000 (17:46 -0800)]
Use a standard Go project layout

This project wasn't following some Standard Go Project Layout
guidelines(https://github.com/golang-standards/project-layout). This
change pretends to organize the source code and following those
guidelines.

Change-Id: I61085ac20f28069cede013f83034bed06892d87c
Signed-off-by: Victor Morales <victor.morales@intel.com>
Issue-ID: MULTICLOUD-301

5 years agoMerge "Add another parameter to the definition"
Victor Morales [Fri, 25 Jan 2019 20:08:08 +0000 (20:08 +0000)]
Merge "Add another parameter to the definition"

5 years agoAdd another parameter to the definition 30/76330/4
Kiran Kamineni [Fri, 25 Jan 2019 02:24:14 +0000 (18:24 -0800)]
Add another parameter to the definition

Add a ChartName parameter to definition
This is need to explicitly specify the chart name
to be used within the tar file.

Issue-ID: MULTICLOUD-291
Change-Id: I3d6e20607b74e54801622a6c27d5674777548ee1
Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
5 years agoRemove duplicate plugins make action 79/76379/1
Victor Morales [Fri, 25 Jan 2019 16:46:51 +0000 (08:46 -0800)]
Remove duplicate plugins make action

The action which compiles all the plugins is duplicated in the
Makefile. This change remove that duplication to define a
consistent build process.

Change-Id: I0efecdcb70052b4c0d66102c56e0c715481cb34a
Signed-off-by: Victor Morales <victor.morales@intel.com>
Issue-ID: MULTICLOUD-301

5 years agoVersion update. 66/76366/1
Akhila Kishore [Fri, 25 Jan 2019 12:15:52 +0000 (04:15 -0800)]
Version update.

Updating the version of galaxy role kubectl to latest.

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

5 years agoAdd support for tags in the mockdb 32/76232/1
Kiran Kamineni [Wed, 23 Jan 2019 20:09:42 +0000 (12:09 -0800)]
Add support for tags in the mockdb

Add support for tags in mockdb.
Needed for supporting unit tests where a method
does multiple db calls using same uuid but different
tags. Eg: Download methods

Issue-ID: MULTICLOUD-455
Change-Id: I4eff8eeb00eac630205e4e186981a53a573b61fa
Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
5 years agoMerge "Fix sorting with right index value"
Victor Morales [Tue, 22 Jan 2019 18:22:34 +0000 (18:22 +0000)]
Merge "Fix sorting with right index value"

5 years agoMerge "Delete content when a definition is deleted"
Victor Morales [Tue, 22 Jan 2019 18:21:44 +0000 (18:21 +0000)]
Merge "Delete content when a definition is deleted"

5 years agoMerge "Enable statd service"
Victor Morales [Tue, 22 Jan 2019 18:21:24 +0000 (18:21 +0000)]
Merge "Enable statd service"

5 years agoFix sorting with right index value 24/76024/1
Kiran Kamineni [Sat, 19 Jan 2019 00:54:25 +0000 (16:54 -0800)]
Fix sorting with right index value

Fix the less function used in sort.Slice
with the right index.
I am using the same index which obviously will not work.

Issue-ID: MULTICLOUD-439
Change-Id: Ibb78c03d67cf59e3941acc786796d0cc69b4f0aa
Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
5 years agoDelete content when a definition is deleted 68/75968/2
Kiran Kamineni [Fri, 18 Jan 2019 00:23:58 +0000 (16:23 -0800)]
Delete content when a definition is deleted

When a definition is deleted, delete the content too.
Not deleting the content would leave blobs of data that is not
connected to any metadata in the mongo database.

Issue-ID: MULTICLOUD-393
Change-Id: Ifae55bab0affc22b06b1069a27cd90af6f7d5d98
Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
5 years agoAccount for strings when reading from db 13/76013/1
Kiran Kamineni [Fri, 18 Jan 2019 20:52:47 +0000 (12:52 -0800)]
Account for strings when reading from db

Strings are not returned unmodified by the
mongo driver and seem to have a size value prepended to them.
Using the built in string reader resolves this issue.

Issue-ID: MULTICLOUD-441
Change-Id: I5c5e35b0749a61b741c9b63cfad55bf2720d91bb
Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
5 years agoMerge "Add resource bundle profile api"
Victor Morales [Fri, 18 Jan 2019 00:10:54 +0000 (00:10 +0000)]
Merge "Add resource bundle profile api"

5 years agoAdd resource bundle profile api 99/75899/4
Kiran Kamineni [Wed, 28 Nov 2018 20:21:09 +0000 (12:21 -0800)]
Add resource bundle profile api

Add CRUD api for uploading profiles for specific definition
resource bundles.
- Adding unit tests

Issue-ID: ONAPARC-348
Change-Id: Ic43724b4e2c035e7989c827612f1b2800fc49a69
Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
5 years agoMinor refactoring of definition unit tests 55/75955/3
Kiran Kamineni [Thu, 17 Jan 2019 19:49:39 +0000 (11:49 -0800)]
Minor refactoring of definition unit tests

The definition unit tests needed some small changes to
ensure consistency between the source and the tests.
P3: Sort both the slices before running DeepEqual

Issue-ID: MULTICLOUD-440
Change-Id: If797322e44321a580cb1441bd5c60b812799f844
Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
5 years agoFix order of db create call 06/75906/1
Kiran Kamineni [Wed, 16 Jan 2019 22:13:21 +0000 (14:13 -0800)]
Fix order of db create call

definition upload code call db create in wrong order
This patch fixes that.

Issue-ID: MULTICLOUD-438
Change-Id: I7c60308c89b35583bb739cf98e8106f1c738a143
Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
5 years agoMerge "Check if no document is returned before error"
Victor Morales [Wed, 16 Jan 2019 21:37:57 +0000 (21:37 +0000)]
Merge "Check if no document is returned before error"

5 years agoBump mongodriver to 0.2.0 01/75901/1
Kiran Kamineni [Wed, 16 Jan 2019 20:28:55 +0000 (12:28 -0800)]
Bump mongodriver to 0.2.0

Bumping mongodriver version to 0.2.0
This is a driver that has frequent updates
and we need to keep on top of those changes

Issue-ID: MULTICLOUD-426
Change-Id: Ibfc7bdbfd8c3443886d14560bc22a10483ada76a
Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
5 years agoCheck if no document is returned before error 44/75844/2
Kiran Kamineni [Wed, 16 Jan 2019 00:35:36 +0000 (16:35 -0800)]
Check if no document is returned before error

Check if no document is returned in SingleResult
before throwing any error.

Issue-ID: MULTICLOUD-435
Change-Id: I9d92ff325701c04af278ba7c9e2bf5a55fd4d9bd
Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
5 years agoEnable statd service 00/75900/1
Victor Morales [Wed, 16 Jan 2019 12:39:28 +0000 (04:39 -0800)]
Enable statd service

NFS uses rpc-statd service to provide locks. These service needs to
be started separately. This fix enables that service to prevents
'no locks available' message errors.

Change-Id: I37263226072db2b064e02811ed397bb3040254b7
Signed-off-by: Victor Morales <victor.morales@intel.com>
Issue-ID: MULTICLOUD-301

5 years agoMerge "Refactor docker-compose variables"
Victor Morales [Thu, 10 Jan 2019 16:12:47 +0000 (16:12 +0000)]
Merge "Refactor docker-compose variables"

5 years agoBump vagrant version to 2.2.3 14/75614/1
Victor Morales [Thu, 10 Jan 2019 02:31:21 +0000 (18:31 -0800)]
Bump vagrant version to 2.2.3

Change-Id: I177d1e8ee849bab57fcf313f849c4f4c0e5ff511
Signed-off-by: Victor Morales <victor.morales@intel.com>
Issue-ID: MULTICLOUD-301

5 years agoRefactor docker-compose variables 36/75336/1
Victor Morales [Sun, 6 Jan 2019 15:22:08 +0000 (07:22 -0800)]
Refactor docker-compose variables

The default environment variables required by docker-compose.yml
file was exported to .env file to have better control on them.

Change-Id: I52408cbf6e6918621a10158866d899d5f66a47eb
Signed-off-by: Victor Morales <victor.morales@intel.com>
Issue-ID: MULTICLOUD-301

5 years agoMerge "Bump kubernetes client to 1.12.3"
Victor Morales [Fri, 4 Jan 2019 04:11:57 +0000 (04:11 +0000)]
Merge "Bump kubernetes client to 1.12.3"

5 years agoBump kubernetes client to 1.12.3 74/74874/3
Kiran Kamineni [Wed, 19 Dec 2018 06:33:06 +0000 (22:33 -0800)]
Bump kubernetes client to 1.12.3

Bumping up the kubernetes client library used
to kubernetes 1.12.3
We will move it to v10.0.0 once our k8s deployment
moves to 1.13.0
Bumping kubectl version to 1.12.2 as andrewrothstein/ansible-kubectl
does not have 1.12.3 in its main.yml

Issue-ID: MULTICLOUD-301
Change-Id: Ifb2eaecb794bfdec19d631fdc9ece051d5ebfc60
Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
5 years agoMerge "Bump virtlet to 1.4.3 and criproxy to 0.14.0"
Victor Morales [Wed, 19 Dec 2018 21:51:56 +0000 (21:51 +0000)]
Merge "Bump virtlet to 1.4.3 and criproxy to 0.14.0"

5 years agoMerge "Add Network and OVN4NFV Plugins"
Victor Morales [Wed, 19 Dec 2018 00:15:17 +0000 (00:15 +0000)]
Merge "Add Network and OVN4NFV Plugins"

5 years agoMerge "Migrating from consul to mongodb for backend"
Victor Morales [Sat, 15 Dec 2018 00:34:27 +0000 (00:34 +0000)]
Merge "Migrating from consul to mongodb for backend"

5 years agoMigrating from consul to mongodb for backend 73/74473/15
Kiran Kamineni [Mon, 10 Dec 2018 21:34:16 +0000 (13:34 -0800)]
Migrating from consul to mongodb for backend

Migrating to mongodb from consul.
The main reason being the value size limitation of 512kb in consul.
See https://jira.onap.org/browse/MULTICLOUD-426 for details.
This requires a little bit of hierarchy management
and data management.
We are no longer converting structs to json encoded
strings. The underlying db supports structs without any modifications.
Also, since Mongo has the concept of collections, each submodule can
use its own collection for storage as needed.
Definition uses a collection called rbdef right now.
P10: Enabling unit tests for mongo.go. This requires the usage
     of aliased functions.
P11: Expanded unit tests for all functions in mongo.go
P12: Refactored parameter validation.
     Removed TestHealthCheck as we are not mocking any of the
       db commands right now
     Checking return value of read with an expected value
P13: Adding back consul support.
     Fixing functional test
     Full consul implementation check and modifications is
     being tracked by MULTICLOUD-427
P15: Fix ReadAll unit test and corresponding code
     ReadAll now returns error when no objects are found

Issue-ID: MULTICLOUD-426
Change-Id: I42d239b324025fc4ef4e561790aceeff794001ef
Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
5 years agoFix issue with pip install 43/74643/1
Ritu Sood [Fri, 14 Dec 2018 07:57:07 +0000 (23:57 -0800)]
Fix issue with pip install

Pip install not preserving environment

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

5 years agoBump virtlet to 1.4.3 and criproxy to 0.14.0 23/74623/1
Victor Morales [Thu, 13 Dec 2018 09:18:03 +0000 (01:18 -0800)]
Bump virtlet to 1.4.3 and criproxy to 0.14.0

Change-Id: I6507c294b8ac4be7ec3561560229282c7f4f0257
Signed-off-by: Victor Morales <victor.morales@intel.com>
Issue-ID: MULTICLOUD-301

5 years agoIntegrate OVN4NFV plugin 51/73751/7
Victor Morales [Tue, 27 Nov 2018 13:13:11 +0000 (05:13 -0800)]
Integrate OVN4NFV plugin

This change includes the files to install, configure and test the
OVN4NFV plugin.

Change-Id: I0c431e475bd391e13680c734cff555e4dfc055ae
Signed-off-by: Victor Morales <victor.morales@intel.com>
Issue-ID: MULTICLOUD-304

5 years agoMerge "Enable downloading binaries and containers"
Victor Morales [Fri, 7 Dec 2018 18:29:04 +0000 (18:29 +0000)]
Merge "Enable downloading binaries and containers"

5 years agoMerge "Bump vagrant version to 2.2.2"
Victor Morales [Fri, 7 Dec 2018 18:28:45 +0000 (18:28 +0000)]
Merge "Bump vagrant version to 2.2.2"

5 years agoEnable downloading binaries and containers 97/74397/1
Victor Morales [Thu, 6 Dec 2018 14:17:34 +0000 (06:17 -0800)]
Enable downloading binaries and containers

The *download_run_once* kubespray config option allows to download
container images only once then push to cluster nodes and the
*download_localhost* option makes the installer node a delegate for
pushing images while running the deployment with ansible.

These two options pretends to reduce the amount of traffic during
the deployment time of the Kubernetes cluster.

Change-Id: I8239cebbf5c322ed52ae0a0bc8774e5e33aada3c
Signed-off-by: Victor Morales <victor.morales@intel.com>
Issue-ID: MULTICLOUD-425

5 years agoAdd Network and OVN4NFV Plugins 77/72177/5
Ritu Sood [Sat, 10 Nov 2018 03:54:15 +0000 (03:54 +0000)]
Add Network and OVN4NFV Plugins

This patch includes support for Network Objects through a new plugin.
It also add the first sub-module plugin for OVN4NFVK8s support.

Change-Id: Ia23c42d50f75a5206e1b6a04052c34e940518428
Signed-off-by: Ritu Sood <ritu.sood@intel.com>
Signed-off-by: Victor Morales <victor.morales@intel.com>
Issue-ID: MULTICLOUD-303

5 years agoBump kubernetes version to 1.12.3 74/74274/2
Victor Morales [Wed, 5 Dec 2018 08:30:04 +0000 (00:30 -0800)]
Bump kubernetes version to 1.12.3

This version address the CVE-2018-1002105 security issue.

https://discuss.kubernetes.io/t/kubernetes-security-announcement-v1-10-11-v1-11-5-v1-12-3-released-to-address-cve-2018-1002105/3700

Change-Id: I2d13c2f5a42db9492652e4e54b946099c9b83dca
Signed-off-by: Victor Morales <victor.morales@intel.com>
Issue-ID: MULTICLOUD-301

5 years agoBump kubespray version to 2.8.0 84/74284/1
Victor Morales [Wed, 5 Dec 2018 09:28:06 +0000 (01:28 -0800)]
Bump kubespray version to 2.8.0

Change-Id: Ie7287f0bd0940fae67af2b1374c7be2fef37844e
Signed-off-by: Victor Morales <victor.morales@intel.com>
Issue-ID: MULTICLOUD-301

5 years agoBump vagrant version to 2.2.2 73/74273/1
Victor Morales [Wed, 5 Dec 2018 08:27:20 +0000 (00:27 -0800)]
Bump vagrant version to 2.2.2

Change-Id: Ia94ce1ea3efa19952f8b9ef69fba0684b9c6b2bb
Signed-off-by: Victor Morales <victor.morales@intel.com>
Issue-ID: MULTICLOUD-301

5 years agoUse temporal workaround 28/71428/2
Victor Morales [Mon, 29 Oct 2018 14:46:18 +0000 (07:46 -0700)]
Use temporal workaround

Multus CNI require a change to allow Virtlet to use multiple nics.
This change has been submitted and it's waiting for approvals, this
is a workaround in the meantime.

Change-Id: Ia3c9769bcb33d08e5545e133e09b95f6742d099b
Signed-off-by: Victor Morales <victor.morales@intel.com>
Issue-ID: MULTICLOUD-301

5 years agoRefactor integration tests 50/73750/1
Victor Morales [Tue, 27 Nov 2018 12:31:15 +0000 (04:31 -0800)]
Refactor integration tests

The integration tests were sharing names and IP ranges in the
creation of CSAR files. Those values can be centralized to
have better control over them.

Change-Id: I85642dbb57af1cf8908880614dffb36855ca3899
Signed-off-by: Victor Morales <victor.morales@intel.com>
Issue-ID: MULTICLOUD-301

5 years agoMerge "Bump vagrant version to 2.2.1"
Victor Morales [Mon, 26 Nov 2018 16:15:23 +0000 (16:15 +0000)]
Merge "Bump vagrant version to 2.2.1"

5 years agoBump vagrant version to 2.2.1 71/73271/2
Victor Morales [Wed, 21 Nov 2018 09:48:06 +0000 (01:48 -0800)]
Bump vagrant version to 2.2.1

Change-Id: Ifddbb8b137acc40f7d0c719ff1b861e1ea5a6320
Signed-off-by: Victor Morales <victor.morales@intel.com>
Issue-ID: MULTICLOUD-387

5 years agoCentralizes version of components 18/73318/1
Victor Morales [Wed, 21 Nov 2018 16:23:08 +0000 (08:23 -0800)]
Centralizes version of components

The galaxy roles used by KRD requires to centralize their version used
in the playbook/krd-vars.yml file, this file facilitates the version
control and helps as single point of truth.

Change-Id: If4544f529ff00689dc6cd6bca7e8adc0c876aa18
Signed-off-by: Victor Morales <victor.morales@intel.com>
Issue-ID: MULTICLOUD-301

5 years agoMerge "Add upload backend implementation"
Victor Morales [Wed, 21 Nov 2018 23:18:39 +0000 (23:18 +0000)]
Merge "Add upload backend implementation"

5 years agoAdd upload backend implementation 05/73205/2
Kiran Kamineni [Tue, 20 Nov 2018 22:32:50 +0000 (14:32 -0800)]
Add upload backend implementation

Upload is a seperate API where it takes
a binary stream and stores it. The api supports
tar.gz file format only.
P2: Check if ID is valid before trying upload
    Add test with an invalid ID

Issue-ID: MULTICLOUD-393
Change-Id: Id636a95823a046e1795d3be72d0214e953a8c5fc
Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
5 years agoMerge "Document All-in-One Bare-Metal provisioning"
Bin Hu [Wed, 21 Nov 2018 16:01:03 +0000 (16:01 +0000)]
Merge "Document All-in-One Bare-Metal provisioning"

5 years agoDocument All-in-One Bare-Metal provisioning 49/72949/4
Victor Morales [Fri, 16 Nov 2018 16:29:07 +0000 (08:29 -0800)]
Document All-in-One Bare-Metal provisioning

This document describe the proces to do an All-in-One deployment in
a Bare-Metal deployment, listing the Hardware and Software minimal
requirements, it also uses the aio.sh bash script for reducing the
number of manual steps.

Vagrantfile and installer.sh has been modified to disable functional
tests by default and includes the passwordless sudo verification.

Change-Id: Iec7b0bb37d2a46342e6b7e60bed37dbdf2019a10
Signed-off-by: Victor Morales <victor.morales@intel.com>
Issue-ID: MULTICLOUD-408

5 years agoRevert kube_proxy_mode mode to iptables 99/73199/1
Victor Morales [Tue, 20 Nov 2018 15:38:59 +0000 (07:38 -0800)]
Revert kube_proxy_mode mode to iptables

Ipvs proxy mode affects the functionality of Virtlet. Therefore
it's necessary to revert this change to its default option which
is iptables.

Change-Id: Id31bbd0dbbf6eaa4b29c71930c3f9e8a9d057285
Signed-off-by: Victor Morales <victor.morales@intel.com>
Issue-ID: MULTICLOUD-301

5 years agoReconcile names in code and Jira items 49/72849/5
Kiran Kamineni [Fri, 16 Nov 2018 01:09:54 +0000 (17:09 -0800)]
Reconcile names in code and Jira items

k8splugin manages deployment of resource bundles
and these are not restricted to vnfs.
This names' change is to reflect that functionality.
P2: using rb instead of resource bundle

Issue-ID: MULTICLOUD-410
Change-Id: I09e0b92a8fc13562e1c6bb17dc8bc13de97264d7
Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
5 years agoChange deployment approach 91/71091/2
Victor Morales [Tue, 23 Oct 2018 10:47:50 +0000 (03:47 -0700)]
Change deployment approach

This change pretends to isolate the deployment script and make it
consumable externally.

Change-Id: I7b9859fcc55e03e706aa54d4bc632ed15b4313be
Signed-off-by: Victor Morales <victor.morales@intel.com>
Issue-ID: MULTICLOUD-408

5 years agoEnable Istio 16/72716/2
Victor Morales [Wed, 14 Nov 2018 17:15:36 +0000 (09:15 -0800)]
Enable Istio

This commit includes the playbook that installs and configure Istio
Service Mesh services. It also defines a draft script for testing its
sample.

Change-Id: I7f0049aae4ae0033356c370a0e86d583e7bf744f
Signed-off-by: Victor Morales <victor.morales@intel.com>
Issue-ID: MULTICLOUD-406

5 years agoCreate UTs to cover DB calls 90/71090/2
Victor Morales [Tue, 23 Oct 2018 18:54:58 +0000 (11:54 -0700)]
Create UTs to cover DB calls

This change pretends to increase the code coverage creating Unit
Tests for the interactions with the Databases.

Change-Id: I3b78ebe8ddb131e3c06bcee0065ad5eabeed5677
Signed-off-by: Victor Morales <victor.morales@intel.com>
Issue-ID: MULTICLOUD-301

5 years agoAdd vnf definition APIs 60/71760/9 casablanca 3.0.0-ONAP
Kiran Kamineni [Wed, 31 Oct 2018 23:24:32 +0000 (16:24 -0700)]
Add vnf definition APIs

Adding APIs for POST, GET, LIST (implemented via GET)
and DELETE commands on /v1/vnfd base for creating,
getting, listing and deleting VNF Definitions.
P2: Added unit tests for vnfdhandler.go
P3: Add unit tests for serialize and deserialize
P4: Integrating review comments
P5: Added customizable mocking for vnfdhandler_test
P6: Added customizablt mocking for vnfd_test
    Note that this will soon need to be updated once
    the db changes go through in patch 71090

Issue-ID: MULTICLOUD-393
Change-Id: Id509bed370ab3bdc572c6ead22324c1ee3dbf82d
Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
Signed-off-by: Victor Morales <victor.morales@intel.com>
5 years agoMerge "Bumb andrewrothstein.go role to 2.1.10"
Victor Morales [Thu, 8 Nov 2018 16:24:38 +0000 (16:24 +0000)]
Merge "Bumb andrewrothstein.go role to 2.1.10"

5 years agoMerge "Fix start.sh script"
Bin Hu [Thu, 8 Nov 2018 00:21:33 +0000 (00:21 +0000)]
Merge "Fix start.sh script"

5 years agoBumb andrewrothstein.go role to 2.1.10 39/72139/1
Victor Morales [Wed, 7 Nov 2018 23:36:49 +0000 (15:36 -0800)]
Bumb andrewrothstein.go role to 2.1.10

This version installs golang 1.11.2 by default on the server nodes

Change-Id: I0526f5c792d907ca9b25df0bdbbe38be43628aba
Signed-off-by: Victor Morales <victor.morales@intel.com>
Issue-ID: MULTICLOUD-301

5 years agoMerge "Change proxy-mode from iptables to ipvs"
Victor Morales [Wed, 7 Nov 2018 22:51:52 +0000 (22:51 +0000)]
Merge "Change proxy-mode from iptables to ipvs"

5 years agoFix start.sh script 34/72134/1
Victor Morales [Wed, 7 Nov 2018 14:26:43 +0000 (06:26 -0800)]
Fix start.sh script

The start bash script is used during development phase to quickly
test some changes in source code. This script requires to get the
IP address of the Consul database and export the image name. This
change fixes those instructions

Change-Id: I73c4c4be0a9476304bedcd4c62a723ff1ecc7f7c
Signed-off-by: Victor Morales <victor.morales@intel.com>
Issue-ID: MULTICLOUD-301

5 years agoMerge "Add context into for sink service selector"
Victor Morales [Mon, 5 Nov 2018 17:11:50 +0000 (17:11 +0000)]
Merge "Add context into for sink service selector"

5 years agoChange proxy-mode from iptables to ipvs 88/71888/1
Victor Morales [Mon, 5 Nov 2018 10:39:53 +0000 (02:39 -0800)]
Change proxy-mode from iptables to ipvs

Kubespray uses iptables by default for implementing a form of virtual
IP. Ipvs has better performance when syncing proxy rules than iptables.
This change sets that configuration option.

Change-Id: Idd054a786284c54ceee1770d7774975b0ed43430
Signed-off-by: Victor Morales <victor.morales@intel.com>
Issue-ID: MULTICLOUD-301

5 years agoMigrate from dep to go mod 92/71592/1
Kiran Kamineni [Wed, 31 Oct 2018 21:58:09 +0000 (14:58 -0700)]
Migrate from dep to go mod

Migrate from dep to go mod which is
native package management functionality in golang 1.11

Issue-ID: MULTICLOUD-392
Change-Id: I9a94cb38bd230738d7d0e586e6956b7a46472dd7
Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
5 years agoMerge "Change Vagrant default provider"
Victor Morales [Tue, 30 Oct 2018 19:10:53 +0000 (19:10 +0000)]
Merge "Change Vagrant default provider"

5 years agoAdd context into for sink service selector 31/71431/1
Victor Morales [Mon, 29 Oct 2018 18:01:55 +0000 (11:01 -0700)]
Add context into for sink service selector

In order to narrow down the number of the endpoints to one. This
change provides a context in the selector section.

Change-Id: If1ebe744fc43ad9ec6ebbc513f397e55dae13dd9
Signed-off-by: Victor Morales <victor.morales@intel.com>
Issue-ID: MULTICLOUD-301

5 years agoChange Vagrant default provider 27/71427/1
Victor Morales [Mon, 29 Oct 2018 14:29:56 +0000 (07:29 -0700)]
Change Vagrant default provider

Vagrant uses VirtualBox as default provider, but given that it's not
fully supported in this project its better to change that behaviour.
This change makes Libvirt as default Vagrant provider.

Change-Id: Ib80636f8c595280d425901a8914548d199606fdc
Signed-off-by: Victor Morales <victor.morales@intel.com>
Issue-ID: MULTICLOUD-301

5 years agoBump golang version to 1.11 26/71426/2
Victor Morales [Mon, 29 Oct 2018 14:21:06 +0000 (07:21 -0700)]
Bump golang version to 1.11

Change-Id: I177cd017f75e4155f7e9b9a73869ea7fff24195a
Signed-off-by: Victor Morales <victor.morales@intel.com>
Issue-ID: MULTICLOUD-387

5 years agoMerge "Fix populate typo"
Victor Morales [Thu, 25 Oct 2018 21:41:56 +0000 (21:41 +0000)]
Merge "Fix populate typo"

5 years agoFix populate typo 97/71197/1
Victor Morales [Wed, 24 Oct 2018 23:38:27 +0000 (16:38 -0700)]
Fix populate typo

Change-Id: I413b5548d8f24f1ff8e50d76d6982276683956ae
Signed-off-by: Victor Morales <victor.morales@intel.com>
Issue-ID: MULTICLOUD-301

5 years agoFix README references 10/71110/1
Victor Morales [Tue, 23 Oct 2018 17:48:03 +0000 (10:48 -0700)]
Fix README references

The README file contains references to images in the docs folder.
These references haven't properly updated.

Change-Id: I4b16f5b1249512811239e9f8013081c1e30de02b
Signed-off-by: Victor Morales <victor.morales@intel.com>
Issue-ID: MULTICLOUD-301

5 years agoFix non-existing all.yml file 12/71012/1
Victor Morales [Mon, 22 Oct 2018 15:40:21 +0000 (08:40 -0700)]
Fix non-existing all.yml file

The all.yml file contains global configuration used by kubespray.
During the initial execution this file doesn't exist and its
execution can raise an error. This change fix that scenario.

Change-Id: I1f0c0134ccbc439b6a6c3e26c993cf498bb8dbf8
Signed-off-by: Victor Morales <victor.morales@intel.com>
Issue-ID: MULTICLOUD-301

5 years agoMerge "Bump multus version to 3.1"
Victor Morales [Sat, 20 Oct 2018 20:29:49 +0000 (20:29 +0000)]
Merge "Bump multus version to 3.1"

5 years agoBump multus version to 3.1 80/70780/4
Ritu Sood [Thu, 18 Oct 2018 17:10:39 +0000 (10:10 -0700)]
Bump multus version to 3.1

Change-Id: Id98a0ef126a4121cc8e33c95672f1dd552b1560f
Signed-off-by: Ritu Sood <ritu.sood@intel.com>
Signed-off-by: Victor Morales <victor.morales@intel.com>
Issue-ID: MULTICLOUD-271

5 years agoMerge "Improve build process"
Bin Yang [Fri, 19 Oct 2018 07:41:04 +0000 (07:41 +0000)]
Merge "Improve build process"

5 years agoMerge "Bump vagrant version to 2.2.0"
Victor Morales [Fri, 19 Oct 2018 04:08:57 +0000 (04:08 +0000)]
Merge "Bump vagrant version to 2.2.0"

5 years agoMerge "Add License headers"
Victor Morales [Fri, 19 Oct 2018 04:08:48 +0000 (04:08 +0000)]
Merge "Add License headers"

5 years agoMerge "Add edgex yaml to helm based template"
Victor Morales [Fri, 19 Oct 2018 04:08:35 +0000 (04:08 +0000)]
Merge "Add edgex yaml to helm based template"

5 years agoAdd edgex yaml to helm based template 93/70393/4
Kiran Kamineni [Thu, 11 Oct 2018 10:13:15 +0000 (03:13 -0700)]
Add edgex yaml to helm based template

Add existing deployment and service yaml files into
a helm chart that can reused.
Currently splitting out consul and mongo as subcharts while
keeping the rest under the main edgex chart.
P2: Convert to different label selectors
P3: Keep the old configuration yaml in a seperate kubernetes folder
P4: Removed common chart with the templates. We are using only a small subset
    which we can expand locally via Helm Variables

Issue-ID: MULTICLOUD-376
Change-Id: I8e0682c7d1d2433b9754209b2f3eedb790df5464
Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
5 years agoImprove build process 85/70785/1
Victor Morales [Thu, 18 Oct 2018 20:39:45 +0000 (13:39 -0700)]
Improve build process

The build process is used by Jenkins Daily Jobs to generate images
as well as the provisioning vagrant process. This change pretends
to satisfy both processes.

Change-Id: I53d77b0e64f2482e612e59d5a3881fae53c63cbd
Signed-off-by: Victor Morales <victor.morales@intel.com>
Issue-ID: MULTICLOUD-301

5 years agoAdd License headers 51/70751/1
Victor Morales [Thu, 18 Oct 2018 09:50:32 +0000 (02:50 -0700)]
Add License headers

Change-Id: I1502c812f29ca8a6d1f819b9459c00597be09305
Signed-off-by: Victor Morales <victor.morales@intel.com>
Issue-ID: MULTICLOUD-301

5 years agoRemove source /etc/environemnt instruction 42/70742/1
Victor Morales [Thu, 18 Oct 2018 08:24:25 +0000 (01:24 -0700)]
Remove source /etc/environemnt instruction

Apparently this instruction is overriding the GOROOT value during
the execution in the Jenkins Jobs.

Change-Id: I97768db029ae21939bfde4753f87387ea976985c
Signed-off-by: Victor Morales <victor.morales@intel.com>
Issue-ID: MULTICLOUD-301

5 years agoBump vagrant version to 2.2.0 68/70668/1
Victor Morales [Wed, 17 Oct 2018 08:18:06 +0000 (01:18 -0700)]
Bump vagrant version to 2.2.0

Change-Id: I18e2c79a7f4dbbd6f02fef20c782660c579784ff
Signed-off-by: Victor Morales <victor.morales@intel.com>
Issue-ID: MULTICLOUD-301

5 years agoHybrid Functional test for vFirewall 16/70516/3
Victor Morales [Mon, 15 Oct 2018 17:25:02 +0000 (10:25 -0700)]
Hybrid Functional test for vFirewall

This change provides the bash instructions for running an hybrid
scenario (Virtual Machine and Containers) of the ONAP vFirewall
use case.

Change-Id: I2bb7843118c31895d0b5fe1987cced2be29672cb
Signed-off-by: Victor Morales <victor.morales@intel.com>
Issue-ID: MULTICLOUD-301

5 years agoMerge "Improve setup.sh script"
Victor Morales [Tue, 16 Oct 2018 15:21:48 +0000 (15:21 +0000)]
Merge "Improve setup.sh script"

5 years agoMerge "Add more Ubuntu Cloud images"
Victor Morales [Tue, 16 Oct 2018 15:21:43 +0000 (15:21 +0000)]
Merge "Add more Ubuntu Cloud images"

5 years agoImprove setup.sh script 15/70515/1
Victor Morales [Mon, 15 Oct 2018 17:10:54 +0000 (10:10 -0700)]
Improve setup.sh script

The setup.sh script contains instructions to configure and install
dependencies for this project. This change includes instructions to
enable nested-virtualization.

Change-Id: I35b66d08f0e3813d18e661f73edc04fd2cf585fe
Signed-off-by: Victor Morales <victor.morales@intel.com>
Issue-ID: MULTICLOUD-301

5 years agoAdd more Ubuntu Cloud images 14/70514/1
Victor Morales [Mon, 15 Oct 2018 17:04:23 +0000 (10:04 -0700)]
Add more Ubuntu Cloud images

The initial implementation only defined Ubuntu Xenial Cloud image
This change adds more official images for future testing.

Change-Id: I6dd8d5cfa9ecc598a52100e2db8e74fdd364a79f
Signed-off-by: Victor Morales <victor.morales@intel.com>
Issue-ID: MULTICLOUD-301

5 years agoEnable vhost_net module in nodes. 13/70513/1
Victor Morales [Mon, 15 Oct 2018 16:56:39 +0000 (09:56 -0700)]
Enable vhost_net module in nodes.

This change enables the vhost_net driver which emulates the
virtio-net network card in the host kernel.

Change-Id: Ibdcb6f0c1d196a2d64622ecc81acc89e56ffef62
Signed-off-by: Victor Morales <victor.morales@intel.com>
Issue-ID: MULTICLOUD-301

5 years agoMerge "Using VirtletCloudInitUserData section"
Victor Morales [Mon, 8 Oct 2018 15:32:01 +0000 (15:32 +0000)]
Merge "Using VirtletCloudInitUserData section"

5 years agoMerge "Set 30080 port for Kubernetes Dashboard"
Victor Morales [Fri, 5 Oct 2018 23:11:52 +0000 (23:11 +0000)]
Merge "Set 30080 port for Kubernetes Dashboard"

5 years agoMerge "Bump virtlet version to 1.4.1"
Victor Morales [Fri, 5 Oct 2018 22:46:15 +0000 (22:46 +0000)]
Merge "Bump virtlet version to 1.4.1"

5 years agoMerge "Fix installation order"
Victor Morales [Fri, 5 Oct 2018 22:46:09 +0000 (22:46 +0000)]
Merge "Fix installation order"

5 years agoMerge "Remove default kubespray config values"
Victor Morales [Fri, 5 Oct 2018 22:45:41 +0000 (22:45 +0000)]
Merge "Remove default kubespray config values"

5 years agoMerge "Bump kubespray version to 2.7.0"
Victor Morales [Fri, 5 Oct 2018 22:45:28 +0000 (22:45 +0000)]
Merge "Bump kubespray version to 2.7.0"

5 years agoUsing VirtletCloudInitUserData section 45/69945/1
Victor Morales [Fri, 5 Oct 2018 15:35:07 +0000 (08:35 -0700)]
Using VirtletCloudInitUserData section

The VirtletCloudInitUserData section defines instructions used by
cloud-init service to post-provisioning VMs. But this section cannot
be used with VirtletCloudInitUserDataScript in the Deployment file
definition. This changer replaces these virtlet sections.

Change-Id: I03f5fee223d43b21ceadd50bc356cec4e96cab23
Signed-off-by: Victor Morales <victor.morales@intel.com>
Issue-ID: MULTICLOUD-301

5 years agoBump virtlet version to 1.4.1 71/69871/1
Victor Morales [Thu, 4 Oct 2018 16:57:16 +0000 (09:57 -0700)]
Bump virtlet version to 1.4.1

Change-Id: I9e20333f506674533ed6711d265a95d4defaa4e0
Signed-off-by: Victor Morales <victor.morales@intel.com>
Issue-ID: MULTICLOUD-301

5 years agoFix installation order 70/69870/1
Victor Morales [Thu, 4 Oct 2018 16:41:12 +0000 (09:41 -0700)]
Fix installation order

The current order of the installation instructions in the setup.sh
script causes issues in some systems, mainly because they are lacking
of certain basic packages. This change includes the python packages
and fix the order of execution.

Change-Id: I73de55fc9d49a75953e3fbdde8290757adcadd7a
Signed-off-by: Victor Morales <victor.morales@intel.com>
Issue-ID: MULTICLOUD-301