Pulp2 to pulp3 migration fails on certain repos during "satellite-maintain content prepare" step with FileNotFoundError: [Errno 2] No such file or directory: '' in prepare_metadata_files

Solution Verified - Updated -

Issue

  • 'satellite-maintain content prepare' stop with error:
  ForemanTasks::TaskError: Task b2b5e67f-6dcf-498e-aebf-bf018f292101: Katello::Errors:Pulp3Error: 2 subtask(s) failed for task group /pulp/api/v3/task-groups/0c042b87-877d-4061-bf61-05fd73c4a69b/
  • Traceback error caught on log:
Feb 10 10:34:11 mysat6 pulpcore-worker-2: pulp: pulp_rpm.app.tasks.publishing:INFO: Publishing: repository=cv-test-Red_Hat_Ansible_Engine_2_6_RPMs_for_Red_Hat_Enterprise_Linux_7_Server_x86_64, version=4
:
Feb 10 10:34:12 mysat6 pulpcore-worker-2: pulp: rq.worker:ERROR: Traceback (most recent call last):
Feb 10 10:34:12 mysat6 pulpcore-worker-2: File "/usr/lib/python3.6/site-packages/rq/worker.py", line 936, in perform_job
:
Feb 10 10:34:12 mysat6 pulpcore-worker-2: self.repomdrecords = self.prepare_metadata_files(main_content)
Feb 10 10:34:12 maysat6 pulpcore-worker-2: File "/usr/lib/python3.6/site-packages/pulp_rpm/app/tasks/publishing.py", line 99, in prepare_metadata_files
Feb 10 10:34:12 mysat6 pulpcore-worker-2: with open(path, "wb") as new_file:
Feb 10 10:34:12 mysat6 pulpcore-worker-2: FileNotFoundError: [Errno 2] No such file or directory: ''

Environment

  • Red Hat Satellite 6.9
    (Preparing to migrate contents to pulp3)

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content