Uploaded image for project: 'Satellite'
  1. Satellite
  2. SAT-24932 "CollectionVersion matching query does not exist" when importing ansible collections repository
  3. SAT-27228

[QE] "CollectionVersion matching query does not exist" when importing ansible collections repository

XMLWordPrintable

    • Icon: Sub-task Sub-task
    • Resolution: Done
    • Icon: Undefined Undefined
    • None
    • None
    • Pulp
    • False
    • Hide

      None

      Show
      None
    • False
    • 0
    • Rocket

      Description of problem:

      When importing ansiblecollections repository, import task fails with backtrace below:

      ~~~

      1. hammer content-import repository --path /var/lib/pulp/imports/Export-RH-Validated-4/1.0/2024-05-04T10-31-58-04-00/ --organization-id 1
        [....................................................................................................................................................................................................................................] [100%]
        Error: 1 subtask(s) failed for task group /pulp/api/v3/task-groups/018f4406-7e36-713a-83c4-0af69f62a27d/.
        Errors:
        Unknown macro: {"traceback"=>" File "/usr/lib/python3.11/site-packages/pulpcore/tasking/tasks.py", line 61, in _execute_taskn result = func(*args, **kwargs)n ^^^^^^^^^^^^^^^^^^^^^n File "/usr/lib/python3.11/site-packages/pulpcore/app/tasks/importer.py", line 380, in import_repository_versionn for a_result in _import_file(os.path.join(rv_path, filename), res_class, retry=True)}

        ~~~

      Version-Release number of selected component (if applicable):
      Satellite 6.14 and Satellite 6.15 (didn't test others)

      How reproducible:
      Always, with certain repositories

      Steps to Reproduce:
      1. Create a product/repository to sync https://console.redhat.com/api/automation-hub/content/validated/ (credentials are needed, use your redhat credentials)
      2. Sync the repository (it should bring 85 collections)
      3. Export the repository:

      ~~~
      hammer content-export complete repository --id <ID of the repo>
      ~~~
      4. Transfer the exported content to other Satellite (or remove the repository locally and ensure to cleanup all orphans, if you import on the same server where you initially synced without properly removing orphans it works) and try importing

      Actual results:
      Error shown on the description

      Expected results:
      Import to work without errors

      Additional info:

      QE Tracker for https://issues.redhat.com/browse/SAT-24932
      Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2279069

              rhn-support-shwsingh Shweta Singh
              satellite-jira-automation@redhat.com Satellite Jira-Automation
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: