summaryrefslogtreecommitdiffstats
path: root/share
AgeCommit message (Collapse)AuthorFilesLines
2019-04-12Fix bug of registrationXiaohua Zhang2-70/+92
Change-Id: Idd12b60af24326c63fbda63928de191cdb6cf7f7 Issue-ID: MULTICLOUD-554 Signed-off-by: Xiaohua Zhang <xiaohua.zhang@windriver.com>
2019-04-10Fix bug of AZ cap checkXiaohua Zhang8-113/+130
Fix bugs in restcall module update the status code of workload api Remove unused event api from lenovo Change-Id: Iaa16bc3aca42c4583408384c73802ff4debe1b19 Issue-ID: MULTICLOUD-542 Signed-off-by: Xiaohua Zhang <xiaohua.zhang@windriver.com>
2019-04-09Fix bugs for infra_workload APIsXiaohua Zhang6-48/+108
Change-Id: Ieda8b2f7f68911bc348613cf7b18b40ea800b1e2 Issue-ID: MULTICLOUD-541 Signed-off-by: Xiaohua Zhang <xiaohua.zhang@windriver.com>
2019-04-08Update API handler for multi-tenant supportsXiaohua Zhang7-162/+390
Change-Id: I5c46a71605ed9f5f9e4dfd04b0383c1d5874f3da Issue-ID: MULTICLOUD-543 Signed-off-by: Xiaohua Zhang <xiaohua.zhang@windriver.com>
2019-04-08Add multi-tenant support for infra_workload APIXiaohua Zhang3-20/+47
Change-Id: I0e792dc29967ed3f3fc487dd7fbff4039e601d92 Issue-ID: MULTICLOUD-543 Signed-off-by: Xiaohua Zhang <xiaohua.zhang@windriver.com>
2019-04-08Add API to query workload by id or nameXiaohua Zhang2-29/+89
Change-Id: Ib34b71b0ffc540b4877b151717ef8ed6464cfb2d Issue-ID: MULTICLOUD-567 Signed-off-by: Xiaohua Zhang <xiaohua.zhang@windriver.com>
2019-04-08Update workload_status enumsXiaohua Zhang2-38/+38
Change-Id: I01e371546220fa9d61e9ed63bc0947d8d0a0f583 Issue-ID: MULTICLOUD-566 Signed-off-by: Xiaohua Zhang <xiaohua.zhang@windriver.com>
2019-04-04Fix thread helper bugXiaohua Zhang4-51/+154
the uwsgi disable threads by default. Enable it with additonal option. The post and get API request might routed to different uwsgi process, Leverage memcached to sync backlog items between uwsgi process Change-Id: Iaac6b66061f2c396cd24825ab020f0a937dfb505 Issue-ID: MULTICLOUD-561 Signed-off-by: Xiaohua Zhang <xiaohua.zhang@windriver.com>
2019-04-04Add os-interface api for serverfujinhua1-1/+82
Change-Id: Ia9f98d3ba841dd70d0969334d86dbbd3a0f6ac0e Issue-ID: MULTICLOUD-565 Signed-off-by: fujinhua <fu.jinhua@zte.com.cn>
2019-04-03Fix capacity_check errorBin Yang1-1/+6
Change-Id: Ib317e2a655d571b7cfefc1dbe8631ed77acc4b81 Issue-ID: MULTICLOUD-542 Signed-off-by: Bin Yang <bin.yang@windriver.com>
2019-04-03Upgrade infra_workload for starlingx_baseBin Yang1-3/+167
Try to fetch openstack artifact from sdc client via the shared volume Change-Id: Ibcb7336e4cfd318497e23167af8cd97883bde594 Issue-ID: MULTICLOUD-541 Signed-off-by: Bin Yang <bin.yang@windriver.com>
2019-04-03Refactor infra_workload helperBin Yang4-469/+576
Change-Id: I6ffcd3b9b9d2998bb2f2a6c043b20ad4ce072d9d Issue-ID: MULTICLOUD-561 Signed-off-by: Bin Yang <bin.yang@windriver.com>
2019-04-02Integrate heatbridge logic to infra_workload APIBin Yang2-3/+624
Offload the heatbridge to thread Change-Id: I66c32e7ee30a40542e6ba75087d7d88caaf0c640 Issue-ID: MULTICLOUD-561 Signed-off-by: Bin Yang <bin.yang@windriver.com>
2019-04-02Refactor helper codesBin Yang3-317/+496
Move helper thread to common module Refactor the interface between helper thread and worker Change-Id: I0b61a2ed1a428f67cfbe3cc1411ace39e245932d Issue-ID: MULTICLOUD-554 Signed-off-by: Bin Yang <bin.yang@windriver.com>
2019-04-01Update capacity check APIBin Yang4-92/+204
Query the AZinfo from the cache Relay on the background thread of AZcap Auditing Change-Id: I064dbc22c71ef25683145ef1c96274ce6ac74c3b Issue-ID: MULTICLOUD-542 Signed-off-by: Bin Yang <bin.yang@windriver.com>
2019-04-01Add audit to azBin Yang2-9/+117
Issues 2 rest api to openstack to retrieve all pserver and az info This will need optimization in case of many compute pservers in a cloud region Change-Id: I8cad1f63f62a47ea9367db59544e7318e3db746d Issue-ID: MULTICLOUD-555 Signed-off-by: Bin Yang <bin.yang@windriver.com>
2019-04-01Add a thread to audit AZ cap infoBin Yang1-0/+91
The audit thread sleep 5 seconds for each loop Change-Id: I10638b0fc5df1bd45272b9a10ca92596ace2f584 Issue-ID: MULTICLOUD-555 Signed-off-by: Bin Yang <bin.yang@windriver.com>
2019-04-01Discover and register az and hostBin Yang1-68/+165
Register pservers, and relation to AZ Change-Id: I95075dddbbddad596a082a7d910dd8a001dc2906 Issue-ID: MULTICLOUD-554 Signed-off-by: Bin Yang <bin.yang@windriver.com>
2019-04-01Initiate a thread to handle registryBin Yang2-362/+478
To prevent the registry API timeout by offloading the time-consuming registry to a thread Change-Id: I1107bb7f3d9a11bdae4d0a5926f788bc2a534bda Issue-ID: MULTICLOUD-554 Signed-off-by: Bin Yang <bin.yang@windriver.com>
2019-02-14Fix bug of v3 to v2 endpoints mappingXiaohua Zhang1-2/+2
Change-Id: I2d1b6bb57e7a3ed1c7d7de3246777ac1c62ff5b5 Issue-ID: MULTICLOUD-478 Signed-off-by: Xiaohua Zhang <xiaohua.zhang@windriver.com>
2019-01-30Remove the heatbridge call in masterHaibin Huang1-6/+6
The heatbridge call results in API timeout due to AAI performance constraints. Change-Id: Ia30065cefc6cb4853e1093dd0f5c874e99c4cd0d Issue-ID: MULTICLOUD-456 Signed-off-by: Haibin Huang <haibin.huang@intel.com>
2019-01-28Extract some code to shareHaibin Huang6-0/+1066
Change-Id: I6dffc1bf47c5839f077f3c7f93f021ed0b414d24 Issue-ID: MULTICLOUD-428 Signed-off-by: Haibin Huang <haibin.huang@intel.com>
2018-12-25Refactor the AAI cache for multicloud plugin3.0.1-ONAP1.2.3Bin Yang3-13/+72
Fix the cache issue of cloud region which result in failure of cloud region registration Change-Id: Id13a40124efb92bd818686e069c9335ecd0d07c1 Issue-ID: MULTICLOUD-431 Signed-off-by: Bin Yang <bin.yang@windriver.com>
2018-11-26Cache AAI data1.2.2Bin Yang2-0/+39
Add profiler decorator Change-Id: I280b5799fa876d881dc2331b44dd34344437eba3 Issue-ID: MULTICLOUD-417 Signed-off-by: Bin Yang <bin.yang@windriver.com>
2018-11-24Add filter to queriesXiaohua Zhang3-6/+25
Change-Id: I8845592fa9a52ce5aac382885072dee66d664f23 Issue-ID: MULTICLOUD-417 Signed-off-by: Xiaohua Zhang <xiaohua.zhang@windriver.com>
2018-11-22Add server action for windriver APIv1Haibin Huang1-0/+7
Change-Id: Iebab7cdf4b9e9190a32e3ce05aaca6fbb4901b76 Issue-ID: MULTICLOUD-414 Signed-off-by: Haibin Huang <haibin.huang@intel.com>
2018-11-22Add server action for windriver APIv0Haibin Huang1-1/+1
Change-Id: Ib6dca8c162644ba99ea04f5dd9c87ffde34bda8e Issue-ID: MULTICLOUD-414 Signed-off-by: Haibin Huang <haibin.huang@intel.com>
2018-11-18Fix discover snapshot with endpoint errorHaibin Huang1-1/+1
Nobody use snapshot, so we just comment it Change-Id: Ia0967bb8b26df123478135fc53f4ce40cb48db9a Issue-ID: MULTICLOUD-412 Signed-off-by: Haibin Huang <haibin.huang@intel.com>
2018-11-16Fix issue with keystone v2.0bharath1-2/+2
Issue-ID: MULTICLOUD-386 Change-Id: Ib19ad639c76754fa7a9f6efea449ab5df17afada Signed-Off-By: Bharath Thiruveedula <bharath_ves@hotmail.com>
2018-11-16Fix Openstack user data import issueHaibin Huang1-24/+33
Change-Id: Iedfa7b4c5389b7993630680d6efa4ed4ce734607 Issue-ID: MULTICLOUD-407 Signed-off-by: Haibin Huang <haibin.huang@intel.com>
2018-11-14Metadata format is not rightHaibin Huang1-31/+31
Change-Id: Id658382ecb506c07b619915e3211f736439ad3ec Issue-ID: MULTICLOUD-405 Signed-off-by: Haibin Huang <haibin.huang@intel.com>
2018-11-14Modify openstack return codeHaibin Huang1-1/+1
Change-Id: Ic124a91704b4e61d94626855a3592a29bad51738 Issue-ID: MULTICLOUD-404 Signed-off-by: Haibin Huang <haibin.huang@intel.com>
2018-11-09Fixed SRIOV-NIC extra-specs format3.0.0-ONAP1.2.1Haibin Huang1-3/+4
Change-Id: I479a30ca663dd9c23fab6556dc32e8dc06400489 Issue-ID: MULTICLOUD-400 Signed-off-by: Haibin Huang <haibin.huang@intel.com>
2018-11-09Add exception handling for flaovr processingBin Yang1-199/+232
Disable pservers update due to lack of pserver disaggregation between cloud regions Change-Id: Ib28df70a184f562f109f1ba3f2c10c8f523bbd28 Issue-ID: MULTICLOUD-399 Signed-off-by: Bin Yang <bin.yang@windriver.com>
2018-09-22Fix unregistry issueXiaohua Zhang1-4/+3
Change-Id: Ia4ddb6f11bf562a046d9f567fd7458b466c8642f Issue-ID: MULTICLOUD-361 Signed-off-by: Xiaohua Zhang <xiaohua.zhang@windriver.com>
2018-09-21Implement heatdelete to remove vservers from AAIXiaohua Zhang1-0/+34
Change-Id: I5c81fb3f01e08ee5c43107d7d59fdf4bf3a1d803 Issue-ID: MULTICLOUD-361 Signed-off-by: Xiaohua Zhang <xiaohua.zhang@windriver.com>
2018-09-20Fix bug of infra_workloadXiaohua Zhang1-5/+10
Remove region filter for identity endpoint Change-Id: I944b42926b4c5d5de8799de9c68b2b7e8bac5017 Issue-ID: MULTICLOUD-361 Signed-off-by: Xiaohua Zhang <xiaohua.zhang@windriver.com>
2018-09-20Filter endpoint filter mismatch with keystoneauth1Xiaohua Zhang16-48/+48
keystoneauth1 accept region_name as endpoint filter, which will match either region_id or region of the endpoint catalog Change-Id: I7ba1f7904e4b3004565d826f4ea3cd345ce45f62 Issue-ID: MULTICLOUD-364 Signed-off-by: Xiaohua Zhang <xiaohua.zhang@windriver.com>
2018-09-19Implement infra_workload delete APIXiaohua Zhang2-14/+9
Change-Id: I16f198e44810278eafb5be08ed88268911554f57 Issue-ID: MULTICLOUD-358 Signed-off-by: Xiaohua Zhang <xiaohua.zhang@windriver.com>
2018-09-18Implement POST and GET API for infra_workloadXiaohua Zhang1-4/+6
Change-Id: I7152f2738b0e30075dd0aebb17d74f806dc48b34 Issue-ID: MULTICLOUD-358 Signed-off-by: Xiaohua Zhang <xiaohua.zhang@windriver.com>
2018-09-17Merge "Add the registered sriov-nic flow"Bin Hu1-0/+35
2018-09-15Add heatbridge handlerBin Yang1-0/+59
Embedded the heatbridge handler into GET API Add multicloud api helper Change-Id: I96bd5e555dbcaa08d5ac5ac132c004a690f2e41d Issue-ID: MULTICLOUD-264 Signed-off-by: Bin Yang <bin.yang@windriver.com>
2018-09-15Add the registered sriov-nic flowHuang Haibin1-0/+35
Change-Id: I234ed47b45c02abc1f7e496ba31baee5d02f32be Issue-ID: MULTICLOUD-251 Signed-off-by: Huang Haibin <haibin.huang@intel.com>
2018-09-11Return the default tenant in case of no privilegeBin Yang1-1/+22
Change-Id: Ic4b2e6bb787ba4075a906e70c28ef42289255345 Issue-ID: MULTICLOUD-356 Signed-off-by: Bin Yang <bin.yang@windriver.com>
2018-09-04Fix return code errorBin Yang1-1/+1
Change-Id: I9b8ba9bb19d05328ec7c57015a7e3c950d683d9c Issue-ID: MULTICLOUD-265 Signed-off-by: Bin Yang <bin.yang@windriver.com>
2018-09-03Enable cloud region decommissionBin Yang1-2/+142
Change-Id: I3b8171e6376eb144af6218d8242c20dc07543ea3 Issue-ID: MULTICLOUD-265 Signed-off-by: Bin Yang <bin.yang@windriver.com>
2018-09-03Fix bug of region discoveryBin Yang1-0/+1
Change-Id: I006fb0f8ab7a644369d0a03ed1b563db3f52afd7 Issue-ID: MULTICLOUD-311 Signed-off-by: Bin Yang <bin.yang@windriver.com>
2018-09-03Add registration OvS-DPDKHuang Haibin1-15/+27
We need to manualy register information of OvS-DPDK to AAI in ESR system. Then we can get Ovs-DPDK from AAI and use it. Change-Id: I4ada7192e2364b2d0f7667ff59d80d413db7bdad Issue-ID: MULTICLOUD-251 Signed-off-by: Huang Haibin <haibin.huang@intel.com>
2018-08-27Add HPA registration to newton_baseHuang Haibin1-0/+292
Change-Id: I544c662bdf5850134b0d4a5028c6617013a86036 Issue-ID: MULTICLOUD-251 Signed-off-by: Huang Haibin <haibin.huang@intel.com>
2018-08-24Add server action api for openstack newtonfujinhua1-0/+32
Change-Id: I61cd2de2db764551e33e52f10e615a02bdcc65b3 Issue-ID: MULTICLOUD-332 Signed-off-by: fujinhua <fu.jinhua@zte.com.cn>