Description of problem:
When importing ansiblecollections repository, import task fails with backtrace below:
~~~
- 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