Did you make sure to select the VNF-API box on the front page of the VID screen ?
Brian From: [email protected] <[email protected]> On Behalf Of Aniello Paolo Malinconico Sent: Thursday, February 21, 2019 11:07 AM To: Sanchita Pathak <[email protected]>; [email protected] Subject: Re: [onap-discuss] [so][sdnc] "Unable to generate VM name" while creating VF Module Hi all, I am trying to instantiate a service onto OpenStack by Casablanca Release. The service is just a virtual machine. I carried out all the SDC steps to create and distribute the service model and the distribution seems to be fine. For the instantiation step, I replicated the same service using first VID and afterwards POSTMAN APIs. But, in both cases I got the same error during the VF-Module instantiation as reported below (taken from BPMN-INFRA log file). I have to say that the same error occurs when I try to deploy vFW by VID following the guide: https://wiki.onap.org/display/DW/Tutorial%3A+Creating+a+Service+Instance+from+a+Design+Model<https://urldefense.proofpoint.com/v2/url?u=https-3A__wiki.onap.org_display_DW_Tutorial-253A-2BCreating-2Ba-2BService-2BInstance-2Bfrom-2Ba-2BDesign-2BModel&d=DwMFaQ&c=LFYZ-o9_HUMeMTSQicvjIg&r=e3d1ehx3DI5AoMgDmi2Fzw&m=wpZtmTfr4h0z_hBU3-4xszOSfMr_rIrberfFQ4lNQQ4&s=EmUm4nywQV0pUCiv82ukOB71buNhrfdRphh9vm-dFYM&e=> The same vFW use case instantiated by robot gives a different error (VF-module resource not found) but pertaining the same instantiation phase. 2019-02-21T14:56:43.255Z|55509397-e210-4caf-bfa0-f0704dbb529c| o.onap.so.logging.jaxrs.filter.SpringClientFilter - Response body: {"output":{"response-message":"Unable to generate VM name: naming-policy-generate-name: input.policy-instance-name is not set and input.policy is ASSIGN","ack-final-indicator":"Y","svc-request-id":"de6306c1-0df5-40b7-8f36-a2f2151ef2e1","response-code":"500"}} 2019-02-21T14:56:43.256Z|55509397-e210-4caf-bfa0-f0704dbb529c| o.onap.so.logging.jaxrs.filter.SpringClientFilter - =======================response end================================================= 2019-02-21T14:56:43.257Z|55509397-e210-4caf-bfa0-f0704dbb529c| org.onap.so.client.sdnc.SDNCClient - ResponseCode: 500 ResponseMessage: Unable to generate VM name: naming-policy-generate-name: input.policy-instance-name is not set and input.policy is ASSIGN 2019-02-21T14:56:43.257Z|55509397-e210-4caf-bfa0-f0704dbb529c| org.onap.so.client.sdnc.SDNCClient - RA_RESPONSE_FROM_SDNC 2019-02-21T14:56:43.258Z|55509397-e210-4caf-bfa0-f0704dbb529c| org.onap.so.client.exception.ExceptionBuilder - Error from SDNC: Unable to generate VM name: naming-policy-generate-name: input.policy-instance-name is not set and input.policy is ASSIGN org.onap.so.client.exception.BadResponseException: Error from SDNC: Unable to generate VM name: naming-policy-generate-name: input.policy-instance-name is not set and input.policy is ASSIGN The body passed in Postman at the url: http://{{mso_ip}}:30277/onap/so/infra/serviceInstantiation/v7/serviceInstances/3a68fbbf-9159-40bf-908a-a1a1fbcdc051/vnfs/721a96a9-afb2-4846-be2a-e9b055284ebb/vfModules<https://urldefense.proofpoint.com/v2/url?u=https-3A__mail.polito.it_Redirect_551036AC_-257B-257Bmso-5Fip-257D-257D-3A30277_onap_so_infra_serviceInstantiation_v7_serviceInstances_3a68fbbf-2D9159-2D40bf-2D908a-2Da1a1fbcdc051_vnfs_721a96a9-2Dafb2-2D4846-2Dbe2a-2De9b055284ebb_vfModules&d=DwMFaQ&c=LFYZ-o9_HUMeMTSQicvjIg&r=e3d1ehx3DI5AoMgDmi2Fzw&m=wpZtmTfr4h0z_hBU3-4xszOSfMr_rIrberfFQ4lNQQ4&s=czXX7PdmT4Y3yeB1_Wl5YdM0eYqE5qZrFYa7ZCAB_-0&e=> { "requestDetails": { "modelInfo": { "modelCustomizationName": "20190220VspVm..one_vm_fip_nr_pk..module-0", "modelInvariantId": "530602ad-f5ff-4775-9ba2-26c4b90d188b", "modelType": "vfModule", "modelName": "20190220VspVm..one_vm_fip_nr_pk..module-0", "modelVersion": "1", "modelCustomizationUuid": "b27db219-e993-4c95-8c9f-428ba0107d7b", "modelVersionId": "6e4284f0-588c-4fec-8f24-c9de5d916489", "modelCustomizationId": "b27db219-e993-4c95-8c9f-428ba0107d7b", "modelUuid": "6e4284f0-588c-4fec-8f24-c9de5d916489", "modelInvariantUuid": "530602ad-f5ff-4775-9ba2-26c4b90d188b", "modelInstanceName": "20190220VspVm..one_vm_fip_nr_pk..module-0" }, "requestInfo": { "source": "VID", "instanceName": "test_svc_1", "suppressRollback": false, "requestorId": "demo" }, "relatedInstanceList": [ { "relatedInstance": { "instanceId": "3a68fbbf-9159-40bf-908a-a1a1fbcdc051", "modelInfo": { "modelInvariantId": "cd5c6a82-653a-4bfc-8598-788deee9cf0c", "modelType": "service", "modelName": "20190220_svc_1", "modelVersion": "1.0", "modelVersionId": "f8dcea44-ed40-4a34-ac06-da342dc4d2f8", "modelUuid": "f8dcea44-ed40-4a34-ac06-da342dc4d2f8", "modelInvariantUuid": "cd5c6a82-653a-4bfc-8598-788deee9cf0c" } } }, { "relatedInstance": { "instanceId": "721a96a9-afb2-4846-be2a-e9b055284ebb", "modelInfo": { "modelCustomizationName": "20190220_vsp_vm 0", "modelInvariantId": "8be4a024-4433-49b8-bf7f-de3750496ca3", "modelType": "vnf", "modelName": "20190220_vsp_vm", "modelVersion": "1.0", "modelCustomizationUuid": "a66919fb-1d98-4340-a38e-ceaf83749ae2", "modelVersionId": "0946fde0-8042-4f73-93f0-aeca50ede63a", "modelCustomizationId": "a66919fb-1d98-4340-a38e-ceaf83749ae2", "modelUuid": "0946fde0-8042-4f73-93f0-aeca50ede63a", "modelInvariantUuid": "8be4a024-4433-49b8-bf7f-de3750496ca3", "modelInstanceName": "20190220_vsp_vm 0" } } } ], "cloudConfiguration": { "tenantId": "34f1fe41d1a0483dbd1aa94c26dc5545", "cloudOwner": "CloudOwner", "lcpCloudRegionId": "RegionOne" }, "requestParameters": { "userParams": [ { "name": "name", "value": "test_svc_1" }, { "name": "image_name", "value": "ubuntu-16-04-cloud-amd64" }, { "name": "flavor_name", "value": "m1.medium" }, { "name": "public_net_id", "value": "2c921f24-7e22-40f0-af62-e6801bff0ae1" } ], "testApi": "GR_API", "usePreload": false } } } I noticed that the same issue is documented in https://jira.onap.org/browse/SO-1364<https://urldefense.proofpoint.com/v2/url?u=https-3A__jira.onap.org_browse_SO-2D1364&d=DwMFaQ&c=LFYZ-o9_HUMeMTSQicvjIg&r=e3d1ehx3DI5AoMgDmi2Fzw&m=wpZtmTfr4h0z_hBU3-4xszOSfMr_rIrberfFQ4lNQQ4&s=kpg2MTclPyrU14gM8HXCA6h-FgkJXU7Hg9QLilv0sPg&e=> but I was not able to understand the proposed workaround. E.g. what is the specific API version to be used for VF-module instantiation? Any help would be appreciated. Thanks Aniello Malinconico -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#15671): https://lists.onap.org/g/onap-discuss/message/15671 Mute This Topic: https://lists.onap.org/mt/28165128/21656 Group Owner: [email protected] Unsubscribe: https://lists.onap.org/g/onap-discuss/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
