Project

Profile

Help

Issue #7417

closed

metadata checksum migration issue on re-run when pulp 2 distributor changed

Added by ttereshc over 3 years ago. Updated over 3 years ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Assignee:
Sprint/Milestone:
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Platform Release:
OS:
Triaged:
No
Groomed:
No
Sprint Candidate:
No
Tags:
Sprint:
Sprint 80
Quarter:

Description

: pulp: rq.worker:ERROR: AttributeError: 'Publication' object has no attribute 'metadata_checksum_type'
: Traceback (most recent call last):
: File "/usr/local/lib/pulp/lib64/python3.6/site-packages/rq/worker.py", line 883, in perform_job
: rv = job.perform()
: File "/usr/local/lib/pulp/lib64/python3.6/site-packages/rq/worker.py", line 883, in perform_job
: rv = job.perform()
: File "/usr/local/lib/pulp/lib64/python3.6/site-packages/rq/job.py", line 657, in perform
: self._result = self._execute()
: File "/usr/local/lib/pulp/lib64/python3.6/site-packages/rq/job.py", line 663, in _execute
: return self.func(*self.args, **self.kwargs)
: File "/home/vagrant/devel/pulp-2to3-migration/pulp_2to3_migration/app/tasks/migrate.py", line 135, in migrate_from_pulp2
: pre_migrate_all_without_content(plan, type_to_repo_ids, repo_id_to_type)
: File "/home/vagrant/devel/pulp-2to3-migration/pulp_2to3_migration/app/pre_migration.py", line 320, in pre_migrate_all_without_content
: repo_id, distributors_repos, distributor_migrators, repo)
: File "/home/vagrant/devel/pulp-2to3-migration/pulp_2to3_migration/app/pre_migration.py", line 490, in pre_migrate_distributor
: needs_new_publication = dist_migrator.needs_new_publication(distributor)
: File "/home/vagrant/devel/pulp-2to3-migration/pulp_2to3_migration/app/plugin/rpm/repository.py", line 105, in needs_new_publication
: current_checksum_type = pulp2distributor.pulp3_publication.metadata_checksum_type
: AttributeError: 'Publication' object has no attribute 'metadata_checksum_type'
: Traceback (most recent call last):
: File "/usr/local/lib/pulp/lib64/python3.6/site-packages/rq/worker.py", line 883, in perform_job
: rv = job.perform()
: File "/usr/local/lib/pulp/lib64/python3.6/site-packages/rq/job.py", line 657, in perform
: self._result = self._execute()
: File "/usr/local/lib/pulp/lib64/python3.6/site-packages/rq/job.py", line 663, in _execute
: return self.func(*self.args, **self.kwargs)
: File "/home/vagrant/devel/pulp-2to3-migration/pulp_2to3_migration/app/tasks/migrate.py", line 135, in migrate_from_pulp2
: pre_migrate_all_without_content(plan, type_to_repo_ids, repo_id_to_type)
: File "/home/vagrant/devel/pulp-2to3-migration/pulp_2to3_migration/app/pre_migration.py", line 320, in pre_migrate_all_without_content
: repo_id, distributors_repos, distributor_migrators, repo)
: File "/home/vagrant/devel/pulp-2to3-migration/pulp_2to3_migration/app/pre_migration.py", line 490, in pre_migrate_distributor
: needs_new_publication = dist_migrator.needs_new_publication(distributor)
: File "/home/vagrant/devel/pulp-2to3-migration/pulp_2to3_migration/app/plugin/rpm/repository.py", line 105, in needs_new_publication
: current_checksum_type = pulp2distributor.pulp3_publication.metadata_checksum_type
: AttributeError: 'Publication' object has no attribute 'metadata_checksum_type'

Also available in: Atom PDF