Can't sync Centos8 Appstream or Powertools Repos - Foreman 2.5.4 / Katello 4.1.1

Hi Everyone,

Please see below…

Problem:
Can’t sync Centos8 Appstream or Powertools Repos

Expected outcome:
Successful Sync

Foreman and Proxy versions:
foreman-release-2.5.4-1.el8.noarch
foreman-proxy-2.5.4-1.el8.noarch

Foreman and Proxy plugin versions:
katello-4.1.4-1.el8.noarch

Distribution and version:
CentOS Linux release 8.4.2105

Other relevant data:
Fresh install of Foreman with the above versions. When trying to sync Centos8 AppStream and Powertools repos, continually errors out with RPM file checksum validation:

Katello::Errors::Pulp3Error: A file located at the url https://mirror.aarnet.edu.au/pub/centos/8/AppStream/x86_64/os/Packages/containernetworking-plugins-1.0.0-1.module_el8.5.0+890+6b136101.x86_64.rpm failed validation due to checksum.

I have tried several mirrors including a local one I have. All fail with similar errors.

Failed Repo Config:
[root@foreman ~]# hammer repository info --id 12
Id: 12
Name: CentOS Linux 8 - AppStream
Label: CentOS_Linux_8_-AppStream
Description:
Organization: Default Organization
Red Hat Repository: no
Content Type: yum
Mirror on Sync: no
Url: https://mirror.aarnet.edu.au/pub/centos/8/AppStream/x86_64/os/
Publish Via HTTP: yes
Published At: https://foreman.obscured.com.au/pulp/content/Default_Organization/Library/custom/Centos8/CentOS_Linux_8
-AppStream/
Relative Path: Default_Organization/Library/custom/Centos8/CentOS_Linux_8
-_AppStream
Download Policy: immediate
Ignorable Content Units:
HTTP Proxy:
HTTP Proxy Policy: global_default_http_proxy
Product:
Id: 1
Name: Centos8
GPG Key:
Id: 2
Name: RPM-GPG-KEY-CentOS-8
Sync:
Status: Warning
Last Sync Date: about 1 hour
Created: 2021/11/16 22:09:52
Updated: 2021/11/20 13:41:59
Content Counts:
Packages: 0
Source RPMS: 0
Package Groups: 0
Errata: 0
Module Streams: 0

Successful Repo Config:
[root@foreman ~]# hammer repository info --id 3
Id: 3
Name: CentOS Linux 8 - Extras
Label: CentOS_Linux_8_-Extras
Description:
Organization: Default Organization
Red Hat Repository: no
Content Type: yum
Mirror on Sync: no
Url: https://mirror.aarnet.edu.au/pub/centos/8/extras/x86_64/os/
Publish Via HTTP: yes
Published At: https://foreman.obscured.com.au/pulp/content/Default_Organization/Library/custom/Centos8/CentOS_Linux_8
-Extras/
Relative Path: Default_Organization/Library/custom/Centos8/CentOS_Linux_8
-_Extras
Download Policy: immediate
Ignorable Content Units:
HTTP Proxy:
HTTP Proxy Policy: global_default_http_proxy
Product:
Id: 1
Name: Centos8
GPG Key:
Id: 2
Name: RPM-GPG-KEY-CentOS-8
Sync:
Status: Success
Last Sync Date: about 22 hours
Created: 2021/11/11 12:26:29
Updated: 2021/11/20 13:41:58
Content Counts:
Packages: 38
Source RPMS: 0
Package Groups: 0
Errata: 0
Module Streams: 0

Any help will be greatly appreciated!! :slight_smile:

Les

If the problem exists over all mirrors it is typically a problem of the initial repository and requires a rebuild of the metadata. In most cases a package was changed later, but createrepo will not change metadata of an already included package as far as I know. So I would report this issue at CentOS.

1 Like