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
I see in file /etc/yum.repos.d/redhat.repo correct configuration for example repo URL:
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
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:
And this URL works correctly.
I don’t know whats happen, but earlier working as expected, and I can update host client.
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:
Distribution and version: