summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
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
2018-05-16Change the AAI call for query cloud regionBin Yang1-13/+16
This is to break the single AAI call into two to reduce the data exchanged in case cloud region assoicated with so many child objects Change-Id: I8d23764be1da82d8298f84cbe1a95427dc26c333 Issue-ID: MULTICLOUD-232 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-16Fix hpa-attribute-value string formatYun Huang1-24/+63
Change-Id: I476a189c621b48a8d48becce50c9c6fe1102318c Issue-ID: MULTICLOUD-232 Signed-off-by: Yun Huang <yun.huang@windriver.com>
2018-05-15Merge "Fix imagefile url for Titanium Cloud"Bin Yang1-1/+1
2018-05-15Fix imagefile url for Titanium CloudYun Huang1-1/+1
Change-Id: Id8207080d7f5971cc56dfffbb0d38f6d3e87bcd0 Issue-ID: MULTICLOUD-207 Signed-off-by: Yun Huang <yun.huang@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-15Enable celery for vesagent workersBin Yang5-0/+53
Change-Id: Ibd44dc86d0bc5ce203043ed18d5e968472462b8f 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 Yang3-0/+222
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>
2018-05-15Correct HPA feature cpuPinning nameYun Huang1-1/+1
Change-Id: I2f14a7aad156b892ae7f7ee06ea929adc09ba35e Issue-ID: MULTICLOUD-231 Signed-off-by: Yun Huang <yun.huang@windriver.com>
2018-05-14Merge "Fix hpa registration cloud_extra_info format"Bin Yang1-0/+7
2018-05-14Fix ovsdpdk registration version nameHaibin Huang1-1/+1
Change-Id: I8c7797c2a8c22e0107cf5805d5fae609afc75561 Issue-ID: MULTICLOUD-206 Signed-off-by: Haibin Huang <haibin.huang@intel.com>
2018-05-14Fix hpa registration cloud_extra_info formatHaibin Huang1-0/+7
Change-Id: Ie597bc2b93a7538138558a38b33e1014c2364687 Issue-ID: MULTICLOUD-206 Signed-off-by: Haibin Huang <haibin.huang@intel.com>
2018-05-11Add console logging outputVictor Morales6-37/+22
The log.yml is configured to place the log entries in a file to be collected by the ONAP logging project. But for containerized deployments, it's better to place then into the standard output. This commit adds the console log handler. Change-Id: If325780c1739490adeb731dfbd13e2f1b8a9e3f4 Signed-off-by: Victor Morales <victor.morales@intel.com> Issue-ID: MULTICLOUD-214