aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2019-01-25Move api.go functionsVictor Morales3-78/+74
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
2019-01-25Use a standard Go project layoutVictor Morales35-95/+97
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
2019-01-25Merge "Add another parameter to the definition"Victor Morales4-2/+33
2019-01-25Add another parameter to the definitionKiran Kamineni4-2/+33
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>
2019-01-25Version update.Akhila Kishore1-1/+1
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
2019-01-23Add support for tags in the mockdbKiran Kamineni4-103/+151
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>
2019-01-22Merge "Fix sorting with right index value"Victor Morales4-8/+8
2019-01-22Merge "Delete content when a definition is deleted"Victor Morales1-0/+6
2019-01-22Merge "Enable statd service"Victor Morales1-0/+5
2019-01-18Fix sorting with right index valueKiran Kamineni4-8/+8
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>
2019-01-18Delete content when a definition is deletedKiran Kamineni1-0/+6
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>
2019-01-18Account for strings when reading from dbKiran Kamineni1-1/+7
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>
2019-01-18Merge "Add resource bundle profile api"Victor Morales11-12/+1212
2019-01-17Add resource bundle profile apiKiran Kamineni11-12/+1212
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>
2019-01-17Minor refactoring of definition unit testsKiran Kamineni2-11/+35
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>
2019-01-16Fix order of db create callKiran Kamineni1-1/+1
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>
2019-01-16Merge "Check if no document is returned before error"Victor Morales1-0/+5
2019-01-16Bump mongodriver to 0.2.0Kiran Kamineni2-3/+3
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>
2019-01-16Check if no document is returned before errorKiran Kamineni1-0/+5
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>
2019-01-16Enable statd serviceVictor Morales1-0/+5
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
2019-01-10Merge "Refactor docker-compose variables"Victor Morales4-23/+36
2019-01-09Bump vagrant version to 2.2.3Victor Morales1-1/+1
Change-Id: I177d1e8ee849bab57fcf313f849c4f4c0e5ff511 Signed-off-by: Victor Morales <victor.morales@intel.com> Issue-ID: MULTICLOUD-301
2019-01-06Refactor docker-compose variablesVictor Morales4-23/+36
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
2019-01-04Merge "Bump kubernetes client to 1.12.3"Victor Morales7-14/+46
2019-01-03Bump kubernetes client to 1.12.3Kiran Kamineni7-14/+46
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>
2018-12-19Merge "Bump virtlet to 1.4.3 and criproxy to 0.14.0"Victor Morales1-2/+2
2018-12-19Merge "Add Network and OVN4NFV Plugins"Victor Morales16-9/+713
2018-12-15Merge "Migrating from consul to mongodb for backend"Victor Morales16-290/+1136
2018-12-14Migrating from consul to mongodb for backendKiran Kamineni16-290/+1136
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>
2018-12-14Fix issue with pip installRitu Sood1-2/+3
Pip install not preserving environment Issue-ID: MULTICLOUD-271 Signed-off-by: Ritu Sood <ritu.sood@intel.com> Change-Id: I5203ca63278581b5c1de1751764de34830f5b872
2018-12-13Bump virtlet to 1.4.3 and criproxy to 0.14.0Victor Morales1-2/+2
Change-Id: I6507c294b8ac4be7ec3561560229282c7f4f0257 Signed-off-by: Victor Morales <victor.morales@intel.com> Issue-ID: MULTICLOUD-301
2018-12-07Integrate OVN4NFV pluginVictor Morales9-42/+357
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
2018-12-07Merge "Enable downloading binaries and containers"Victor Morales11-83/+126
2018-12-07Merge "Bump vagrant version to 2.2.2"Victor Morales1-1/+1
2018-12-07Enable downloading binaries and containersVictor Morales11-83/+126
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
2018-12-05Add Network and OVN4NFV PluginsRitu Sood16-9/+713
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
2018-12-05Bump kubernetes version to 1.12.3Victor Morales1-1/+1
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
2018-12-05Bump kubespray version to 2.8.0Victor Morales2-1/+2
Change-Id: Ie7287f0bd0940fae67af2b1374c7be2fef37844e Signed-off-by: Victor Morales <victor.morales@intel.com> Issue-ID: MULTICLOUD-301
2018-12-05Bump vagrant version to 2.2.2Victor Morales1-1/+1
Change-Id: Ia94ce1ea3efa19952f8b9ef69fba0684b9c6b2bb Signed-off-by: Victor Morales <victor.morales@intel.com> Issue-ID: MULTICLOUD-301
2018-11-27Use temporal workaroundVictor Morales1-6/+6
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
2018-11-27Refactor integration testsVictor Morales4-84/+113
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
2018-11-26Merge "Bump vagrant version to 2.2.1"Victor Morales1-1/+1
2018-11-21Bump vagrant version to 2.2.1Victor Morales1-1/+1
Change-Id: Ifddbb8b137acc40f7d0c719ff1b861e1ea5a6320 Signed-off-by: Victor Morales <victor.morales@intel.com> Issue-ID: MULTICLOUD-387
2018-11-21Centralizes version of componentsVictor Morales8-12/+30
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
2018-11-21Merge "Add upload backend implementation"Victor Morales7-5/+396
2018-11-21Add upload backend implementationKiran Kamineni7-5/+396
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>
2018-11-21Merge "Document All-in-One Bare-Metal provisioning"Bin Hu7-6/+224
2018-11-20Document All-in-One Bare-Metal provisioningVictor Morales7-6/+224
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
2018-11-20Revert kube_proxy_mode mode to iptablesVictor Morales1-1/+1
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
2018-11-19Reconcile names in code and Jira itemsKiran Kamineni6-278/+279
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>