1
0
-1

I installed the ONAP of amsterdam and want to run an demo with TOSCA csar pkg. I searched the code of ONAP and found some csar pkg but it didn't work. Then I debug the MSO and found the pkg doesn't have an Artifact.

this is my csar pkg.

vCSCF_NO_REQUIREMENT.csar

Then I add the Artifact in sdc with the Artifact-type "Other" but it doesn't work.

Actually I need the Artifact with the type "VF_MODULES_METADATA" but I can't find the type.

(  vfResourceStructure.java  line 125 )



How can I Add Artifacts in the right way? An correct csar pkg is also helpful for me.

What are the Artifacts use for? Why it must contain at least one artifact?


Any help is appreciated !


Thanks

ChangJun


    CommentAdd your comment...

    2 answers

    1.  
      1
      0
      -1

      SDC does not support VF_MODULES_METADATA for VNF's onboarded using TOSCA.

      In the 'other' folder, you can add any artifact you want to process. In the VOLTE use case, I guess, the original TOSCA is added to the OTHER folder.

      SO is not able to update its tables because of the missing VF_Modules metadata but you still get the csar distributed by SDC. You can have a BPMN to get the csar and extract the artifacts from the OTHER folder. 

      1. Changjun Wang

        sorry, I didn't get it by "You can have a BPMN to get the csar and extract the artifacts from the OTHER folder".  You mean I can add an "BPMN" as an Artifact of "Other" in my csar?How?


        Now my isusse is that I sucessfully uploaded the csar pkg and created a service. But when I

        "Add VNF" there is an error.

        05/23/18 14:21:29 HTTP Status: Bad Request (400)
        {
          "serviceException": {
            "messageId": "SVC0002",
            "text": "Error validating request.  No valid catalog entry is specified"
          }
        }

        I searched the code of "SO" and found there is no data in table "vnf_resource_customization" and "vnf_resource" in DB "mso_catalog". Then "getServiceInstanceOrchestrationURI" returns null and catch an error.

        Then I began to search the code of "distribute" in SDC and found "SDC" send a Notification to "message-router" and then call "ASDCController" in "SO" to save the data to the table "vnf_resource". But it failed due to the variable of  "vfModulesMetadataList" is null because there is no artifacts of "VF_MODULES_METADATA" in the csar. 


        I don't know how to avoid it or how can I fix it.

        I also searched downloaded some csar in wiki of ONAP but none works.

      2. Avdhut Kholkar

        Are you executing the ONAP use cases or  implementing one of your own? As I explained, you will not have the Service/VNF/VFModule entries in the SO tables for service onboarded using TOSCA because of the missing VF_Modules metadata file. You will have to enter the details in the SO tables manually.

        In my previous comment, was explaining how one can get hold of artifacts that are added to the 'OTHER' folder in SO during runtime execution. SO does not provide any BPMN that does it currently, you will have to write one of your own to get those artifacts. 

      3. Changjun Wang

        Tnanks for your patience. It really cleared my doubt.

        In fact, I don't need arifacts. I just want to run the whole demo of My TOSCA csar. Now I will insert the data to the tables of SO to avoid my error.


        Thanks

        ChangJun

      CommentAdd your comment...
    2.  
      1
      0
      -1

      Brian Freeman    Marco Platania   

      Can you help me? Thanks

        CommentAdd your comment...