Description of problem:
Seeing this error when syncing the repo Red Hat Software Collections Source RPMs for Red Hat Enterprise Linux 7 RHEL 7 Server EUS x86_64 7.3 from upgrading 6.2 to 6.3.
This stops publishing a content view that includes this repo.
During the upgrade, the package python-pulp-rpm-common has been upgraded which has introduced a lot of new functionality. Possibly, there is a regression introduced in https://pulp.plan.io/issues/1618 which isn't accounted for this edge case in migration.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. upgrade 6.2 to 6.3
2. publish a content view with the above repo
Can't publish the content view with
RPM1008: Checksum type "sha256" is not available for all units in the repository. Make sure those units have been downloaded.
Can publish the content view.
In a fresh 6.3, syncing the repo doesn't have any issue.
Do you have an internal reproducer?
(In reply to Brad Buckingham from comment #1)
> Hi Matt,
> Do you have an internal reproducer?
Sorry for the late reply. Unfortunately, I can't reproduce the issue. It seems like cu somehow got checksum sha256 set on this repo, whereas the upstream repo is using sha1. After cu has corrected the checksum in the db, the issue has gone.
I think we could close this bug for now.
+1 not a bug
If download policy is on_demand (no bits are on a disk) and checksum type on a distributor is set explicitly and it isn't the same as the existing checksums, a publish will fail. It's a valid failure, because it's not possible to calculate a custom checksum without rpms being downloaded.