Problem with RedHat Repositories

Hello Foreman friends!

I’m facing a problem with redhat repositories when i try to sync from client.

I have added my redhat manifest, a RedHat product was created and daily sync works well.
I have a Red Hat 7 host, i managed to enable the Red Hat specific repositories on it. When i go back on the host and try to “yum repolist” i got this error:

https://foreman.company/pulp/content/COMPANY/LC-PRODUCTION/CV-RHEL7/content/dist/rhel/server/7/7Server/x86_64/os/repodata/repomd.xml: [Errno 14] HTTPS Error 403 - Forbidden
Trying other mirror.
To address this issue please refer to the below knowledge base article

Why does yum fail with error "[Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 403" ? - Red Hat Customer Portal

If above article doesn’t help to resolve this issue please open a ticket with Red Hat Support.

I tried to reach the url but it doesn’t exist. The only url i have is: https://foreman.company/pulp/content/COMPANY/LC-PRODUCTION/CV-RHEL7/custom/EPEL or RPMfusion or MyOtherProducts

ContentView was freshly published.

What i am missing ?

Foreman version: 3.11

Thank you for your help

Can you try refreshing your manifest and see if that helps?

Hello Jeremy,

I refresh the manifest with a new one directly exported from redhat website but it does not help.

Same error message from my client.

We can also try some of the things in that doc:

subscription-manager refresh

and if that doesn’t work, see what this gives you:

# yum clean all 
# yum repolist

Could also check logs on the server in /var/log/candlepin/candlepin.log and see if anything looks wrong.

Commands doesn’t help on client :frowning: .

No error in candlepin.log when i do a yum repolist on client:

2024-11-13 16:02:56,518 [thread=https-jsse-nio-127.0.0.1-23443-exec-10] [req=6ef2cf43-9a8b-4d56-af6b-3f24b37a86ff, org=, csid=] INFO org.candlepin.servlet.filter.logging.LoggingFilter - Response: status=200, content-type=“application/json”, time=10
2024-11-13 16:02:56,690 [thread=https-jsse-nio-127.0.0.1-23443-exec-3] [req=07b13240-8258-4801-86f8-8dac4cf9d028, org=, csid=] INFO org.candlepin.servlet.filter.logging.LoggingFilter - Request: verb=GET, uri=/candlepin/consumers/0874d9a1-6d91-4a20-8ab2-fbb373dae571/release
2024-11-13 16:02:56,700 [thread=https-jsse-nio-127.0.0.1-23443-exec-3] [req=07b13240-8258-4801-86f8-8dac4cf9d028, org=MYORG, csid=] INFO org.candlepin.servlet.filter.logging.LoggingFilter - Response: status=200, content-type=“application/json”, time=11
2024-11-13 16:03:02,386 [thread=https-jsse-nio-127.0.0.1-23443-exec-9] [req=bf55168d-2e94-4105-9cc9-1faf1b124961, org=, csid=8b1e99b7-15b0-40d0-a77d-8869f28fab2a] INFO org.candlepin.servlet.filter.logging.LoggingFilter - Request: verb=GET, uri=/candlepin/consumers/de0ac0be-f258-4433-a101-55cff40220b3
2024-11-13 16:03:02,424 [thread=https-jsse-nio-127.0.0.1-23443-exec-9] [req=bf55168d-2e94-4105-9cc9-1faf1b124961, org=MYORG, csid=8b1e99b7-15b0-40d0-a77d-8869f28fab2a] INFO org.candlepin.servlet.filter.logging.LoggingFilter - Response: status=200, content-type=“application/json”, time=38
2024-11-13 16:03:02,627 [thread=https-jsse-nio-127.0.0.1-23443-exec-5] [req=5f75520f-fe74-4317-904a-8473a30294d1, org=, csid=cd25c6b6-9f39-467d-99b2-67fbb19a0571] INFO org.candlepin.servlet.filter.logging.LoggingFilter - Request: verb=GET, uri=/candlepin/consumers/de0ac0be-f258-4433-a101-55cff40220b3
2024-11-13 16:03:02,669 [thread=https-jsse-nio-127.0.0.1-23443-exec-5] [req=5f75520f-fe74-4317-904a-8473a30294d1, org=MYORG, csid=cd25c6b6-9f39-467d-99b2-67fbb19a0571] INFO org.candlepin.servlet.filter.logging.LoggingFilter - Response: status=200, content-type=“application/json”, time=42

Thanks for your help

What’s in candlepin.log when you try to dnf install something?

I can’t dnf, i got directly:

failure: repodata/repomd.xml from rhel-7-server-rpms: [Errno 256] No more mirrors to try.

https://myforeman/pulp/content/MYORG/LC-PRODUCTION/CV-RHEL7/content/dist/rhel/server/7/7Server/x86_64/os/repodata/repomd.xml: [Errno 14] HTTPS Error 403 - Forbidden

Same message as previously in the candlepin.log during the dnf install tentative

What happens if you register directly with the Red Hat CDN? Can you pull RPMs?

It’s not easy to test this method because my server is in an offline network and doesn’t have access to proxy.
That’s why i use foreman to give it update.

When i check the status with the bellow command I get the right repo available from Foreman:

subscription-manager list --match-installed --available
±------------------------------------------+
Available Subscriptions
±------------------------------------------+
Subscription Name: Red Hat Enterprise Linux Server with Satellite, Standard (Physical or Virtual Nodes)
Provides: Red Hat Beta
Red Hat Software Collections (for RHEL Server)
Red Hat Enterprise Linux for x86_64
Red Hat CodeReady Linux Builder for x86_64
Red Hat Ansible Engine
Oracle Java (for RHEL Server)
Red Hat Container Images Beta
Red Hat Developer Tools (for RHEL Server)
Red Hat Enterprise Linux Atomic Host
Red Hat Developer Tools Beta (for RHEL Server)
Red Hat Enterprise Linux Server
dotNET on RHEL (for RHEL Server)
Red Hat Software Collections Beta (for RHEL Server)
Red Hat Developer Toolset (for RHEL Server)
dotNET on RHEL Beta (for RHEL Server)
Red Hat Enterprise Linux Atomic Host Beta
Red Hat Container Images
SKU: XXXXX
Contract: XXXXX
Pool ID: XXXXXXXXXXXX
Provides Management: Yes
Available: 3
Suggested: 2
Service Type: L1-L3
Roles: Red Hat Enterprise Linux Server
Service Level: Standard
Usage: Production
Add-ons:
Subscription Type: Instance Based
Starts: 01/09/2024
Ends: 01/09/2028
Entitlement Type: Physical