-
Bug
-
Resolution: Done
-
High
-
Beijing Release
-
None
-
None
A request is sent to OOF as below:
2018-05-31T09:10:35.321Z|17fe5575-126a-4a5b-bd8c-a16d7705ac55|OOF Request is: {
"requestInfo": {
"transactionId": "17fe5575-126a-4a5b-bd8c-a16d7705ac55",
"requestId": "17fe5575-126a-4a5b-bd8c-a16d7705ac55",
"callbackUrl": "http://mso.api.simpledemo.openecomp.org:8080/workflows/messages/message/oofResponse/17fe5575-126a-4a5b-bd8c-a16d7705ac55",
"sourceId": "so",
"requestType": "create", "numSolutions": 1,
"optimizers": ["placement"],
"timeout": 600
},
"placementInfo": {
"requestParameters": {
"customerLatitude": "32.897480",
"customerLongitude": "97.040443",
"customerName": "some_company"
}, "subscriberInfo": {
"globalSubscriberId": "SDN-ETHERNET-INTERNET",
"subscriberName": "Kaneohe",
"subscriberCommonSiteId": ""
},
"placementDemands": [
{
"resourceModuleName": "vBRG",
"serviceResourceId": "f34d622b-f206-4a72-a29f-0568e10bd4b5",
"tenantId": "",
"resourceModelInfo": {
"modelInvariantId": "no-resourceModelInvariantId",
"modelVersionId": "no-resourceModelVersionId",
"modelName": "",
"modelType": "",
"modelVersion": "",
"modelCustomizationName": ""
}
}, {
"resourceModuleName": "vgMuxAR",
"serviceResourceId": "9553cdc6-a127-4f55-915b-0605dc383780",
"tenantId": "",
"resourceModelInfo": {
"modelInvariantId": "565d5b75-11b8-41be-9991-ee03a0049159",
"modelVersionId": "61414c6c-6082-4e03-9824-bf53c3582b78",
"modelName": "",
"modelType": "",
"modelVersion": "",
"modelCustomizationName": ""
}
}, {
"resourceModuleName": "vGW",
"serviceResourceId": "5569266a-31e8-43f2-a01f-01449b194a80",
"tenantId": "",
"resourceModelInfo": {
"modelInvariantId": "10fff9d1-6a8c-4292-8992-f4ff576e42d9",
"modelVersionId": "054a25c4-d601-4b43-9cd8-fd235841fd5d",
"modelName": "vcpevsp_vgw_0530_hpa",
"modelType": "",
"modelVersion": "1.0",
"modelCustomizationName": ""
}
}
]
},
"serviceInfo": {
"serviceInstanceId": "4ce74e23-2f42-4f6b-8a07-532d83cd44ae",
"serviceName": "vcpe1",
"modelInfo": {
"modelType": "",
"modelInvariantId": "31390ef2-94a9-4cef-a09a-08f7d66540c9",
"modelVersionId": "1a32426f-3616-47d0-96eb-b20cc7fff9be",
"modelName": "vcpesvc_rescust_0530_hpa",
"modelVersion": "1.0",
"modelCustomizationName": ""
}
}
}
The response from OOF does not include flavor_labels and causes SO to not use correct flavors for HPA when homing.
2018-05-31T09:10:50.517Z|17fe5575-126a-4a5b-bd8c-a16d7705ac55|[WORKFLOW-MESSAGE] Received workflow message type='oofResponse' correlator='17fe5575-126a-4a5b-bd8c-a16d7705ac55' contentType='application/json' message={
"requestStatus":"completed",
"transactionId":"",
"solutions":{
"placementSolutions":[
[
{
"assignmentInfo":[
{
"value":"true",
"key":"isRehome"
},
{
"value":"att_aic",
"key":"locationType"
},
{
"value":"RegionOne",
"key":"locationId"
},
{
"value":"",
"key":"aic_version"
},
{
"value":"clli1",
"key":"cloudClli"
},
{
"value":"CloudOwner2",
"key":"cloudOwner"
}
],
"solution":{
"identifiers":[
"RegionOne"
],
"identifierType":"cloudRegionId",
"cloudOwner":"CloudOwner2"
},
"resourceModuleName":"vGW",
"serviceResourceId":""
},
{
"assignmentInfo":[
{
"value":"true",
"key":"isRehome"
},
{
"value":"att_aic",
"key":"locationType"
},
{
"value":"vcpe_vnf_vcpevsp_vgmux_0521no_hpa_201805222207",
"key":"vnfHostName"
},
{
"value":"RegionOne",
"key":"locationId"
},
{
"value":"1",
"key":"aic_version"
},
{
"value":"clli1",
"key":"cloudClli"
},
{
"value":"vcpe_vnf_vcpevsp_vgmux_0521no_hpa_201805222207",
"key":"vnfHostName"
},
{
"value":"CloudOwner",
"key":"cloudOwner"
}
],
"solution":{
"identifiers":[
"8f6ce8ab-4363-4df4-b7a8-cf6dcc092d11"
],
"identifierType":"serviceInstanceId",
"cloudOwner":"CloudOwner"
},
"resourceModuleName":"vgMuxAR",
"serviceResourceId":""
}
]
]
},
"requestId":"17fe5575-126a-4a5b-bd8c-a16d7705ac55",
"statusMessage":""
}
HPA Policy:
{
"policyConfigMessage": "Config Retrieved! ",
"policyConfigStatus": "CONFIG_RETRIEVED",
"type": "JSON",
"config": "{\"service\":\"hpaPolicy\",\"policyName\":\"OSDF_R2.hpa_policy_vGW_2\",\"description\":\"HPA policy for vGW\",\"templateVersion\":\"OpenSource.version.1\",\"version\":\"test1\",\"priority\":\"3\",\"riskType\":\"test\",\"riskLevel\":\"2\",\"guard\":\"False\",\"content\":{\"resources\":[\"vG\"],\"identity\":\"hpaPolicy_vGW\",\"policyScope\":[\"vcpe1\",\"us\",\"international\",\"ip\",\"vgw\"],\"policyType\":\"hpaPolicy\",\"flavorFeatures\":[{\"flavorLabel\":\"flavor_label_vm_01\",\"flavorProperties\":[{\"hpa-feature\":\"basicCapabilities\",\"mandatory\":\"True\",\"architecture\":\"generic\",\"hpa-feature-attributes\":[
,
]}]},{\"flavorLabel\":\"flavor_label_vm_02\",\"flavorProperties\":[{\"hpa-feature\":\"basicCapabilities\",\"mandatory\":\"True\",\"architecture\":\"generic\",\"hpa-feature-attributes\":[
,
]}]},{\"flavorLabel\":\"flavor_label_vm_03\",\"flavorProperties\":[{\"hpa-feature\":\"basicCapabilities\",\"mandatory\":\"True\",\"architecture\":\"generic\",\"hpa-feature-attributes\":[
,
]}]}]}}",
"policyName": "OSDF_R2.Config_OOF_hpa_policy_vGW_2.1.xml",
"policyType": "Optimization",
"policyVersion": "1",
"matchingConditions": {
"ONAPName": "DCAE",
"service": "hpaPolicy",
"policyScope": "vcpe1,us,international,ip,vgw",
"policyType": "hpaPolicy"
},
"responseAttributes": {},
"property": null
}