Uploaded image for project: 'Vnfsdk'
  1. Vnfsdk
  2. VNFSDK-231

pkgtools - vnfsdk csar-validate failure for ceartain csar

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Medium Medium
    • Beijing Release
    • Amsterdam Release
    • None

      For certain csar, vnfsdk csar-validate would fail with the following error message:

      Validation issues:
      0: document not found at URI: "onap_dm.yaml"
      DocumentNotFoundException: document not found at URI: "onap_dm.yaml"
      Traceback (most recent call last):
      File "/home/lulianhao/onap/vnfsdk/pkgtools/venv/bin/vnfsdk", line 11, in <module>
      load_entry_point('vnfsdk', 'console_scripts', 'vnfsdk')()
      File "/home/lulianhao/onap/vnfsdk/pkgtools/vnfsdk_pkgtools/cli/_main_.py", line 116, in main
      args.func(args)
      File "/home/lulianhao/onap/vnfsdk/pkgtools/vnfsdk_pkgtools/cli/_main_.py", line 47, in csar_validate_func
      driver.validate(reader)
      File "/home/lulianhao/onap/vnfsdk/pkgtools/vnfsdk_pkgtools/validator/aria_validator.py", line 40, in validate
      raise RuntimeError('Validation failed')
      RuntimeError: Validation failed

      I did some tests, find that if we put all tosca yaml file in the definitions directory in the csar file, it succeeds.

            lianhaolu lianhaolu
            lianhaolu lianhaolu
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: