Actions
Issue #7417
closedmetadata checksum migration issue on re-run when pulp 2 distributor changed
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'
Updated by ttereshc over 4 years ago
- Subject changed from metadata checksum migration issue on re-run when distributor changed to metadata checksum migration issue on re-run when pulp 2 distributor changed
Updated by ttereshc over 4 years ago
- Status changed from NEW to ASSIGNED
- Assignee set to ttereshc
- Sprint set to Sprint 80
Added by ttereshc over 4 years ago
Added by ttereshc over 4 years ago
Revision dde216c6 | View on GitHub
Fix metadata checksum type re-migration when pulp 2 distributor changed.
Also keep re-migration no-op if the default checksum should be used.
Added by ttereshc over 4 years ago
Revision dde216c6 | View on GitHub
Fix metadata checksum type re-migration when pulp 2 distributor changed.
Also keep re-migration no-op if the default checksum should be used.
Updated by ttereshc over 4 years ago
- Status changed from ASSIGNED to MODIFIED
Applied in changeset pulp:pulp-2to3-migration|dde216c6c4a17f31f79caadd0ff2c1af509563f4.
Updated by pulpbot about 4 years ago
- Status changed from MODIFIED to CLOSED - CURRENTRELEASE
Actions
Fix metadata checksum type re-migration when pulp 2 distributor changed.
Also keep re-migration no-op if the default checksum should be used.
closes #7417 https://pulp.plan.io/issues/7417