summaryrefslogtreecommitdiffstats
path: root/ocata
AgeCommit message (Collapse)AuthorFilesLines
2018-09-11Test case for vesagent getBacklogsOneVIM in ocataHuang Haibin1-0/+10
Change-Id: I1e7693c1781080d7011a6156b7380c0670acf92c Issue-ID: MULTICLOUD-230 Signed-off-by: Huang Haibin <haibin.huang@intel.com>
2018-09-11Test case for vesagent delete API in ocataHuang Haibin1-0/+13
Change-Id: Ie916b35ae80b5dea68dbe648e5409202449a3673 Issue-ID: MULTICLOUD-230 Signed-off-by: Huang Haibin <haibin.huang@intel.com>
2018-09-11Add test case for vesagent_ctrl in ocataHuang Haibin1-0/+16
Change-Id: I3e4541b2e4ec55aa8cb5942a3dd979b1256042cc Issue-ID: MULTICLOUD-230 Signed-off-by: Huang Haibin <haibin.huang@intel.com>
2018-09-03Enable cloud region decommissionBin Yang1-12/+12
Change-Id: I3b8171e6376eb144af6218d8242c20dc07543ea3 Issue-ID: MULTICLOUD-265 Signed-off-by: Bin Yang <bin.yang@windriver.com>
2018-08-28Merge "Bump oparent version to 1.2.0"Victor Morales1-1/+1
2018-08-27Bump oparent version to 1.2.0Gary Wu1-1/+1
This change was submitted by script and may include additional whitespace or formatting changes. Change-Id: I4de0c691526147da1a898ce4e46be9f716d87e77 Issue-ID: INT-619 Signed-off-by: Gary Wu <gary.i.wu@huawei.com>
2018-08-27Delete Ocata plugin HPA's registration flowHuang Haibin1-340/+0
Use Newton_base HPA's registration flow Change-Id: I7010cf0175112ac30f575589add14d0ab3c172df Issue-ID: MULTICLOUD-251 Signed-off-by: Huang Haibin <haibin.huang@intel.com>
2018-08-22API upgradeing for ocataHuang Haibin6-0/+114
Change-Id: I23d4bad7429ff367128c39bd41f9bad81e426349 Issue-ID: MULTICLOUD-297 Signed-off-by: Huang Haibin <haibin.huang@intel.com>
2018-08-17multi-region discoveryBin Yang2-8/+14
Decouple the openstack region id from cloud-region-id Change-Id: If4bfacf05d87ca4bc97a485d4153f4f379ad451a Issue-ID: MULTICLOUD-311 Signed-off-by: Bin Yang <bin.yang@windriver.com>
2018-07-30Remove EPA attributeDileep Ranganathan10-122/+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-04Add ocata UT for vesagent tasks_processOneBacklogYun Huang1-0/+31
Change-Id: Ic7bde6002c7ad752120c08f4b839bf1e9e66257f Issue-ID: MULTICLOUD-230 Signed-off-by: Yun Huang <yun.huang@windriver.com>
2018-07-04Add UT for vesagent tasks_processBacklogsOfOneVIMYun Huang1-0/+24
Change-Id: I9abf1cb8d2a8fb977e10a14d6ba2dd700d8c8107 Issue-ID: MULTICLOUD-230 Signed-off-by: Yun Huang <yun.huang@windriver.com>
2018-07-04Add ocata UT for vesagent tasks_processBacklogsYun Huang1-0/+12
Change-Id: I721ac5ba404550a076496e5bf51c697b79e1283d Issue-ID: MULTICLOUD-230 Signed-off-by: Yun Huang <yun.huang@windriver.com>
2018-07-04Add ocata UT for tasks_scheduleBacklogsYun Huang1-0/+70
Change-Id: I06f296501d3fa4400a52609b148eb53356810a5e Issue-ID: MULTICLOUD-230 Signed-off-by: Yun Huang <yun.huang@windriver.com>
2018-07-04Fix eventId to conform VES specs for ocataYun Huang1-2/+2
Change-Id: Ia3fa37736a56fa6a1eb37ee76eb7ba2114fb7b1e Issue-ID: MULTICLOUD-238 Signed-off-by: Yun Huang <yun.huang@windriver.com>
2018-07-04VESagent monitors all VMs under tenant for ocataYun Huang2-29/+52
When no server_id or source is provided Report batch event in case all VMs are monitored Change-Id: If79fcdbb9385c3a7511694c87811a7955af06cf2 Issue-ID: MULTICLOUD-238 Signed-off-by: Yun Huang <yun.huang@windriver.com>
2018-07-04Fix incompatible fields of reported eventsYun Huang1-10/+21
specificProblem should match Holmes Rules eventId should be unique for each event Change-Id: Ic76fc73621de614760fa0c5c40c5c3503d0a779c Issue-ID: MULTICLOUD-238 Signed-off-by: Yun Huang <yun.huang@windriver.com>
2018-07-04correct the timestamp granularityYun Huang1-3/+14
Change-Id: Idd4bfc58e09d48ffb8230ae7e8639f0dd078a724 Issue-ID: MULTICLOUD-236 Signed-off-by: Yun Huang <yun.huang@windriver.com>
2018-07-04Change logs to reduce uncessary info outputYun Huang1-10/+13
Change-Id: Idd89d39542e0c2430d71244f3d5753ccd74fa790 Issue-ID: Issue-ID: MULTICLOUD-232 Signed-off-by: Yun Huang <yun.huang@windriver.com>
2018-07-04Fix bugs for GET API and tasks for ocataYun Huang3-7/+11
Change-Id: Ica14eb1cc8735f7cbae8b5226f8630c79317d2e7 Issue-ID: Issue-ID: MULTICLOUD-232 Signed-off-by: Yun Huang <yun.huang@windriver.com>
2018-07-04Add ocata UT for VESagent GET APIYun Huang1-0/+60
Change-Id: Ie6075fe0f2002a1c2de41fcd5538524ac344112c Issue-ID: MULTICLOUD-230 Signed-off-by: Yun Huang <yun.huang@windriver.com>
2018-07-04Add DELETE API to remove all backlogs for ocataYun Huang1-0/+53
And this will bring down the vesagent workers whenever there is no backlogs of any VIM any more Change-Id: Idab29d10666fe4447d84ac9baaadce6a6f7d16a7 Issue-ID: MULTICLOUD-230 Signed-off-by: Yun Huang <yun.huang@windriver.com>
2018-07-04Add GET API to retrieve config&backlogs for ocataYun Huang1-1/+46
Change-Id: I9410ee7ebf10c2b915d42e2cba3c0a03f2427840 Issue-ID: MULTICLOUD-230 Signed-off-by: Yun Huang <yun.huang@windriver.com>
2018-07-04Encode the collected VM data into VES for ocataYun Huang1-2/+104
Change-Id: I973475f6db322e5d403d2171f781b327a0ca37f1 Issue-ID: MULTICLOUD-230 Signed-off-by: Yun Huang <yun.huang@windriver.com>
2018-07-04Publish the event to VES for ocataYun Huang2-1/+64
Change-Id: Icf26c87725312554b0867a8fb8dcc8fb3e40d9da Issue-ID: MULTICLOUD-230 Signed-off-by: Yun Huang <yun.huang@windriver.com>
2018-07-04collect VM status of the backlog for ocataYun Huang1-0/+43
Change-Id: If81ab2d0a625618386f703a32293e506e0fa8348 Issue-ID: MULTICLOUD-230 Signed-off-by: Yun Huang <yun.huang@windriver.com>
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-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 Huang2-3/+3
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 Huang1-7/+23
Change-Id: I6ed7722ee0a8e4148d9a0ed9414c736187bdedf3 Issue-ID: MULTICLOUD-168 Signed-off-by: Yun Huang <yun.huang@windriver.com>
2018-06-05Remove inactive code for imagefile APIYun Huang2-217/+0
Change-Id: Ifa8f3bdf763bbf9e15c1de904a8708065d03ceb3 Issue-ID: MULTICLOUD-207 Signed-off-by: Yun Huang <yun.huang@windriver.com>
2018-05-17Fix logger setting errorBin Yang1-1/+1
Change-Id: I3cca48226d5a18bfb650aa11c609d83d5fdc2456 Issue-ID: MULTICLOUD-235 Signed-off-by: Bin Yang <bin.yang@windriver.com>
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 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-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-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
2018-05-08Add AAI_SERVICE_URL environment variableVictor Morales2-2/+3
The settings.py file uses the values of AAI_ADDR and AAI_PORT to create AAI_SERVICE_URL config value. This last value uses a template which contains the https protocol. Using secure protocols are good practice for production deployments but can be a restriction during testing. This change allows to modify this value. Change-Id: Idc7b0b709caf79e03c2f66774ef780223b913946 Signed-off-by: Victor Morales <victor.morales@intel.com> Issue-ID: MULTICLOUD-214
2018-05-04Add logging AOP middleware for ocataYun Huang3-1/+67
Change-Id: I62d7397306805425559f0b2bb4829518d0ccf276 Issue-ID: MULTICLOUD-220 Signed-off-by: Yun Huang <yun.huang@windriver.com>