Victor Morales [Fri, 22 Mar 2019 23:31:56 +0000 (23:31 +0000)]
Merge "Use httptest instead of http in unit tests"
Victor Morales [Fri, 22 Mar 2019 23:24:43 +0000 (23:24 +0000)]
Merge "Restructuring the repo."
Kiran Kamineni [Thu, 14 Mar 2019 22:38:13 +0000 (15:38 -0700)]
Use httptest instead of http in unit tests
Use httptest instead of http in unit tests similar to:
https://golang.org/pkg/net/http/httptest/#example_ResponseRecorder
Update empty body checking to account for change
Issue-ID: MULTICLOUD-545
Change-Id: Ib9775078c2c9ae2878b714363b569d8d79bd7698
Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
Akhila Kishore [Wed, 6 Mar 2019 14:34:09 +0000 (06:34 -0800)]
Restructuring the repo.
The idea is to restructure the existing repo create a deployment
independent of Vagrant or other hosting providers.
Renamed KRD to KUbernetes Deploy(Kud) including the ansible scripts
Added new path to functional tests.
Moved samples pdfs to sites.
Minor changes to Readme.
Updated aio.sh, moved sample config
Corrected other nits. Updated and verified test cases.
Addressed comments and changes associated with it.
Updated Readme and minor change in Vagrantfile.
Validated test cases again. Moved aio.sh into vagrant folder.
Added new README for each hosting provider and project on the whole.
Updated the installer script with relative path.
Updated the name to deployment_infra, moved the cFW sripcts to tests.
Updated the gitignore file.
Issue-ID: MULTICLOUD-301
Change-Id: Ie48c26b12ab58b604493fba58a9c5b9f8ba10942
Signed-off-by: Akhila Kishore <akhila.kishore@intel.com>
Victor Morales [Fri, 22 Mar 2019 00:12:20 +0000 (00:12 +0000)]
Merge "NewRouter supports custom backend clients"
Victor Morales [Thu, 21 Mar 2019 01:43:54 +0000 (01:43 +0000)]
Merge "Remove -a build flag"
Victor Morales [Thu, 21 Mar 2019 01:40:19 +0000 (01:40 +0000)]
Merge "Bring in all the other helper code"
Bin Yang [Thu, 21 Mar 2019 01:04:51 +0000 (01:04 +0000)]
Merge "Cleanup kubespray config values"
Bin Yang [Thu, 21 Mar 2019 01:04:32 +0000 (01:04 +0000)]
Merge "Update setup.sh script"
Ritu Sood [Thu, 21 Mar 2019 00:12:43 +0000 (17:12 -0700)]
Remove -a build flag
-a forces rebuilding of packages
that are already up-to-date. This is
slowing down builds to several minutes
Change-Id: Iac082538b91e60b23dc1a2f3b1f1597e078d7a4a
Signed-off-by: Ritu Sood <ritu.sood@intel.com>
Issue-ID: MULTICLOUD-301
Kiran Kamineni [Wed, 20 Mar 2019 17:32:23 +0000 (10:32 -0700)]
NewRouter supports custom backend clients
NewRouter needs to support custom clients
This is needed where the backend clients are mocked
and we need url path parameters to be available in our
unit tests.
Using the same router code allows us to do this.
Issue-ID: MULTICLOUD-547
Change-Id: Id51b6f0a9afe4965efaf2611fc642bccb9ac1d39
Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
Ritu Sood [Wed, 20 Mar 2019 16:17:10 +0000 (09:17 -0700)]
Workaround for Kernel Package Issue
Due to Ubuntu Kernel package issue
KRD is not installing.
https://bugs.launchpad.net/ubuntu/+source/linux-base/+bug/
1820755
This is a workaround to not install
those kernel packages
Change-Id: Ib298ad695c2e7b88bef46340afc9407868820e1d
Signed-off-by: Ritu Sood <ritu.sood@intel.com>
Issue-ID: MULTICLOUD-301
Bin Yang [Wed, 20 Mar 2019 06:26:48 +0000 (06:26 +0000)]
Merge "Switch to xenial Docker image"
Bin Yang [Wed, 20 Mar 2019 06:26:39 +0000 (06:26 +0000)]
Merge "Add cFW scripts folder"
Kiran Kamineni [Thu, 24 Jan 2019 23:40:12 +0000 (15:40 -0800)]
Bring in all the other helper code
Bring in all the helper functions added for end to end
integration. This allows the api level upload of helm charts,
profiles and also instantiation of said helm charts.
P3: Plugin index is based on lowercase kind name
whereas the map contains the correct case for kind.
Convert to lower case before loading the plugin.
Changes after rebasing on the new folder structure.
Rebasing over the new folder structure
P8: Add unit tests for Resolve function
Fix the integration tests for createvnf
I had to add a huge blob of base64 encoded data
based on the profile and sample helm chart to test
the flow.
P12: Update the integration test with the rb_profile_id parameter
Issue-ID: MULTICLOUD-291
Change-Id: If04c41cb185074989ab6c96557958140c43e456d
Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
Kiran Kamineni [Thu, 14 Mar 2019 22:38:13 +0000 (15:38 -0700)]
Upgrade mongo driver to 1.0
Mongo driver 1.0 was released recently
Upgrading from 0.2.0 which we were on right now.
Issue-ID: MULTICLOUD-530
Change-Id: I6d968e99b129d4307414ec31410505200b7bd47d
Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
Victor Morales [Wed, 13 Mar 2019 19:31:13 +0000 (19:31 +0000)]
Merge "Add support for helm templates"
Kiran Kamineni [Tue, 12 Mar 2019 23:28:53 +0000 (16:28 -0700)]
Push latest tag
Push latest tag during the nightly docker build
along with the snapshot version that we already push
Issue-ID: MULTICLOUD-526
Change-Id: Ifb5e27c8d86577e54d5dad9ce1d8320b422fec62
Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
Kiran Kamineni [Tue, 8 Jan 2019 23:50:12 +0000 (15:50 -0800)]
Add support for helm templates
Add support for evaluating helm templates
The interface provides a way to get a map which
contains a mapping from kubernetes kind to the
corresponding yaml file that defines a resource
of that kind. This map is then provided to the
instantiation code at instantiation time to create
in the kubernetes cluster.
P5: Use filepath.join instead of strings.join
P9: rebase with new folder structure
P10: moved the helm code into its own package.
P12: Add unit tests
update the go.mod to use latest docker version
Issue-ID: MULTICLOUD-291
Change-Id: Ie75f5c616cc0cdc3e0ace49ff2c2f6c356a4c0d1
Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
Victor Morales [Tue, 12 Mar 2019 15:04:11 +0000 (15:04 +0000)]
Merge "Add support for parsing profile yaml files"
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.
P14: Add unit test that covers both ProcessProfileYaml
and CopyConfigurationOverrides
P15: Adding mock_charts and mock_profiles
We expect to reuse these files for other unit tests
Issue-ID: ONAPARC-348
Change-Id: I4504d0b158fdfef476b8c2a461d33306926545d7
Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
Kiran Kamineni [Mon, 11 Mar 2019 23:32:20 +0000 (16:32 -0700)]
Detect chart name
ChartName should not be mandatory field
If not provided it will be detected by inspection
of the tar.gz archive.
Issue-ID: MULTICLOUD-525
Change-Id: Idaf9672f2cbbb882d78b1987467472ce73c651da
Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
Victor Morales [Fri, 8 Mar 2019 22:42:46 +0000 (22:42 +0000)]
Merge "Add test helm chart for testing"
Kiran Kamineni [Fri, 25 Jan 2019 20:32:55 +0000 (12:32 -0800)]
Add test helm chart for testing
Add a test helm chart for testing the end to end
flow. This chart brings up a service and a deployment.
The deployment brings up two containers, vault and consul.
Vault and Consul are brought up in dev mode.
The helm chart also has a subchart, common, which contains
templates that are used within the main chart.
Added an override deployment.yaml which creates only one
container instead of two
Fixed plugin.sh and tar file creation steps
Issue-ID: MULTICLOUD-291
Change-Id: I7eb10c9f43f8a4e09938139b5e2edee5d59feb3b
Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
Signed-off-by: Victor Morales <victor.morales@intel.com>
Victor Morales [Thu, 7 Mar 2019 18:50:09 +0000 (10:50 -0800)]
Switch to xenial Docker image
The Ubuntu Xenial Docker image has lower footprint than Trusty,
besides more security patches. This change modifies the Dockerfile
that is used for building the Docker image.
Change-Id: I89228ef555668aad1e621973fd33481ce49499d3
Signed-off-by: Victor Morales <victor.morales@intel.com>
Issue-ID: MULTICLOUD-301
Victor Morales [Thu, 7 Mar 2019 16:06:34 +0000 (08:06 -0800)]
Update setup.sh script
This script was changed some instructions which was reported by
shellcheck tool and fix some non-ubuntu instructions.
Change-Id: If7dce994f024d99aa8f4d306da928e616774b013
Signed-off-by: Victor Morales <victor.morales@intel.com>
Issue-ID: MULTICLOUD-301
Victor Morales [Tue, 26 Feb 2019 06:46:28 +0000 (22:46 -0800)]
Cleanup kubespray config values
There were some kubespray configuration values that are not needed
and some are causing conflicts with the dashboard. This change
removes them.
Change-Id: I6e58b9faf45a24bb29e2760976a157a759ac3115
Signed-off-by: Victor Morales <victor.morales@intel.com>
Issue-ID: MULTICLOUD-301
Akhila Kishore [Mon, 4 Mar 2019 16:07:27 +0000 (08:07 -0800)]
Updating virtlet version
Change-Id: I39dec4a2dade465ea7cd561354724dd67cd28d20
Signed-off-by: Akhila Kishore <akhila.kishore@intel.com>
Issue-ID: MULTICLOUD-301
Victor Morales [Thu, 28 Feb 2019 23:16:56 +0000 (15:16 -0800)]
Add cFW scripts folder
The Dockerfiles that are used for building the Docker images during
the testing the Hybrid Firewall ONAP use case are hosted in an
external repo. This change includes the latest working version for
those scripts.
Change-Id: I92c10c3161820ac09a94ff997c6bc39617278965
Signed-off-by: Victor Morales <victor.morales@intel.com>
Issue-ID: MULTICLOUD-301
Victor Morales [Wed, 27 Feb 2019 05:59:02 +0000 (05:59 +0000)]
Merge "Fix setup.sh sudo permissions"
Victor Morales [Mon, 25 Feb 2019 16:07:55 +0000 (08:07 -0800)]
Change Docker execution permissions
The k8s pluging is running with root user in the Docker image, this
execution can compromise the host system. Therefore, it's necessary
to explicit change those permissions.
Change-Id: I2455895662c68943f5c8800dfff1aaf6202bd870
Signed-off-by: Victor Morales <victor.morales@intel.com>
Issue-ID: MULTICLOUD-492
Victor Morales [Fri, 22 Feb 2019 15:37:05 +0000 (15:37 +0000)]
Merge "Updating kubespray version."
Akhila Kishore [Thu, 21 Feb 2019 15:19:40 +0000 (07:19 -0800)]
Updating kubespray version.
Change-Id: I9c84fbfe2ceea3166e8c4dd17fb8846eed554cee
Issue-ID: MULTICLOUD-301
Signed-off-by: Akhila Kishore <akhila.kishore@intel.com>
Victor Morales [Tue, 19 Feb 2019 23:31:40 +0000 (15:31 -0800)]
Fix setup.sh sudo permissions
There are some instructions in the setup.sh script file which require
the addition of sudo instruction. This change fixes them.
Change-Id: If680d9d9aac2a4b22d665b58ab31a4693c71588e
Signed-off-by: Victor Morales <victor.morales@intel.com>
Issue-ID: MULTICLOUD-301
Bin Yang [Mon, 18 Feb 2019 06:36:56 +0000 (06:36 +0000)]
Update committer INFO
Remove those committers who decided to step down as a committer
Change-Id: I393d36daa71370a5317d88f2809696496b0f2c3c
Issue-ID: MULTICLOUD-484
Signed-off-by: Bin Yang <bin.yang@windriver.com>
Akhila Kishore [Thu, 14 Feb 2019 11:10:05 +0000 (03:10 -0800)]
Adding the keyword SNAPSHOT to build script.
This fixes the version tag for K8s plugin modifying the
image name.
Change-Id: Ie88279200607dfe4338b2490647cf02a4e2d056c
Issue-ID: MULTICLOUD-301
Signed-off-by: Akhila Kishore <akhila.kishore@intel.com>
Victor Morales [Wed, 6 Feb 2019 21:21:46 +0000 (13:21 -0800)]
Remove external script references
The integration_* test scripts have some references to external
repositories that are out of the ONAP project scope. This change
removes those references to keep everything defined in this repo.
Change-Id: I0e829c6215efaf3cde9f5198f235b15350ac8235
Signed-off-by: Victor Morales <victor.morales@intel.com>
Issue-ID: MULTICLOUD-301
Victor Morales [Wed, 6 Feb 2019 21:12:43 +0000 (13:12 -0800)]
Add vFW scripts folder
The bash scripts that are used for testing the Firewall ONAP use case
are hosted in an external repo. This change includes the latest
working version for those scripts.
Change-Id: Ic2d371a3e715d867cb4e61e0ad13da812edeea45
Signed-off-by: Victor Morales <victor.morales@intel.com>
Issue-ID: MULTICLOUD-301
Victor Morales [Wed, 30 Jan 2019 17:31:15 +0000 (09:31 -0800)]
Add net tag to Makefile
The change that removes duplicate plugins make actions
I0efecdcb70052b4c0d66102c56e0c715481cb34a didn't consider
the flag for net module which it's needed during the runtime.
Change-Id: I534c38d017fcc08294e8ca52cc936dea117914e3
Signed-off-by: Victor Morales <victor.morales@intel.com>
Issue-ID: MULTICLOUD-301
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>
Victor Morales [Mon, 28 Jan 2019 20:16:55 +0000 (20:16 +0000)]
Merge "Remove duplicate plugins make action"
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
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
Victor Morales [Fri, 25 Jan 2019 20:08:08 +0000 (20:08 +0000)]
Merge "Add another parameter to the definition"
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>
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
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
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>
Victor Morales [Tue, 22 Jan 2019 18:22:34 +0000 (18:22 +0000)]
Merge "Fix sorting with right index value"
Victor Morales [Tue, 22 Jan 2019 18:21:44 +0000 (18:21 +0000)]
Merge "Delete content when a definition is deleted"
Victor Morales [Tue, 22 Jan 2019 18:21:24 +0000 (18:21 +0000)]
Merge "Enable statd service"
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>
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>
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>
Victor Morales [Fri, 18 Jan 2019 00:10:54 +0000 (00:10 +0000)]
Merge "Add resource bundle profile api"
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>
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>
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>
Victor Morales [Wed, 16 Jan 2019 21:37:57 +0000 (21:37 +0000)]
Merge "Check if no document is returned before error"
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>
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>
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
Victor Morales [Thu, 10 Jan 2019 16:12:47 +0000 (16:12 +0000)]
Merge "Refactor docker-compose variables"
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
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
Victor Morales [Fri, 4 Jan 2019 04:11:57 +0000 (04:11 +0000)]
Merge "Bump kubernetes client to 1.12.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>
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"
Victor Morales [Wed, 19 Dec 2018 00:15:17 +0000 (00:15 +0000)]
Merge "Add Network and OVN4NFV Plugins"
Victor Morales [Sat, 15 Dec 2018 00:34:27 +0000 (00:34 +0000)]
Merge "Migrating from consul to mongodb for backend"
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>
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
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
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
Victor Morales [Fri, 7 Dec 2018 18:29:04 +0000 (18:29 +0000)]
Merge "Enable downloading binaries and containers"
Victor Morales [Fri, 7 Dec 2018 18:28:45 +0000 (18:28 +0000)]
Merge "Bump vagrant version to 2.2.2"
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
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
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
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
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
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
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
Victor Morales [Mon, 26 Nov 2018 16:15:23 +0000 (16:15 +0000)]
Merge "Bump vagrant version to 2.2.1"
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
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
Victor Morales [Wed, 21 Nov 2018 23:18:39 +0000 (23:18 +0000)]
Merge "Add upload backend implementation"
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>
Bin Hu [Wed, 21 Nov 2018 16:01:03 +0000 (16:01 +0000)]
Merge "Document All-in-One Bare-Metal provisioning"
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
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
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>
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
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
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
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>
Victor Morales [Thu, 8 Nov 2018 16:24:38 +0000 (16:24 +0000)]
Merge "Bumb andrewrothstein.go role to 2.1.10"
Bin Hu [Thu, 8 Nov 2018 00:21:33 +0000 (00:21 +0000)]
Merge "Fix start.sh script"
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
Victor Morales [Wed, 7 Nov 2018 22:51:52 +0000 (22:51 +0000)]
Merge "Change proxy-mode from iptables to ipvs"