Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1850914 - Checksum type "sha256" is not available for all units in the repository. Make sure those units have been downloaded
Summary: Checksum type "sha256" is not available for all units in the repository. Make...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Pulp
Version: 6.7.0
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: 6.8.0
Assignee: satellite6-bugs
QA Contact: Tasos Papaioannou
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-06-25 07:33 UTC by Hao Chang Yu
Modified: 2023-12-15 18:16 UTC (History)
20 users (show)

Fixed In Version: pulp-rpm-2.21.3-1, rubygem-katello-3.16.0-0.16.rc4.1
Doc Type: Known Issue
Doc Text:
Checksum type "sha256" is not available for all units in the repository. Make sure those units have been downloaded.
Clone Of:
Environment:
Last Closed: 2020-10-27 13:03:32 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 30235 0 Normal Closed The change of srpm count in the repository doesn't trigger the index content 2021-02-16 19:28:57 UTC
Github Katello katello pull 8791 0 None closed Fixes #30235 - Trigger index content when srpm count is updated 2021-02-16 20:06:16 UTC
Github pulp pulp_rpm pull 1758 0 None closed Remove missing should also remove missing srpms 2021-02-16 20:06:17 UTC
Pulp Redmine 7047 0 Normal CLOSED - CURRENTRELEASE Checksum type "sha256" is not available for all units in the repository. Make sure those units have been downloaded 2020-07-14 11:04:03 UTC
Red Hat Knowledge Base (Solution) 5188481 0 None None None 2020-06-29 03:09:47 UTC
Red Hat Product Errata RHSA-2020:4366 0 None None None 2020-10-27 13:03:53 UTC

Description Hao Chang Yu 2020-06-25 07:33:18 UTC
Description of problem:
Below is the steps that how the error will happen:

1) There is a sha1 srpm in downstream Pulp repo 'A' which was previously synced.
2) Upstream repo 'A' deleted the srpm and switched to sha256 metadata
3) 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:
1. 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

2. Create a repo from the satellite web UI to sync the local repo. 
3. Sync the repo and wait until it is succeeded.
4. Remove the the "repodata" and the srpm in /var/www/html/pub/my_local_repo
5. Recreate a sha256 repo

createrepo /var/www/html/pub/my_local_repo

6. 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.

Comment 2 pulp-infra@redhat.com 2020-06-25 13:03:25 UTC
The Pulp upstream bug status is at NEW. Updating the external tracker on this bug.

Comment 3 pulp-infra@redhat.com 2020-06-25 13:03:27 UTC
The Pulp upstream bug priority is at Normal. Updating the external tracker on this bug.

Comment 4 pulp-infra@redhat.com 2020-06-29 12:04:28 UTC
The Pulp upstream bug status is at POST. Updating the external tracker on this bug.

Comment 6 pulp-infra@redhat.com 2020-07-06 22:03:55 UTC
The Pulp upstream bug status is at MODIFIED. Updating the external tracker on this bug.

Comment 7 Bryan Kearney 2020-07-09 16:03:58 UTC
Moving this bug to POST for triage into Satellite since the upstream issue https://projects.theforeman.org/issues/30235 has been resolved.

Comment 8 pulp-infra@redhat.com 2020-07-14 11:04:05 UTC
The Pulp upstream bug status is at CLOSED - CURRENTRELEASE. Updating the external tracker on this bug.

Comment 9 Tasos Papaioannou 2020-09-29 20:03:57 UTC
Verified on 6.8.0_17.0.

Comment 12 errata-xmlrpc 2020-10-27 13:03:32 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Important: Satellite 6.8 release), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2020:4366


Note You need to log in before you can comment on or make changes to this bug.