-
Bug
-
Resolution: Done
-
Medium
-
Casablanca Release
-
None
-
None
During onboarding a tosca VNFD with substitution_mappings full.csar, when we "Import Vsp", the SDC report the following error:
Error code: POL5000Status code: 500Internal Server Error. Please try again later.
See pic for SDC UI screenshot.
When this error happens, the error log in logs/BE/SDC/SDC-BE/error.log show the following errors:
2019-01-16T07:16:22.419Z|187ba8d8-e6dd-414d-87e9-a2d9723a6c9f|qtp215145189-10495912|/v1/catalog/resources|cs0008|||INFO|0|POST /sdc2/rest/v1/catalog/resources HTTP/1.1| 2019-01-16T07:16:22.533Z|187ba8d8-e6dd-414d-87e9-a2d9723a6c9f|qtp215145189-10495912|/v1/catalog/resources|cs0008|||||#createResource('{"artifacts":{},"toscaArtifacts":{},"contactId":"cs0008","categories":[{"name":"Network L2-3","normalizedName":"network l2-3","uniqueId":"resourceNewCategory.network l2-3","icons":null,"subcategories":[{"name":"Infrastructure","normalizedName":"infrastructure","uniqueId":"resourceNewCategory.network l2-3.infrastructure","icons":["ucpe"],"groupings":null,"version":null,"ownerId":null,"empty":false,"type":null}],"version":null,"ownerId":null,"empty":false,"type":null}],"description":"sub2","icon":"defaulticon","componentInstancesProperties":{},"componentInstancesAttributes":{},"name":"sub2","tags":["sub2"],"capabilities":{},"requirements":{},"deploymentArtifacts":{},"componentType":"RESOURCE","vendorName":"vendor","vendorRelease":"1.0","componentInstances":[],"properties":[],"attributes":[],"resourceType":"VF","csarUUID":"64c351c6745f444aa5ec684db03833c8","csarVersion":"3.0"}', 'Request(POST //10.239.12.123:8080/sdc2/rest/v1/catalog/resources)@5acb627b', 'cs0008'): thrown org.openecomp.sdc.be.components.impl.exceptions.ComponentException(ComponentException{responseFormat=ResponseFormat[status=500, requestErrorWrapper=org.openecomp.sdc.exception.ResponseFormat$RequestErrorWrapper@18e99b3e], actionStatus=OK, params=[]}) out of org.openecomp.sdc.be.components.impl.ResourceBusinessLogic#createResourceFromCsar[885] in 114ms| 2019-01-16T07:16:22.535Z|187ba8d8-e6dd-414d-87e9-a2d9723a6c9f|qtp215145189-10495912|/v1/catalog/resources|cs0008|||INFO|0|POST /sdc2/rest/v1/catalog/resources HTTP/1.1 SC="500"|
If we remove the substitution_mappings in the onboarding tosca VNFD, the 'Import Vsp' succeeds.
The substitution_mappings in the tosca template is defined as the followings:
topology_template: substitution_mappings: node_type: tosca.nodes.nfv.VNF requirements: virtual_link: [ Cp1, virtual_link ] # expose as external CP node_templates: Cp1: type: tosca.nodes.nfv.VduCp ... ...
- mentioned in
-
Page Loading...