Problem:
After uploading a rpm-package to Katello, the name differs between what you see in the package-view of the product-page and what is found inside the actual repository. The url that dnf points to refers to the name of the package-view, which causes an 404 Not found error.
Expected outcome:
Being able to install the rpm-package using DNF.
Foreman and Proxy versions:
Foreman 3.4.0 & Katello 4.6.0
Distribution and version:
RHEL 8
Other relevant data:
Name in package-view of product-page.
Name in actual repository.
Output from DNF.
[root@splunkweb01.infra.org.nu ~]# dnf install splunk-8.1.12
Updating Subscription Management repositories.
Red Hat CodeReady Linux Builder for RHEL 8 x86_64 (RPMs) 176 kB/s | 4.5 kB 00:00
Dependencies resolved.
==============================================================================================================================================================
Package Architecture Version Repository Size
==============================================================================================================================================================
Downgrading:
splunk x86_64 8.1.12-4eb558a8f0b7 splunk 457 M
Transaction Summary
==============================================================================================================================================================
Downgrade 1 Package
Total download size: 457 M
Is this ok [y/N]: y
Downloading Packages:
[MIRROR] splunk-8.1.12-4eb558a8f0b7.x86_64.rpm: Status code: 404 for http://katello01.infra.org.nu/pulp/repos/Default_Organization/Library/custom/Aza/splunk/Packages/s/splunk-8.1.12-4eb558a8f0b7.x86_64.rpm (IP: 10.87.1.14)
[MIRROR] splunk-8.1.12-4eb558a8f0b7.x86_64.rpm: Status code: 404 for http://katello01.infra.org.nu/pulp/repos/Default_Organization/Library/custom/Aza/splunk/Packages/s/splunk-8.1.12-4eb558a8f0b7.x86_64.rpm (IP: 10.87.1.14)
[MIRROR] splunk-8.1.12-4eb558a8f0b7.x86_64.rpm: Status code: 404 for http://katello01.infra.org.nu/pulp/repos/Default_Organization/Library/custom/Aza/splunk/Packages/s/splunk-8.1.12-4eb558a8f0b7.x86_64.rpm (IP: 10.87.1.14)
[MIRROR] splunk-8.1.12-4eb558a8f0b7.x86_64.rpm: Status code: 404 for http://katello01.infra.org.nu/pulp/repos/Default_Organization/Library/custom/Aza/splunk/Packages/s/splunk-8.1.12-4eb558a8f0b7.x86_64.rpm (IP: 10.87.1.14)
[FAILED] splunk-8.1.12-4eb558a8f0b7.x86_64.rpm: No more mirrors to try - All mirrors were already tried without success
The downloaded packages were saved in cache until the next successful transaction.
You can remove cached packages by executing 'dnf clean packages'.
Error: Error downloading packages:
splunk-8.1.12-4eb558a8f0b7.x86_64: Cannot download, all mirrors were already tried without success
RPM Info.
rpm -qi -v splunk-8.1.12-4eb558a8f0b7.x86_64.rpm
warning: splunk-8.1.12-4eb558a8f0b7.x86_64.rpm: Header V4 RSA/SHA512 Signature, key ID b3cd4420: NOKEY
Name : splunk
Version : 8.1.12
Release : 4eb558a8f0b7
Architecture: x86_64
Install Date: (not installed)
Group : Applications/Internet
Size : 1369312122
License : Commercial
Signature : RSA/SHA512, tor 20 okt 2022 10:40:21, Key ID 5efa01edb3cd4420
Source RPM : splunk-8.1.12-4eb558a8f0b7.src.rpm
Build Date : tor 20 okt 2022 10:36:46
Build Host : f41d48f0d6e4
Relocations : /opt
Vendor : Splunk Inc. <info@splunk.com>
Summary : Splunk
Description :
The platform for machine data.