Uploaded image for project: 'Automation Hub'
  1. Automation Hub
  2. AAH-1463

Uploading a collection below 1.0.0 causes Python traceback in galaxy-importer

    • Icon: Bug Bug
    • Resolution: Obsolete
    • Icon: Normal Normal
    • None
    • None
    • Backend
    • False
    • Hide

      None

      Show
      None
    • False

      I tried to upload the (new) ibm.ibm_zhmc collection with a version 0.10.1 to the Automation Hub.

      For more than half an hour, the import status said Pending and no log was shown. (The same tarball file uploaded to galaxy-dev took about 5 seconds to succeed).

      At some point, the import status was shown as failed, along with this output:

      -----------------
      Status: Failed
      Approval status: waiting for import to finish
      Version: 0.10.1
      Error message:
      Invalid collection metadata. Config is enabled that requires version to be 1.0.0 or greater.
      {{ File "/venv/lib64/python3.8/site-packages/pulpcore/tasking/pulpcore_worker.py", line 384, in _perform_task
      result = func(*args, **kwargs)
      File "/app/galaxy_ng/app/tasks/publishing.py", line 42, in import_and_move_to_staging
      import_collection(
      File "/venv/lib64/python3.8/site-packages/pulp_ansible/app/tasks/collections.py", line 306, in import_collection
      importer_result = process_collection(
      File "/venv/lib64/python3.8/site-packages/galaxy_importer/collection.py", line 77, in import_collection
      return _import_collection(file, filename, file_url, logger, cfg)
      File "/venv/lib64/python3.8/site-packages/galaxy_importer/collection.py", line 147, in _import_collection
      data = CollectionLoader(extract_dir, filename, cfg=cfg, logger=logger).load()
      File "/venv/lib64/python3.8/site-packages/galaxy_importer/loaders/collection.py", line 54, in load
      self.manifest = self._load_manifest()
      File "/venv/lib64/python3.8/site-packages/galaxy_importer/loaders/collection.py", line 143, in _load_manifest
      raise exc.ManifestValidationError(str(e)) from e}}
       
      Importing with galaxy-importer 0.4.2 
      -----------------

      From the output I get it that versions below 1.0.0 are not permitted, and that is fine.

      The issue is that the galaxy-importer package raises an exception that is not caught, so this looks to users like the software is broken.

      One more thing to note: On the Automation Hub the importer version is Importing with galaxy-importer 0.4.2 and on galaxy-dev it is Importing with galaxy-importer 0.4.0.

              awcrosby5 Andrew Crosby (Inactive)
              maiera@de.ibm.com Andreas Maier (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: