summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2018-07-04Add logic to handle single backlog for ocataYun Huang2-1/+98
Dispatch the specific backlog to corresponding handler caching the runtime state into cache Change-Id: I3cd54f5e0b15210cf90c8d14b0ec423af858c0ac Issue-ID: MULTICLOUD-230 Signed-off-by: Yun Huang <yun.huang@windriver.com>
2018-07-04pass backlogs via cache and verify for ocataYun Huang2-4/+71
Change-Id: I8067207656e52497d989c1cb43c10b7493949257 Issue-ID: MULTICLOUD-230 Signed-off-by: Yun Huang <yun.huang@windriver.com>
2018-07-04Add the vesagent worker scheduler as celery taskYun Huang2-0/+59
The vesagent configurion logic will trigger the vesagent worker scheduler via celery Change-Id: I14aba0c411bdfaae1a9a993e16fbdb8fde485bce Issue-ID: MULTICLOUD-230 Signed-off-by: Yun Huang <yun.huang@windriver.com>
2018-07-04Enable celery for vesagent workers for ocataYun Huang5-1/+55
Change-Id: Ibf07426ec3fa8b9c8b866d95a1e49537094cef70 Issue-ID: MULTICLOUD-230 Signed-off-by: Yun Huang <yun.huang@windriver.com>
2018-07-04Resolve tenant name to id&server name for ocataYun Huang1-3/+39
Change-Id: Iea6b8e3cc21d19c02831fd0b36482ce6d7199040 Issue-ID: MULTICLOUD-230 Signed-off-by: Yun Huang <yun.huang@windriver.com>
2018-07-04Add logic to backlog for VM fault event for ocataYun Huang3-0/+103
place the MultiCloud proxy endpoint into backlog so later the worker will query VM status via MultiCloud Change-Id: Id9cfba9c411b6aecf23f0dfd221c68d5a806f076 Issue-ID: MULTICLOUD-230 Signed-off-by: Yun Huang <yun.huang@windriver.com>
2018-07-04Add outer loop to build&store backlogs for ocataYun Huang1-1/+69
Post action will build and store all backlogs pertaining to a single VIM instance Change-Id: I96547797a9e61d4082d94e6ed6e5a7e4e229d2db Issue-ID: MULTICLOUD-230 Signed-off-by: Yun Huang <yun.huang@windriver.com>
2018-07-04Add API to configure VESagent for ocataYun Huang3-0/+222
VESagent is designed to monitor FACAPS and report to VES Change-Id: I1f6239ec7ba4683a58335d1eaafc71806a80cfe3 Issue-ID: MULTICLOUD-230 Signed-off-by: Yun Huang <yun.huang@windriver.com>
2018-07-04Fix UT data for discover HPA flavorYun Huang1-8/+1
Change-Id: I797257978b1acf6a842281f7e2cb0e4ccc4d8edd Issue-ID: MULTICLOUD-230 Signed-off-by: Yun Huang <yun.huang@windriver.com>
2018-07-04UT to discover HPA flavorYun Huang1-0/+38
Change-Id: Ifda7cc6930e743fbfe0366ee45280738c4d08ddd Issue-ID: MULTICLOUD-230 Signed-off-by: Yun Huang <yun.huang@windriver.com>
2018-07-04UT for registration flavorsYun Huang1-0/+97
Change-Id: I687bd65d59d928f97fa0a09fa889c01c5a6fe11f Issue-ID: MULTICLOUD-230 Signed-off-by: Yun Huang <yun.huang@windriver.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-12Fix project environmentVictor Morales1-1/+2
The PROJECT environment seems to be provided by Jenkins job, as result that the default "openstack" value is used during the creation of the image. This behaviour causes different names. This change fixes the default value for the PROJECT enviroment variable. Change-Id: Ice521ecf58b4fe111553561e60dae92172248025 Signed-off-by: Victor Morales <victor.morales@intel.com> Issue-ID: MULTICLOUD-242
2018-06-12Provide default value for AAI_SERVICE_URLYun Huang1-1/+5
In the MultiCloud HPA CSIT, the setup.sh script requires to control the value of AAI_SERVICE_URL in order to avoid the use of certificates. when AAI_SERVICE_URL not be set by CSIT, the system need to provide a default value. Change-Id: I70dd7074162f75d2d26aa6580da454ea369910ce Issue-ID: MULTICLOUD-244 Signed-off-by: Yun Huang <yun.huang@windriver.com>
2018-06-12Bump version after Beijing releaseYun Huang8-12/+12
Bump version from 1.1.2 to 1.2.0 Change-Id: I72d8f5ba7fef9546120222f1d76133cc1fbf8341 Issue-ID: MULTICLOUD-245 Signed-off-by: Yun Huang <yun.huang@windriver.com>
2018-06-05Fix check capacity exception for newton and ocatav1.1.22.0.0-ONAP2.0.0-ONAPYun Huang3-21/+53
Change-Id: I6ed7722ee0a8e4148d9a0ed9414c736187bdedf3 Issue-ID: MULTICLOUD-168 Signed-off-by: Yun Huang <yun.huang@windriver.com>
2018-06-05Remove inactive code for imagefile APIYun Huang6-651/+0
Change-Id: Ifa8f3bdf763bbf9e15c1de904a8708065d03ceb3 Issue-ID: MULTICLOUD-207 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-06-04Fix registration limitation on tenant discoveryYun Huang1-1/+21
Populate the tenant information from token response Change-Id: I52092d2c3021f54b4b6915373f14e4f45547f6d5 Issue-ID: MULTICLOUD-168 Signed-off-by: Yun Huang <yun.huang@windriver.com>
2018-05-30Enable swagger UI for proxied API of capacityYun Huang2-0/+72
Change-Id: I429c77dafd14a639ff607272ce86a37dd27f3c83 Issue-ID: MULTICLOUD-240 Signed-off-by: Yun Huang <yun.huang@windriver.com>
2018-05-29Enable swagger UI for proxied APIYun Huang3-1/+335
Change-Id: I46b561f5547d2c11cfd45bfc0ad0f06ace53c5d5 Issue-ID: MULTICLOUD-240 Signed-off-by: Yun Huang <yun.huang@windriver.com>
2018-05-24Fix non-administator check capacity exceptionYun Huang1-7/+20
Change-Id: I6c27713a1c36abeacb37ab6012ec23587a262e5d Issue-ID: MULTICLOUD-168 Signed-off-by: Yun Huang <yun.huang@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-17Fix logger setting errorBin Yang3-3/+3
Change-Id: I3cca48226d5a18bfb650aa11c609d83d5fdc2456 Issue-ID: MULTICLOUD-235 Signed-off-by: Bin Yang <bin.yang@windriver.com>
2018-05-17Merge "Fix bug of list server api"Bin Hu2-48/+49
2018-05-17Merge "Fix hpa-attribute-value string format for ocata"Bin Hu1-27/+64
2018-05-17Merge "Add console logging output"Bin Hu6-36/+21
2018-05-17Fix bug of list server apiYun Huang2-48/+49
fix the bug to convert metadata Change-Id: I5a18780314ae0da16d3307dde3fdc30870666abe Issue-ID: MULTICLOUD-233 Signed-off-by: Yun Huang <yun.huang@windriver.com>
2018-05-17Fix hpa-attribute-value string format for ocataYun Huang1-27/+64
Change-Id: I4dd803f986a08fd5fbbe34dd3dc1511d3cc9c501 Issue-ID: MULTICLOUD-232 Signed-off-by: Yun Huang <yun.huang@windriver.com>
2018-05-17Fix hpa-attribute-value string format for newtonYun Huang1-27/+62
Change-Id: I2541d7d4ff05bc0d6858f3573876c75394381003 Issue-ID: MULTICLOUD-232 Signed-off-by: Yun Huang <yun.huang@windriver.com>
2018-05-16Fix AAI_SERVICE_URL env in Ocata DockerfileVictor Morales1-1/+1
The AAI_SERVICE_URL environment variable requires to be set into the Dockerfile. This change provides an empty default value. Change-Id: I4c10c1b877af1b725e57fe4c0f04eebe8c60ae6f Signed-off-by: Victor Morales <victor.morales@intel.com> Issue-ID: MULTICLOUD-214