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
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://mail.polito.it/Redirect/551036AC/%7B%7Bmso_ip%7D%7D:30277/onap/so/infra/serviceInstantiation/v7/serviceInstances/3a68fbbf-9159-40bf-908a-a1a1fbcdc051/vnfs/721a96a9-afb2-4846-be2a-e9b055284ebb/vfModules
)
{
"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 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 (#15670): https://lists.onap.org/g/onap-discuss/message/15670
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]]
-=-=-=-=-=-=-=-=-=-=-=-