Uploaded image for project: 'Service Design and Creation'
  1. Service Design and Creation
  2. SDC-1447

[SDC] SDC create csar with many warnnings

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Highest Highest
    • Beijing Release, Casablanca Release
    • SDC
    • None

      I import vgw.csar, then upload to SDC, then download csar from SDC. we use tosca-parser to paser it, we get below warnnings and some data is deleted by tosca-parser. I found some filed required is false, but we don't fill it, we get some errors.  

      $ unzip resource-VgwTstHhb67655-csar.csar

      $ cd Definitions

      $ tosca-parser --template-file resource-Vgw611529-template.yml 

      The input "resource-Vgw611529-template.yml" failed validation with the following error(s): 
      MissingRequiredFieldError: Data value of type "org.openecomp.datatypes.Naming" is missing required field "['supplemental_data']".

      This is not SOL001 DM definition, I don't know why report error.

      MissingRequiredParameterError: Template is missing required parameter for input "max_instances".

      SOL001 DM don't define "max_instances", why SDC add it.

      MissingRequiredParameterError: Template is missing required parameter for input "nf_type".

      SOL001 DM don't define "nf_types", why SDC add it.

      MissingRequiredParameterError: Template is missing required parameter for input "nf_naming_code".

      SOL001 DM don't define "nf_naming_code", why SDC add it.

      MissingRequiredParameterError: Template is missing required parameter for input "nf_role".

      SOL001 DM don't define "nf_role", why SDC add it.

      MissingRequiredParameterError: Template is missing required parameter for input "min_instances".

      SOL001 DM don't define "min_instances", why SDC add it.

      MissingRequiredParameterError: Template is missing required parameter for input "nf_function".

      SOL001 DM don't define "nfinstances", why SDC add it.

      MissingRequiredFieldError: "properties" of template "VL_cpe_public" is missing required field "['description', 'test_access']".

      SOL001 DM define description required is false, this error is not right

      InvalidTypeError: Type "tosca.nodes.nfv.Cp" is not a valid type.

      SOL001 DM define tosca.nodes.nfv.Cp , why SDC delete it. this error cause below 3 errors

      UnknownFieldError: "properties" of template "Cp_vgw_mux_gw_private_net" contains unknown field "layer_protocol". Refer to the definition to verify valid values.

      UnknownFieldError: "properties" of template "Cp_vgw_mux_gw_private_net" contains unknown field "protocol_data". Refer to the definition to verify valid values.

      UnknownFieldError: "properties" of template "Cp_vgw_mux_gw_private_net" contains unknown field "trunk_mode". Refer to the definition to verify valid values.

       

      MissingRequiredFieldError: "properties" of template "Cp_vgw_mux_gw_private_net" is missing required field "['vnic_type', 'vnic_order', 'bitrate_requirement', 'vnic_name']".

      SOL001 DM don't define "['vnic_type', 'vnic_order', 'bitrate_requirement', 'vnic_name']"

      MissingRequiredFieldError: "properties" of template "VirtualStorage_root_all" is missing required field "['vdu_storage_requirements', 'rdma_enabled']".

      This is because without tosca.nodes.nfv.Vdu.VirtualStorage

      MissingRequiredFieldError: "properties" of template "VDU_vgw_0" is missing required field "['boot_order', 'inject_files', 'nfvi_constraints']".

      SOL001 DM Vdu.compute "['boot_order', 'inject_files', 'nfvi_constraints']"  required is false

      InvalidSchemaError: Schema definition of "vmBootUpTimeOut" has "required" attribute with invalid value "optional". The value must be one of "true, false".

      MissingRequiredFieldError: Data value of type "tosca.datatypes.nfv.VduProfile" is missing required field "['vmBootUpTimeOut']".

      Required must be one of "true, false", can't be optional

      InvalidTypeError: Type "tosca.relationships.nfv.Vdu.AttachedTo" is not a valid type.

      SOL001 DM definition including AttachesTo.

      InvalidTypeError: Type "tosca.nodes.nfv.VDU.VirtualStorage" is not a valid type.

      SOL001 DM define tosca.nodes.nfv.Vdu.VirtualStorage not define tosca.nodes.nfv.VDU.VirtualStorage.

        1. resource-VgwTstHhb67655-csar.csar
          38 kB
        2. service-TestNs-csar.csar
          43 kB
        3. vgw.csar
          14 kB
        4. vgwgood.csar
          11 kB

            suryanshpratap suryanshpratap
            haibin haibin
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: