Hi Prateek, Have you uploaded the VNF policy for vFW into the policy framework? It seems that OOF doesn’t get that policy. Hence, it cannot get the corresponding demand inside the payload and perform homing. If not, you can refer to the page here to upload the policy https://wiki.onap.org/display/DW/OOF+-+HPA+guide+for+integration+testing
Thanks. Ruoyu From: onap-discuss@lists.onap.org [mailto:onap-discuss@lists.onap.org] On Behalf Of Prateek Gupta Sent: Friday, January 18, 2019 8:54 PM To: onap-discuss@lists.onap.org Subject: [onap-discuss] [OOF][SO].Error while performing the HPA based VNF placement. Hi While creating the service instance using the below json. i'm getting the error. { "requestDetails":{ "modelInfo":{ "modelInvariantId":"8e4b0ad2-8d94-4fe9-ba55-1256101e6827", "modelType":"service", "modelName":"Test1", "modelVersion":"2.0", "modelVersionId":"6c551f88-cb3a-4c2e-80af-fd9c3a999231" }, "requestInfo":{ "source":"VID", "instanceName":"oof-22-homing", "suppressRollback":false, "requestorId":"demo" }, "subscriberInfo":{ "globalSubscriberId":"Demonstration" }, "requestParameters":{ "subscriptionServiceType":"vFW", "aLaCarte":true, "testApi":"VNF_API", "userParams":[ { "name":"Customer_Location", "value":{ "customerLatitude":"32.897480", "customerLongitude":"97.040443", "customerName":"some_company" } }, { "name":"Homing_Solution", "value":"oof" }, { "name":"orchestrator", "value":"multicloud" } ] }, "project":{ "projectName":"Project-Demonstration" }, "owningEntity":{ "owningEntityId":"bd16193f-16da-4d92-bc2b-a33d4300da85", "owningEntityName":"OE-Demonstration" } } } Error in so bpmn pod:- {\"externalApplicationDetails\": {\"url\": \"http://oof-has-api:8091/v1/plans/e90ac786-3c4e-44e1-abae-04e595391b32\<http://oof-has-api:8091/v1/plans/e90ac786-3c4e-44e1-abae-04e595391b32/>", \"httpStatusCode\": 200, \"responseMessage\": {\"plans\": [{\"status\": \"error\", \"links\": [[{\"rel\": \"self\", \"href\": \"http://oof-has-api:8091/v1/plans/e90ac786-3c4e-44e1-abae-04e595391b32\<http://oof-has-api:8091/v1/plans/e90ac786-3c4e-44e1-abae-04e595391b32/>"}]], \"name\": \"463148cb-9748-402b-a1b7-652394a99edd\", \"id\":\"e90ac786-3c4e-44e1-abae-04e595391b32\", \"message\": \"local variable 'results' referenced before assignment\"}]}, \"httpMethod\": \"GET\"}, \"serviceException\": {\"errorType\": \"InterfaceError\",\"text\": \"A request exception has occurred when contacting an external system\"}}" ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Also when i'm creating the VF-module on the existing service with a different template(In this service we have not set the userParams). I'm getting the following error in the oof. {u'parameters': {u'REQUIRED_DISK': u'', u'customer_lat': 0.0, u'service_name': u'vfw', u'customer_long': 0.0, u'service_id': u'334297dd-9ce8-4966-aa00-4c7b37339109', u'REQUIRED_MEM': u''}, u'demands': {}, u'transaction-id': u'215419bf-d5b5-46c8-abac-c8ead3bba53f', u'locations': {u'customer_loc': {u'latitude': {u'get_param': u'customer_lat'}, u'longitude': {u'get_param': u'customer_long'}}}, u'optimization': {}, u'constraints': {u'hpa-vFW': {u'type': u'hpa', u'properties': {u'evaluate': [{u'type': u'vnfc', u'flavorProperties': [{u'mandatory': u'True', u'hpa-version': u'v1', u'directives': [], u'architecture': u'generic', u'hpa-feature': u'basicCapabilities', u'hpa-feature-attributes': [{u'operator': u'=', u'hpa-attribute-key': u'numVirtualCpu', u'unit': u'', u'hpa-attribute-value': u'2'}, {u'operator': u'=', u'hpa-attribute-key': u'virtualMemSize', u'unit': u'MB', u'hpa-attribute-value': u'512'}]}, {u'mandatory': u'False', u'hpa-version': u'v1', u'directives': [], u'architecture': u'generic', u'hpa-feature': u'hugePages', u'hpa-feature-attributes': [{u'operator': u'=', u'hpa-attribute-key': u'memoryPageSize', u'unit': u'MB', u'hpa-attribute-value': u'2'}]}, {u'mandatory': u'False', u'hpa-version': u'v1', u'directives': [], u'architecture': u'generic', u'hpa-feature': u'localStorage', u'hpa-feature-attributes': [{u'operator': u'>=', u'hpa-attribute-key': u'diskSize', u'unit': u'GB', u'hpa-attribute-value': u'10'}]}, {u'mandatory': u'False', u'hpa-version': u'v1', u'score': u'100', u'directives': [], u'architecture': u'generic', u'hpa-feature': u'cpuPinning', u'hpa-feature-attributes': [{u'operator': u'=', u'hpa-attribute-key': u'logicalCpuThreadPinningPolicy', u'unit': u'', u'hpa-attribute-value': u'isolate'}, {u'operator': u'=', u'hpa-attribute-key': u'logicalCpuPinningPolicy', u'unit': u'', u'hpa-attribute-value': u'dedicated'}]}], u'directives': [{u'attributes': [{u'attribute_value': u'm1.medium', u'attribute_name': u'vfw_flavor_name'}], u'type': u'flavor_directives'}], u'id': u'vfw'}, {u'type': u'vnfc', u'flavorProperties': [{u'mandatory': u'False', u'hpa-version': u'v1', u'directives': [], u'architecture': u'generic', u'hpa-feature': u'basicCapabilities', u'hpa-feature-attributes': [{u'operator': u'>=', u'hpa-attribute-key': u'numVirtualCpu', u'hpa-attribute-value': u'1'}, {u'operator': u'>=', u'hpa-attribute-key': u'virtualMemSize', u'unit': u'GB', u'hpa-attribute-value': u'7'}]}, {u'mandatory': u'False', u'hpa-version': u'v1', u'directives': [], u'architecture': u'generic', u'hpa-feature': u'localStorage', u'hpa-feature-attributes': [{u'operator': u'>=', u'hpa-attribute-key': u'diskSize', u'unit': u'GB', u'hpa-attribute-value': u'10'}]}], u'directives': [{u'attributes': [{u'attribute_value': u'', u'attribute_name': u'packetgen_flavor_name'}], u'type': u'flavor_directives'}], u'id': u'vgenerator'}, {u'type': u'vnfc', u'flavorProperties': [{u'mandatory': u'False', u'hpa-version': u'v1', u'directives': [], u'architecture': u'generic', u'hpa-feature': u'basicCapabilities', u'hpa-feature-attributes': []}], u'directives': [{u'attributes': [{u'attribute_value': u'', u'attribute_name': u'sink_flavor_name'}], u'type': u'flavor_directives'}], u'id': u'vsink'}]}, u'demands': [u'vFW']}}, u'homing_template_version': u'2017-10-10'} Which is causing error in so. Error in so bpmn pod: "{\"externalApplicationDetails\": {\"url\": \"http://oof-has-api:8091/v1/plans/456a0f0d-dc66-47cf-b01b-aadff16af490\<http://oof-has-api:8091/v1/plans/456a0f0d-dc66-47cf-b01b-aadff16af490/>", \"httpStatusCode\": 200, \"responseMessage\": {\"plans\": [{\"status\": \"error\", \"links\": [[{\"rel\": \"self\", \"href\": \"http://oof-has-api:8091/v1/plans/456a0f0d-dc66-47cf-b01b-aadff16af490\<http://oof-has-api:8091/v1/plans/456a0f0d-dc66-47cf-b01b-aadff16af490/>"}]], \"name\": \"215419bf-d5b5-46c8-abac-c8ead3bba53a\", \"id\": \"456a0f0d-dc66-47cf-b01b-aadff16af490\", \"message\": \"Undefined Demand(s) [u'vFW'] [] [u'customer_loc'] [u'vFW'] in Constraint 'hpa-vFW'\"}]}, \"httpMethod\": \"GET\"}, \"serviceException\": {\"errorType\": \"InterfaceError\", \"text\": \"A request exception has occurred when contacting an external system\"}}" Regards, Prateek Gupta -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#15042): https://lists.onap.org/g/onap-discuss/message/15042 Mute This Topic: https://lists.onap.org/mt/29198163/21656 Group Owner: onap-discuss+ow...@lists.onap.org Unsubscribe: https://lists.onap.org/g/onap-discuss/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-