summaryrefslogtreecommitdiffstats
path: root/multivimbroker
AgeCommit message (Collapse)AuthorFilesLines
2018-03-26Merge "Add test_get_res_from_aai"Liang Ke1-0/+19
2018-03-26Merge "Add test_get_vim_by_id_success"Liang Ke2-3/+24
2018-03-26Merge "Add test_split_vim_to_owner_region"Liang Ke1-0/+22
2018-03-24Integrate uwsgi with djangoYun Huang3-2/+8
To enable parallel processing of framework services Change-Id: I3142c2ea742918027e7f397b6fe9aece329788a5 Issue-ID: MULTICLOUD-187 Signed-off-by: Yun Huang <yun.huang@windriver.com>
2018-03-23Merge "Disable DEBUG mode for framework"zhang ab1-2/+2
2018-03-23Merge "Migrate get vim_types to new framework"zhang ab3-14/+23
2018-03-23Add test_get_vim_by_id_successEthan Lynn2-3/+24
Add unit test test_get_vim_by_id_success for extsys.py Change-Id: I9d487ad9860fdd67f651d21b4833d3a5076babe1 Issue-ID: MULTICLOUD-198 Signed-off-by: Ethan Lynn <ethanlynnl@vmware.com>
2018-03-23Disable DEBUG mode for frameworkYun Huang1-2/+2
Change-ID: I10b85d708d925956fddc0b1c615495b9f980f526 Issue-ID: MULTICLOUD-196 Signed-off-by: Yun Huang <yun.huang@windriver.com>
2018-03-23Add test_split_vim_to_owner_regionEthan Lynn1-0/+22
Add unit test test_split_vim_to_owner_region for extsys.py Change-Id: I8227fa362f1d971960bd5fc6a76fb00bd1593a8d Issue-ID: MULTICLOUD-198 Signed-off-by: Ethan Lynn <ethanlynnl@vmware.com>
2018-03-23Add test_req_by_msbEthan Lynn1-0/+12
Add tests test_req_by_msb for restcall.py Change-Id: Ic50d07a52522d67a6f760b5e332e1c93610a45f6 Issue-ID: MULTICLOUD-198 Signed-off-by: Ethan Lynn <ethanlynnl@vmware.com>
2018-03-23Add test_get_res_from_aaiEthan Lynn1-0/+19
Add test test_get_res_from_aai for restcall.py Change-Id: I7fd4a7d59ce5da891f3cb9d214aa1ffd306abcac Issue-ID: MULTICLOUD-198 Signed-off-by: Ethan Lynn <ethanlynnl@vmware.com>
2018-03-23Add pecan in bootstrap scriptHong Hui Xiao2-6/+17
Add pecan as an option in bootstrap. Change-Id: Ib6ba34406e7c7fefaeae2af5a91cf9ffd297293c Issue-ID: MULTICLOUD-150 Signed-off-by: Hong Hui Xiao <honghui_xiao@yeah.net>
2018-03-23Migrate get vim_types to new frameworkHong Hui Xiao3-14/+23
A simple comparison between new framework and old framework can be found at [1]. In a high concurrent situation, new framwork is 24 times faster than old one. Since get vim_types is less overhead, result in [1] is more convincing to just compare frameworks. [1] https://paste.ubuntu.com/p/Nc5WTgsKNP/ Change-Id: I0bd3ada0684cb20319895ced77d10d8593873eee Issue-ID: MULTICLOUD-150 Signed-off-by: Hong Hui Xiao <honghui_xiao@yeah.net>
2018-03-23Merge "Add combine_url test for restcall.py"Liang Ke1-0/+24
2018-03-23Merge "Add test_check_capacity_invalid_input"Liang Ke2-2/+15
2018-03-23Merge "Add test test_check_capacity_no_suitable_vim"Liang Ke1-0/+26
2018-03-22Add test_check_capacity_invalid_inputEthan Lynn2-2/+15
Add test_check_capacity_invalid_input for check_vim_capacity API Change-Id: I26ddf91b17597bfca9eb3bb424a6d9515071da6d Issue-ID: MULTICLOUD-166 Signed-off-by: Ethan Lynn <ethanlynnl@vmware.com>
2018-03-22Add test test_check_capacity_no_suitable_vimEthan Lynn1-0/+26
Add test_check_capacity_no_suitable_vim for check_vim_capacity API Change-Id: I86083b261106b81aacc53e0ef558556e7458f004 Issue-ID: MULTICLOUD-166 Signed-off-by: Ethan Lynn <ethanlynnl@vmware.com>
2018-03-22Add combine_url test for restcall.pyEthan Lynn1-0/+24
Add tests for combine_url function Change-Id: I7ad188855174bbd0be83917b425beba494fcf141 Issue-ID: MULTICLOUD-198 Signed-off-by: Ethan Lynn <ethanlynnl@vmware.com>
2018-03-22Merge "Add forwarder function to pecan framework"Liang Ke1-0/+67
2018-03-22Merge "Initial code for pecan framework"Liang Ke10-84/+265
2018-03-21 Fix framework logging formatliangke7-10/+93
Update the logging format. Add context middleware to set MDC attributes. Allow framework to transmit request headers,So backend plugin could get "TransactionID" from framework. Change-Id: Ib918489a4a3e2069046471b42810fe4d1cbcb374 Issue-ID: MULTICLOUD-151 Signed-off-by: liangke <lokyse@163.com>
2018-03-19Add test_check_capacity_successEthan Lynn1-0/+54
Add test_check_capacity_success for check_vim_capacity API Change-Id: I8b0ffb3b907b25f06d8267c7ec941ce83d636d95 Issue-ID: MULTICLOUD-166 Signed-off-by: Ethan Lynn <ethanlynnl@vmware.com>
2018-03-19Merge "Add check_vim_capacity"Liang Ke2-2/+35
2018-03-16Add check_vim_capacityEthan Lynn2-2/+35
Add check_vim_capacity API to broker. Change-Id: I57d26dea6502a38fb358d9df5ae313ad438e7056 Issue-ID: MULTICLOUD-166 Signed-off-by: Ethan Lynn <ethanlynnl@vmware.com>
2018-03-16Update A&AI schema to v13Ethan Lynn1-1/+1
Update A&AI schema to v13 Change-Id: Iff8ebf0491d78653bf346e374c2749eb8556214e Issue-ID: MULTICLOUD-185 Signed-off-by: Ethan Lynn <ethanlynnl@vmware.com>
2018-03-15Fix vim_types testsEthan Lynn1-11/+1
Fix vim_types tests Change-Id: Ib58860496b51657d7455de60ab48ba8b0bc886fb Issue-ID: MULTICLOUD-184 Signed-off-by: Ethan Lynn <ethanlynnl@vmware.com>
2018-03-15Merge "Remove msb register code"Liang Ke4-59/+0
2018-03-14Add test_vim_types_successEthan Lynn1-0/+36
Add unit tests for vim_types API. Change-Id: I188f7a65f6573ae3fb5813a43c34245eebb2f4fa Issue-ID: MULTICLOUD-184 Signed-off-by: Ethan Lynn <ethanlynnl@vmware.com>
2018-03-14Remove msb register codeEthan Lynn4-59/+0
It's legacy code from open-o, we don't need it any more. And also remove a vulnerability reported by sonar. Change-Id: I88c94240c0ef21b182b8dcc13feae684471639db Issue-ID: MULTICLOUD-133 Signed-off-by: Ethan Lynn <ethanlynnl@vmware.com>
2018-03-12Add forwarder function to pecan frameworkHong Hui Xiao1-0/+67
Add forward(or proxy) functionality, so that multicloud component is able to forward request to another component. TEST DONE: GET POST DELETE (/networks) Registry/Unregistry/Identity Change-Id: I73f71c62a91301c0864f1a00fd95f016f69a89d4 Issue-ID: MULTICLOUD-150 Signed-off-by: Hong Hui Xiao <honghui_xiao@yeah.net>
2018-03-09Fix sonar code coverageBin Sun2-7/+81
Change-Id: Ib457043aad138746239f13f38235c2ebd4ddcb6e Issue-ID: MULTICLOUD-172 Signed-off-by: Bin Sun <bins@vmware.com>
2018-03-08Initial code for pecan frameworkHong Hui Xiao10-84/+265
This patch introduces pecan framework to multicloud. The number of processes equals to the number of CPU cores. The swagger json url has been implemented in this patch. ../api/multicloud/v0/swagger.json Change-Id: Icd0ebd9f275c2f066295ec3c2723d995d71ef632 Issue-ID: MULTICLOUD-150 Signed-off-by: Hong Hui Xiao <honghui_xiao@yeah.net>
2018-03-06Add sonarEthan Lynn2-0/+14
Add sonar code coverage in pom.xml Change-Id: Idc965bb49bf4747cedf4d4f9e9819b3a9c42171e Issue-ID: MULTICLOUD-172 Signed-off-by: Ethan Lynn <ethanlynnl@vmware.com>
2018-03-06 Put yaml type file into repositoriesliangke1-0/+2
Change-Id: I3dacb6cc9a80374c7dcb0fbfde513be4e658ee95 Issue-ID: MULTICLOUD-151 Signed-off-by: liangke <lokyse@163.com>
2018-03-05 Update log setting of multivimbrokerliangke4-33/+45
Change-Id: I6d666ed07c5c28edc3337028c29c502d4fbeb3dd Issue-ID: MULTICLOUD-151 Signed-off-by: liangke <lokyse@163.com>
2018-03-05Merge "Revise vim_types API"Liang Ke1-2/+7
2018-03-01Remove unused redis configEthan Lynn2-89/+0
Broker didn't use redis for now. Change-Id: I585c5ea2e4c3664de8b26bacb3a3452799872476 Issue-ID: MULTICLOUD-133 Signed-off-by: Ethan Lynn <ethanlynnl@vmware.com>
2018-03-01Revise vim_types APIEthan Lynn1-2/+7
Change-Id: I0a5728655fc8eb894a11dac56192f724db2000b6 Issue-ID: MULTICLOUD-165 Signed-off-by: Ethan Lynn <ethanlynnl@vmware.com>
2018-01-15Update licenseEthan Lynn43-1/+65
Update license according to ONAP community Change-Id: I1cfb2d23db235c71982dc7cb19b6e89870189890 Issue-ID: MULTICLOUD-139 Signed-off-by: Ethan Lynn <ethanlynnl@vmware.com>
2017-12-26Merge "Bump minor version"xinhuili1-2/+2
2017-12-26Merge "Remove sample folder in code"xinhuili5-83/+0
2017-12-14Make cloud provider plugin configurableEthan Lynn3-40/+48
The cloud provider plugin info stores in pub/config/provider-plugin.json, by editing this file other plugin provider can easily add a new plugin. Change-Id: I499fb05758e76eb2bda6bb4e9fafd302e810dddc Issue-ID: MULTICLOUD-132 Signed-off-by: Ethan Lynn <ethanlynnl@vmware.com>
2017-12-14Remove sample folder in codeEthan Lynn5-83/+0
This folder is not necessary. Change-Id: Ie20d10b8682fbde595e07afa2ff166d0423d80f0 Issue-ID: MULTICLOUD-133 Signed-off-by: Ethan Lynn <ethanlynnl@vmware.com>
2017-12-03Bump minor versionJessica Wagantall1-2/+2
Bump minor version in preparation for Amsterdam branching. Change-Id: Ie43c398c528ba8dab66fbc9e0067072399768a20 Issue-ID: CIMAN-120 Signed-off-by: Jessica Wagantall <jwagantall@linuxfoundation.org>
2017-12-02Fix pep8 issueliangke2-5/+2
Do not use bare except. Change-Id: I4c95a43341411074a06b9206c8c605c7826ed430 Issue-ID: MULTICLOUD-131 Signed-off-by: liangke <lokyse@163.com>
2017-10-13Change sub project's parentEthan Lynn2-7/+6
Change subproject's parent, otherwise it can't generate staging zip. Change-Id: Icc3ac2fde96212a39588eabf2177b14a6b85efb7 issue-id: MULTICLOUD-112 Signed-off-by: Ethan Lynn <ethanlynnl@vmware.com>
2017-10-12Tag staging docker imageEthan Lynn1-1/+3
tag docker image as 1.0.0-STAGING Change-Id: Iaa89cef7805bb879165eea13e08177bec1ce529b issue-id: MULTICLOUD-112 Signed-off-by: Ethan Lynn <ethanlynnl@vmware.com>
2017-09-21Fix multicloud broker bugsliangke1-1/+1
Change-Id: I92409678068a3c3e78fb28a688048b6ae33ba56c Issue-Id: MULTICLOUD-98 Signed-off-by: liangke <lokyse@163.com>
2017-09-20Fix namespace of pluginsEthan Lynn3-8/+12
For ocata, forward to multicloud-ocata. For titanium cloud, forward to multicloud-titanium_cloud. For vmware vio, forward to multicloud-vio. Change-Id: If25e0f1694d721e5cc0dad40391c06cdfbe1e6e0 issue-id: MULTICLOUD-99 Signed-off-by: Ethan Lynn <ethanlynnl@vmware.com>