summaryrefslogtreecommitdiffstats
path: root/windriver/titanium_cloud/vesagent
AgeCommit message (Collapse)AuthorFilesLines
2018-08-14API upgrading for vesagentBin Yang1-1/+30
Change-Id: I7613c2856e37736f2410de656bb7ae52ac4786e1 Issue-ID: MULTICLOUD-297 Signed-off-by: Bin Yang <bin.yang@windriver.com>
2018-08-14Upgrade API for capacity_checkBin Yang1-1/+1
Change-Id: If53c734294907eb4a4d108a2c7e81d537c53eb8f Issue-ID: MULTICLOUD-297 Signed-off-by: Bin Yang <bin.yang@windriver.com>
2018-08-03Upgrade API for vesagentBin Yang1-0/+21
first try to add API v1 version Change-Id: Ic7511ce3c41792a3fa4a4ede84dd04483997033b Issue-ID: MULTICLOUD-297 Signed-off-by: Bin Yang <bin.yang@windriver.com>
2018-07-30Remove EPA attributeDileep Ranganathan2-2/+0
Remove EPA property from multicloud as it is repaced by HPA attributes. Change-Id: I96e2ebcc60ac55cb0f0559607de919da410f66b1 Issue-ID: AAI-1150 Signed-off-by: Dileep Ranganathan <dileep.ranganathan@intel.com>
2018-07-04UT for VESagent process event emptyYun Huang1-0/+18
Change-Id: Idcb6a75a2be8acf1e185ea52b1844b7f2be7f251 Issue-ID: MULTICLOUD-230 Signed-off-by: Yun Huang <yun.huang@windriver.com>
2018-07-04UT for vesagent config without source nameYun Huang1-0/+14
Change-Id: I0f0047fe3d571bf7f539bf221c3a860a328eed54 Issue-ID: MULTICLOUD-230 Signed-off-by: Yun Huang <yun.huang@windriver.com>
2018-07-04UT for vesagent config without server idYun Huang1-0/+15
Change-Id: I3148d9318839cddb8f484ca18bd72ac5b43a0891 Issue-ID: MULTICLOUD-230 Signed-off-by: Yun Huang <yun.huang@windriver.com>
2018-07-04UT for vesagent failure caseYun Huang1-0/+17
Change-Id: I61c7bb5d7c1407be722ff560c04741fc5cb62b81 Issue-ID: MULTICLOUD-230 Signed-off-by: Yun Huang <yun.huang@windriver.com>
2018-07-04UT for vesagent event logicYun Huang1-0/+18
Change-Id: I6fde82020371985d111b13f980144d3b4e6bc0ee Issue-ID: MULTICLOUD-230 Signed-off-by: Yun Huang <yun.huang@windriver.com>
2018-06-15Test case for processBacklog_fault_vmYun Huang1-1/+33
Change-Id: I1fabaa3faf0d84a493af2d2ff1f14f42335aebdf Issue-ID: MULTICLOUD-230 Signed-off-by: Yun Huang <yun.huang@windriver.com>
2018-06-15Test case for buildBacklog_fault_vmYun Huang2-8/+27
Change-Id: I69b7e40bb7dd9a87f56df1c7619e35b9dbf07de4 Issue-ID: MULTICLOUD-230 Signed-off-by: Yun Huang <yun.huang@windriver.com>
2018-06-15Test case for get_epoch_now_usecondYun Huang1-0/+36
Change-Id: I87789b3924cf4d6c914485c815e274a636daf6af Issue-ID: MULTICLOUD-230 Signed-off-by: Yun Huang <yun.huang@windriver.com>
2018-06-15Test case for test_buildBacklogYun Huang2-2/+23
Change-Id: Ic77d4ce1c1c76c853dd89d5c402f0df5d64887c2 Issue-ID: MULTICLOUD-230 Signed-off-by: Yun Huang <yun.huang@windriver.com>
2018-06-15Test case for buildBacklogsOneVIMYun Huang1-0/+29
Change-Id: I50ae92ecc09652f09fd6f5f2223bf2461e4c0e39 Issue-ID: MULTICLOUD-230 Signed-off-by: Yun Huang <yun.huang@windriver.com>
2018-06-15Test case for clearBacklogsOneVIMYun Huang1-0/+28
Change-Id: I5ca1a888187751d5487705f2152e5694caf43703 Issue-ID: MULTICLOUD-230 Signed-off-by: Yun Huang <yun.huang@windriver.com>
2018-06-15Test case for vesagent getBacklogsOneVIMYun Huang1-0/+10
Change-Id: I542e95fc830d7f64d4e1cdc9dfa5436efbea72f4 Issue-ID: MULTICLOUD-230 Signed-off-by: Yun Huang <yun.huang@windriver.com>
2018-06-15Test case for vesagent delete APIYun Huang1-0/+13
Change-Id: I6c9de8c5b3d797f63413c543665880e9948f7f12 Issue-ID: MULTICLOUD-230 Signed-off-by: Yun Huang <yun.huang@windriver.com>
2018-06-15Add test case for vesagent_ctrlYun Huang1-1/+17
Change-Id: I733892bdb499d404761cf900ad44fc9ca0ad0133 Issue-ID: MULTICLOUD-230 Signed-off-by: Yun Huang <yun.huang@windriver.com>
2018-06-15Add UT for vesagent tasks_processOneBacklogYun Huang1-0/+31
Change-Id: I12a0dfea32ffc97422db475807c2c3f1ac73935e Issue-ID: MULTICLOUD-230 Signed-off-by: Yun Huang <yun.huang@windriver.com>
2018-06-15Add UT for vesagent tasks_processBacklogsOfOneVIMYun Huang1-0/+24
Change-Id: I8db5e8971a48fd25f43a5cbcb32292d7871a1a32 Issue-ID: MULTICLOUD-230 Signed-off-by: Yun Huang <yun.huang@windriver.com>
2018-06-15Add UT for vesagent tasks_processBacklogsYun Huang1-0/+12
Change-Id: Icdaea1e1d1c0cf7f10b4e64b53a2616c6c3abdea Issue-ID: MULTICLOUD-230 Signed-off-by: Yun Huang <yun.huang@windriver.com>
2018-06-15Add UT for tasks_scheduleBacklogsYun Huang1-0/+70
Change-Id: I2ccc3eaf483a91d702cb35e145cf3a3389393d37 Issue-ID: MULTICLOUD-230 Signed-off-by: Yun Huang <yun.huang@windriver.com>
2018-06-05Fix eventId to conform VES specsBin Yang1-2/+2
Change-Id: Ia1eae86bd56e99cc825e2bbc03dab33921d625f0 Issue-ID: MULTICLOUD-238 Signed-off-by: Bin Yang <bin.yang@windriver.com>
2018-05-23VESagent monitors all VMs under a tenantBin Yang2-29/+52
When no server_id or source is provided Report batch event in case all VMs are monitored Change-Id: Id8d65f53d9dd1a8f4ac93a62846ab6e0c5c19409 Issue-ID: MULTICLOUD-238 Signed-off-by: Bin Yang <bin.yang@windriver.com>
2018-05-21Fix incompatible fields of reported eventsBin Yang1-10/+21
specificProblem should match Holmes Rules eventId should be unique for each event Change-Id: I8f523fe3f194257aea556918020900cf717da167 Issue-ID: MULTICLOUD-238 Signed-off-by: Bin Yang <bin.yang@windriver.com>
2018-05-19correct the timestamp granularityBin Yang1-3/+14
Change-Id: I6a7f4046fa2f28f4a0dc93becf28926bcbe52dbc Issue-ID: MULTICLOUD-236 Signed-off-by: Bin Yang <bin.yang@windriver.com>
2018-05-16Change logs to reduce uncessary info outputBin Yang1-10/+13
Change-Id: I2f2309316c048c9be98a35c72730a02a795329dc Issue-ID: Issue-ID: MULTICLOUD-232 Signed-off-by: Bin Yang <bin.yang@windriver.com>
2018-05-16Fix bugs for GET API and tasksBin Yang3-7/+11
Change-Id: If1748109359b9180aac46e14d3e4261def171460 Issue-ID: Issue-ID: MULTICLOUD-232 Signed-off-by: Bin Yang <bin.yang@windriver.com>
2018-05-15Add UT for VESagent GET APIBin Yang1-0/+60
Change-Id: I5271c50322f55296e5ca869da084ab5b427d614c Issue-ID: MULTICLOUD-230 Signed-off-by: Bin Yang <bin.yang@windriver.com>
2018-05-15Add DELETE API to remove all backlogs of a VIMBin Yang1-0/+53
And this will bring down the vesagent workers whenever there is no backlogs of any VIM any more Change-Id: I21d2229727d7bf6af119c072e9ca7ce9ce252c8d Issue-ID: MULTICLOUD-230 Signed-off-by: Bin Yang <bin.yang@windriver.com>
2018-05-15Add GET API to retrieve config and backlogsBin Yang1-1/+46
Change-Id: I3fb4063ab6346b51c36b29f82202f5e2fe1b2d8a Issue-ID: MULTICLOUD-230 Signed-off-by: Bin Yang <bin.yang@windriver.com>
2018-05-15Encode the collected VM data into VES eventBin Yang1-2/+104
Change-Id: Icbf7408c627fe47e60a8bf2b3b45cb20baa5b313 Issue-ID: MULTICLOUD-230 Signed-off-by: Bin Yang <bin.yang@windriver.com>
2018-05-15Publish the event to VESBin Yang2-1/+64
Change-Id: I5ab561cd67a7d340d6e7828fd26b339742c10e36 Issue-ID: MULTICLOUD-230 Signed-off-by: Bin Yang <bin.yang@windriver.com>
2018-05-15collect VM status according to the backlogBin Yang1-0/+43
Change-Id: I21c96831e6fc9bd6fcf76d3717054db2257815c6 Issue-ID: MULTICLOUD-230 Signed-off-by: Bin Yang <bin.yang@windriver.com>
2018-05-15Add logic to handle single backlogBin Yang2-1/+98
Dispatch the specific backlog to corresponding handler caching the runtime state into cache Change-Id: I5edd682c8138532b496e281c5e3cf4274d3227c0 Issue-ID: MULTICLOUD-230 Signed-off-by: Bin Yang <bin.yang@windriver.com>
2018-05-15pass backlogs via cache and verify thatBin Yang2-4/+71
Change-Id: I5ea05e29290a23c290d3e1deb7ef637b06e7c6b7 Issue-ID: MULTICLOUD-230 Signed-off-by: Bin Yang <bin.yang@windriver.com>
2018-05-15Add the vesagent worker scheduler as celery taskBin Yang2-0/+59
The vesagent configurion logic will trigger the vesagent worker scheduler via celery Change-Id: I2504f2ef2672c25416062f63ffdfc5495b9200b4 Issue-ID: MULTICLOUD-230 Signed-off-by: Bin Yang <bin.yang@windriver.com>
2018-05-15Resolve tenant name to id and server name to idBin Yang1-3/+39
Change-Id: I8ba7ca6a7e06ce24c3485a2c719df4c8e31f8b34 Issue-ID: MULTICLOUD-230 Signed-off-by: Bin Yang <bin.yang@windriver.com>
2018-05-15Add logic to build backlog for VM fault eventBin Yang3-0/+103
place the MultiCloud proxy endpoint into backlog so later the worker will query VM status via MultiCloud Change-Id: I9cdfe194698dc362c8936c39ca16b3835af9f5f4 Issue-ID: MULTICLOUD-230 Signed-off-by: Bin Yang <bin.yang@windriver.com>
2018-05-15Add outer loop to build and store backlogsBin Yang1-1/+69
Post action will build and store all backlogs pertaining to a single VIM instance Change-Id: I1a48c9be635b8d118391e374dcda1cb3889889a2 Issue-ID: MULTICLOUD-230 Signed-off-by: Bin Yang <bin.yang@windriver.com>
2018-05-15Add API to configure VESagentBin Yang2-0/+218
VESagent is designed to monitor FACAPS and report to VES Change-Id: I84e7cf3d5ddb33b2cac359805f8b644278f55748 Issue-ID: MULTICLOUD-230 Signed-off-by: Bin Yang <bin.yang@windriver.com>