Problem:
I have configured and registered host to Foreman/Katello server.
Host is attached to RedHat subscription.
When I try update or only list repository I have empty output, for example.
yum --verbose repolist all
Not loading “rhnplugin” plugin, as it is disabled
Loading “post-transaction-actions” plugin
Loading “priorities” plugin
Loading “product-id” plugin
Loading “search-disabled-repos” plugin
Loading “subscription-manager” plugin
Updating Subscription Management repositories.
Config time: 0.437
Yum version: 3.4.3
Setting up Package Sacks
repolist: 0
I see in file /etc/yum.repos.d/redhat.repo correct configuration for example repo URL:
[rhel-7-server-rpms]
metadata_expire = 1
enabled_metadata = 1
sslclientcert = /etc/pki/entitlement/134870980987234733.pem
baseurl = https://katello.example.com/pulp/repos/ORG/DEV/CV_RHEL7/content/dist/rhel/server/7/$releasever/$basearch/os
ui_repoid_vars = releasever basearch
sslverify = 1
name = Red Hat Enterprise Linux 7 Server (RPMs)
sslclientkey = /etc/pki/entitlement/134870980987234733-key.pem
gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
enabled = 1
sslcacert = /etc/rhsm/ca/katello-server-ca.pem
gpgcheck = 1
When i try curl for this url, I have response 404 not found.
On Katello server I have empty directories:
ls -l /var/lib/pulp/published/yum
total 0
drwxr-xr-x. 2 apache apache 6 Nov 19 16:00 http
drwxr-xr-x. 2 apache apache 6 Nov 19 16:00 https
I tried Republish Repository Metadata and job finished successfully, but still Repository is unavailable.
In Repository View for mentioned repo I see option:
Published At:
https://katello.example.com/pulp/repos/ORG/Library/content/dist/rhel/server/7/7Server/x86_64/os/
And this URL works correctly.
I don’t know whats happen, but earlier working as expected, and I can update host client.
Expected outcome:
Working repository on host client.
Foreman and Proxy versions
Version 2.2.1 © 2009-2021 Paul Kelly and Ohad Levy
Foreman and Proxy plugin versions:
|foreman-tasks|3.0.1|
|foreman_remote_execution|4.1.0|
|katello|3.17.1|
Distribution and version:
RedHat 7.9
Regards
Tom