Project

Profile

Help

Issue #7417

closed

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

Added by ttereshc over 4 years ago. Updated about 4 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'
Actions #1

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
Actions #2

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

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.

closes #7417 https://pulp.plan.io/issues/7417

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.

closes #7417 https://pulp.plan.io/issues/7417

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.

closes #7417 https://pulp.plan.io/issues/7417

Actions #3

Updated by ttereshc over 4 years ago

  • Status changed from ASSIGNED to MODIFIED
Actions #4

Updated by ttereshc about 4 years ago

  • Sprint/Milestone set to 0.4.0
Actions #5

Updated by pulpbot about 4 years ago

  • Status changed from MODIFIED to CLOSED - CURRENTRELEASE

Also available in: Atom PDF