Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Labels:
      None

      Description

      Using nfv-toscaparser 1.1.0, when parsing the vgw_vnf_201811171322.csar with --debug parameter, nfv-toscaparser raised an unexpected exception:

      $ tosca-parser --template-file vgw_vnf_201811171322.csar --debug Traceback (most recent call last):
      File "/tmp/fff/bin/tosca-parser", line 11, in <module>
      sys.exit(main())
      File "/tmp/fff/local/lib/python2.7/site-packages/toscaparser/shell.py", line 147, in main
      ParserShell().main(args)
      File "/tmp/fff/local/lib/python2.7/site-packages/toscaparser/shell.py", line 77, in main
      self.parse(path, no_required_paras_check=nrpv, debug_mode=debug)
      File "/tmp/fff/local/lib/python2.7/site-packages/toscaparser/shell.py", line 92, in parse
      debug_mode=debug_mode)
      File "/tmp/fff/local/lib/python2.7/site-packages/toscaparser/tosca_template.py", line 90, in _init_
      self.path = self._get_path(path)
      File "/tmp/fff/local/lib/python2.7/site-packages/toscaparser/tosca_template.py", line 311, in _get_path
      if csar.validate():
      File "/tmp/fff/local/lib/python2.7/site-packages/toscaparser/prereq/csar.py", line 124, in validate
      self._validate_external_references()
      File "/tmp/fff/local/lib/python2.7/site-packages/toscaparser/prereq/csar.py", line 204, in _validate_external_references
      os.path.join(self.temp_dir, main_tpl_file))
      File "/tmp/fff/local/lib/python2.7/site-packages/toscaparser/imports.py", line 55, in _init_
      self._validate_and_load_imports()
      File "/tmp/fff/local/lib/python2.7/site-packages/toscaparser/imports.py", line 91, in _validate_and_load_imports
      TypeValidation(custom_type, import_def)
      File "/tmp/fff/local/lib/python2.7/site-packages/toscaparser/elements/tosca_type_validation.py", line 39, in _init_
      self._validate_type_keys(custom_types)
      File "/tmp/fff/local/lib/python2.7/site-packages/toscaparser/elements/tosca_type_validation.py", line 52, in _validate_type_keys
      UnknownFieldError(what='Template ' + (self.import_def),
      TypeError: cannot concatenate 'str' and 'dict' objects

        Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            • Assignee:
              LianhaoLu Lianhao Lu
              Reporter:
              LianhaoLu Lianhao Lu
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: