Actions
Bug #34237
closedpulp3 content migration failed with "Katello::Errors::Pulp3Error: local variable 'item' referenced before assignment"
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=2038742
Description of problem:
As $summary, migration docker repos failed with:
error:
traceback: |2
File "/usr/lib/python3.6/site-packages/rq/worker.py", line 936, in perform_job
rv = job.perform()
File "/usr/lib/python3.6/site-packages/rq/job.py", line 684, in perform
self._result = self._execute()
File "/usr/lib/python3.6/site-packages/rq/job.py", line 690, in _execute
return self.func(*self.args, **self.kwargs)
File "/usr/lib/python3.6/site-packages/pulp_2to3_migration/app/tasks/migrate.py", line 81, in migrate_from_pulp2
migrate_content(plan, skip_corrupted=skip_corrupted)
File "/usr/lib/python3.6/site-packages/pulp_2to3_migration/app/migration.py", line 55, in migrate_content
plugin.migrator.migrate_content_to_pulp3(skip_corrupted=skip_corrupted)
File "/usr/lib/python3.6/site-packages/pulp_2to3_migration/app/plugin/docker/migrator.py", line 106, in migrate_content_to_pulp3
loop.run_until_complete(dm.create())
File "/usr/lib64/python3.6/asyncio/base_events.py", line 484, in run_until_complete
return future.result()
File "/usr/lib/python3.6/site-packages/pulp_2to3_migration/app/plugin/content.py", line 89, in create
await pipeline
File "/usr/lib/python3.6/site-packages/pulpcore/plugin/stages/api.py", line 225, in create_pipeline
await asyncio.gather(*futures)
File "/usr/lib/python3.6/site-packages/pulpcore/plugin/stages/api.py", line 43, in call
await self.run()
File "/usr/lib/python3.6/site-packages/pulp_2to3_migration/app/plugin/docker/migrator.py", line 154, in run
thru = self.relate_manifest_to_list(dc)
File "/usr/lib/python3.6/site-packages/pulp_2to3_migration/app/plugin/docker/migrator.py", line 234, in relate_manifest_to_list
thru = ManifestListManifest(manifest_list=item, image_manifest=dc.content,
description: local variable 'item' referenced before assignment
Version-Release number of selected component (if applicable):
6.9
How reproducible:
on customer site
Steps to Reproduce:
1. satellite-maintain content prepare
Actual results:
Migration failed with above error.
Expected results:
Migration should complete without error.
Additional info:
Updated by Chris Roberts about 3 years ago
- Status changed from New to Rejected
- Target version changed from Katello 4.4.0 to Katello Recycle Bin
- Triaged changed from No to Yes
This looks to be isolated to Pulp, this will be handled by them with the downstream bugzilla. Closing this out
Actions