Problem: Receiving errors when it attempts to sync puppet6 repo
Expected outcome: Sync to completion without error
Foreman and Proxy versions: 2.3.3
Foreman and Proxy plugin versions: Katello 3.18.1
Distribution and version: CentOS 7
Other relevant data:
Brand new install. Receiving this error when it syncs:
Package pdk-0:1.10.0.0-1.el7.x86_64 does not contain allowed checksum type, thus can’t be published. Checksum must be one of allowed types: [‘md5’, ‘sha1’, ‘sha224’, ‘sha256’, ‘sha384’, ‘sha512’].
You can adjust these with the ‘ALLOWED_CONTENT_CHECKSUMS’ setting.
I am new to this and had no issues adding in CentOS 7, EPEL7, and the foreman repos. Only had this problem with puppet6 yum repo and everything looks fine to me. If I look at the currently published Content View I can see that the puppet packages show up there. If I navigate to the published URL for that repo the only contents are a file “config.repo” and the “repodata/” folder.
I’m facing the same trouble here
My diagnostic is that according to https://yum.puppetlabs.com/puppet6/el/7/x86_64/repodata/repomd.xml the checksums type for puppet repositories is “sha” which is not an ‘ALLOWED_CONTENT_CHECKSUMS’
Is there someone to tell us how to modify this setting without break pulp ?
However, I tried editing a few of the files in which the array with the different checksums is defined, but I could not make Pulp process the puppet6 repo…
This appears to be a Pulp 3 bug. Perhaps you should report it @ Overview - Pulp.
You should not edit the sources for this. ALLOWED_CONTENT_CHECKSUMS is a setting and belongs in /etc/pulp/settings.py if you want to override this. Note that the installer will remove it again, but it can be a good workaround while we fix the code.
@jost yours appears to be a 160-bit checksum, i.e. SHA-1.
Adding an ALLOWED_CONTENT_CHECKSUMS that includes sha didn’t work for me unfortunately – I end up with
There was an issue with the backend service pulp3: 502 Bad Gateway
because pulpcore-resource-manager.service failed to start from
django.core.exceptions.ImproperlyConfigured: ALLOWED_CONTENT_CHECKSUMS may only contain algorithms known to pulp - see constants.ALL_KNOWN_CONTENT_CHECKSUMS for the allowed list. Unknown algorithms provided: {‘sha’}
I have yet to investigate how difficult the patch would be.
I changed the “yum metadata checksum” to sha1 for the repo (via the gui) and it then synced OK.Didn’t work before I did this and I’ve never had to do this for any other repo I have setup to sync.
This was on versions:
pulp-server-2.21.5-1
foreman-2.3.3-1
katello-3.18.2-1
Anyone ever find a solution to this? I’m running into the same problem with Puppet6 repos in my Katello 3.18 environment.
I’m also hitting the same issue with MySQL repos
Package matching query does not exist.Package pdk-0:1.18.0.0-1.el8.x86_64 as content unit 093820dd-7874-4056-8292-621bc592ef5f contains forbidden checksum type ‘sha’, thus can’t be published. Checksum must be one of the allowed checksum types.
You can adjust these with the ‘ALLOWED_CONTENT_CHECKSUMS’ setting.
I tried adding sha1 to /etc/pulp/settings.py. Adding “sha” breaks pulp.