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

Improve errors when re-importing existing CollectionVersion

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

      None

      Show
      None
    • False

      Problem Description: The current error is confusing

      In CLI:

      2022-03-24 06:08:34.887628 | controller | Galaxy import message: ERROR - Collection processing was not successful: {'non_field_errors': [ErrorDetail(string='The fields namespace, name, version must make a unique set.', code='unique')]}
      2022-03-24 06:08:34.887658 | controller | ERROR! Galaxy import process failed: PulpTemporaryFile object can't be deleted because its pulp_id attribute is set to None. (Code: UNKNOWN) 

      UI "Error message":

      PulpTemporaryFile object can't be deleted because its pulp_id attribute is set to None. 

      UI Import Log:

      Collection processing was not successful: {'non_field_errors': [ErrorDetail(string='The fields namespace, name, version must make a unique set.', code='unique')]} 

      Proposed Solution:

      • Improve the error message inside galaxy-importer
        • Possible suggestion: “The fields namespace, name, version must make a unique set” or “The collection version you are trying to import already exists in the system”
      • Catch the PulpTemporaryFile error (that occurs likely outside the galaxy-importer) and provide a better error or warning message or allow galaxy-importer error message to prevail - see which is best

              Unassigned Unassigned
              awcrosby5 Andrew Crosby (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: