Actions
Issue #8422
closedValueError: Repository contains disallowed package checksum type 'None', thus can't be published.
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version:
Platform Release:
OS:
Triaged:
No
Groomed:
No
Sprint Candidate:
No
Tags:
Sprint:
Sprint 92
Quarter:
Q1-2021
Description
[56ad69b1c82c47c8a1015304813e99f9]: pulp_rpm.app.tasks.publishing:INFO: Publishing: repository=rpm-with-modules, version=1
Mar 18 12:54:14 pulp2-nightly-pulp3-source-centos7.rhtemp.example.com rq[13360]: pulp [56ad69b1c82c47c8a1015304813e99f9]: rq.worker:ERROR: Traceback (most recent call last):
Mar 18 12:54:14 pulp2-nightly-pulp3-source-centos7.rhtemp.example.com rq[13360]: File "/usr/local/lib/pulp/lib64/python3.6/site-packages/rq/worker.py", line 975, in perform_job
Mar 18 12:54:14 pulp2-nightly-pulp3-source-centos7.rhtemp.example.com rq[13360]: rv = job.perform()
Mar 18 12:54:14 pulp2-nightly-pulp3-source-centos7.rhtemp.example.com rq[13360]: File "/usr/local/lib/pulp/lib64/python3.6/site-packages/rq/job.py", line 696, in perform
Mar 18 12:54:14 pulp2-nightly-pulp3-source-centos7.rhtemp.example.com rq[13360]: self._result = self._execute()
Mar 18 12:54:14 pulp2-nightly-pulp3-source-centos7.rhtemp.example.com rq[13360]: File "/usr/local/lib/pulp/lib64/python3.6/site-packages/rq/job.py", line 719, in _execute
Mar 18 12:54:14 pulp2-nightly-pulp3-source-centos7.rhtemp.example.com rq[13360]: return self.func(*self.args, **self.kwargs)
Mar 18 12:54:14 pulp2-nightly-pulp3-source-centos7.rhtemp.example.com rq[13360]: File "/home/vagrant/devel/pulp-2to3-migration/pulp_2to3_migration/app/migration.py", line 224, in complex_repo_migration
Mar 18 12:54:14 pulp2-nightly-pulp3-source-centos7.rhtemp.example.com rq[13360]: migrated_repo.pulp3_repository_version
Mar 18 12:54:14 pulp2-nightly-pulp3-source-centos7.rhtemp.example.com rq[13360]: File "/home/vagrant/devel/pulp-2to3-migration/pulp_2to3_migration/app/migration.py", line 371, in migrate_repo_distributor
Mar 18 12:54:14 pulp2-nightly-pulp3-source-centos7.rhtemp.example.com rq[13360]: pulp2dist, repo_version)
Mar 18 12:54:14 pulp2-nightly-pulp3-source-centos7.rhtemp.example.com rq[13360]: File "/home/vagrant/devel/pulp-2to3-migration/pulp_2to3_migration/app/plugin/rpm/repository.py", line 79, in migrate_to_pulp3
Mar 18 12:54:14 pulp2-nightly-pulp3-source-centos7.rhtemp.example.com rq[13360]: publish(repo_version.pk, checksum_types=checksum_types, sqlite_metadata=sqlite)
Mar 18 12:54:14 pulp2-nightly-pulp3-source-centos7.rhtemp.example.com rq[13360]: File "/home/vagrant/devel/pulp_rpm/pulp_rpm/app/tasks/publishing.py", line 320, in publish
Mar 18 12:54:14 pulp2-nightly-pulp3-source-centos7.rhtemp.example.com rq[13360]: metadata_signing_service=metadata_signing_service,
Mar 18 12:54:14 pulp2-nightly-pulp3-source-centos7.rhtemp.example.com rq[13360]: File "/home/vagrant/devel/pulp_rpm/pulp_rpm/app/tasks/publishing.py", line 371, in create_repomd_xml
Mar 18 12:54:14 pulp2-nightly-pulp3-source-centos7.rhtemp.example.com rq[13360]: "thus can't be published. {}".format(package_checksum_type, ALLOWED_CHECKSUM_ERROR_MSG)
Mar 18 12:54:14 pulp2-nightly-pulp3-source-centos7.rhtemp.example.com rq[13360]: ValueError: Repository contains disallowed package checksum type 'None', thus can't be published. Checksum must be one of the allowed checksum types.
Mar 18 12:54:14 pulp2-nightly-pulp3-source-centos7.rhtemp.example.com rq[13360]: You can adjust these with the 'ALLOWED_CONTENT_CHECKSUMS' setting.
Mar 18 12:54:14 pulp2-nightly-pulp3-source-centos7.rhtemp.example.com rq[13360]: Traceback (most recent call last):
Mar 18 12:54:14 pulp2-nightly-pulp3-source-centos7.rhtemp.example.com rq[13360]: File "/usr/local/lib/pulp/lib64/python3.6/site-packages/rq/worker.py", line 975, in perform_job
Mar 18 12:54:14 pulp2-nightly-pulp3-source-centos7.rhtemp.example.com rq[13360]: rv = job.perform()
Mar 18 12:54:14 pulp2-nightly-pulp3-source-centos7.rhtemp.example.com rq[13360]: File "/usr/local/lib/pulp/lib64/python3.6/site-packages/rq/job.py", line 696, in perform
Mar 18 12:54:14 pulp2-nightly-pulp3-source-centos7.rhtemp.example.com rq[13360]: self._result = self._execute()
Mar 18 12:54:14 pulp2-nightly-pulp3-source-centos7.rhtemp.example.com rq[13360]: File "/usr/local/lib/pulp/lib64/python3.6/site-packages/rq/job.py", line 719, in _execute
Mar 18 12:54:14 pulp2-nightly-pulp3-source-centos7.rhtemp.example.com rq[13360]: return self.func(*self.args, **self.kwargs)
Mar 18 12:54:14 pulp2-nightly-pulp3-source-centos7.rhtemp.example.com rq[13360]: File "/home/vagrant/devel/pulp-2to3-migration/pulp_2to3_migration/app/migration.py", line 224, in complex_repo_migration
Mar 18 12:54:14 pulp2-nightly-pulp3-source-centos7.rhtemp.example.com rq[13360]: migrated_repo.pulp3_repository_version
Mar 18 12:54:14 pulp2-nightly-pulp3-source-centos7.rhtemp.example.com rq[13360]: File "/home/vagrant/devel/pulp-2to3-migration/pulp_2to3_migration/app/migration.py", line 371, in migrate_repo_distributor
Mar 18 12:54:14 pulp2-nightly-pulp3-source-centos7.rhtemp.example.com rq[13360]: pulp2dist, repo_version)
Mar 18 12:54:14 pulp2-nightly-pulp3-source-centos7.rhtemp.example.com rq[13360]: File "/home/vagrant/devel/pulp-2to3-migration/pulp_2to3_migration/app/plugin/rpm/repository.py", line 79, in migrate_to_pulp3
Mar 18 12:54:14 pulp2-nightly-pulp3-source-centos7.rhtemp.example.com rq[13360]: publish(repo_version.pk, checksum_types=checksum_types, sqlite_metadata=sqlite)
Mar 18 12:54:14 pulp2-nightly-pulp3-source-centos7.rhtemp.example.com rq[13360]: File "/home/vagrant/devel/pulp_rpm/pulp_rpm/app/tasks/publishing.py", line 320, in publish
Mar 18 12:54:14 pulp2-nightly-pulp3-source-centos7.rhtemp.example.com rq[13360]: metadata_signing_service=metadata_signing_service,
Mar 18 12:54:14 pulp2-nightly-pulp3-source-centos7.rhtemp.example.com rq[13360]: File "/home/vagrant/devel/pulp_rpm/pulp_rpm/app/tasks/publishing.py", line 371, in create_repomd_xml
Mar 18 12:54:14 pulp2-nightly-pulp3-source-centos7.rhtemp.example.com rq[13360]: "thus can't be published. {}".format(package_checksum_type, ALLOWED_CHECKSUM_ERROR_MSG)
Mar 18 12:54:14 pulp2-nightly-pulp3-source-centos7.rhtemp.example.com rq[13360]: ValueError: Repository contains disallowed package checksum type 'None', thus can't be published. Checksum must be one of the allowed checksum types.
Mar 18 12:54:14 pulp2-nightly-pulp3-source-centos7.rhtemp.example.com rq[13360]: You can adjust these with the 'ALLOWED_CONTENT_CHECKSUMS' setting.
It can be reproduced only outside if the RPM plugin (e.g. migration plugin), however the signature of the publish
function is misleading, checksums parameter defaults to None
but the code assumes that it's always set.
For RPM plugin it is always set indeed - before the task is triggered.
Updated by pulpbot over 3 years ago
- Status changed from ASSIGNED to POST
Added by ttereshc over 3 years ago
Updated by ttereshc over 3 years ago
- Status changed from POST to MODIFIED
Applied in changeset 6305c58e97f419f220185f404817f14ab8acd6e6.
Updated by dalley over 3 years ago
- Status changed from MODIFIED to CLOSED - CURRENTRELEASE
Actions
Fix the case when package checksum type configuration is not provided.
closes #8422 https://pulp.plan.io/issues/8422