Issue #7047
closedChecksum type "sha256" is not available for all units in the repository. Make sure those units have been downloaded
Description
Cloned from: https://bugzilla.redhat.com/show_bug.cgi?id=1850914
Description of problem: Below is the steps that how the error will happen:
- There is a sha1 srpm in downstream Pulp repo 'A' which was previously synced.
- Upstream repo 'A' deleted the srpm and switched to sha256 metadata
- Downstream pulp (still in sha1) sync with upstream pulp and fail with:
Checksum type "sha256" is not available for all units in the repository. Make sure those units have been downloaded¶
It is because there is a bug in Pulp that never delete the srpm. The srpm already deleted in the upstream pulp so downstream pulp is not able to determine the sha256 of the srpm which causes the error.
Steps to Reproduce:
- Create a "sha1" local repository with 1 rpm and 1 srpm in /var/www/html/pub/my_local_repo
createrepo -s sha1 /var/www/html/pub/my_local_repo
- Create a repo from the satellite web UI to sync the local repo.
- Sync the repo and wait until it is succeeded.
- Remove the the "repodata" and the srpm in /var/www/html/pub/my_local_repo
- Recreate a sha256 repo
createrepo /var/www/html/pub/my_local_repo
- Sync the repo again and get the following error.
Actual results: Checksum type "sha256" is not available for all units in the repository. Make sure those units have been downloaded
Expected results: Remove missing should remove srpm too.
Updated by pulpbot over 4 years ago
- Status changed from NEW to POST
Added by hyu over 4 years ago
Updated by hyu over 4 years ago
- Status changed from POST to MODIFIED
Applied in changeset 504e2b6678e9f99d1b29ead4bffc11444f44f3ae.
Added by hyu over 4 years ago
Revision 3cb31205 | View on GitHub
Remove missing should also remove missing srpms
Updated by pulpbot over 4 years ago
Updated by hyu over 4 years ago
Applied in changeset 3cb31205c9fcd7b1d6ddab34c600967b45a1a6ca.
Updated by ttereshc over 4 years ago
- Platform Release set to 2.21.3
- Tags Pulp 2 added
Updated by ttereshc over 4 years ago
- Status changed from MODIFIED to CLOSED - CURRENTRELEASE
Remove missing should also remove missing srpms
closes #7047 https://pulp.plan.io/issues/7047