Actions
Issue #7047
closedChecksum type "sha256" is not available for all units in the repository. Make sure those units have been downloaded
Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Assignee:
-
Sprint/Milestone:
-
Start date:
Due date:
Estimated time:
Severity:
3. High
Version:
2.21.1
Platform Release:
2.21.3
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Pulp 2
Sprint:
Quarter:
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.
Actions
Remove missing should also remove missing srpms
closes #7047 https://pulp.plan.io/issues/7047