Unable to fetch repositories through Red Hat CDN, though the system is successfully registered.
Environment
- Red Hat Enterprise Linux (RHEL)
- Red Hat Subscription Management (RHSM)
- Red Hat Content Delivery Network (CDN)
Issue
- Not able to fetch repos from Red Hat Network, though the system is successfully registered using subscription-manager.
- Yum command shows
No Packages marked for Update. - The systems migrated from
AWS/Azureto on-premise fails to access repositories fromRed Hat CDN.
Resolution
-
Enable the
manage_reposparameter in/etc/rhsm/rhsm.conf:# Manage generation of yum repositories for subscribed content: manage_repos = 0 <<<<< Change this to 1
Root Cause
- The parameter
manage_reposwas disabled in/etc/rhsm/rhsm.confwhich does not allow yum to access the RHEL repositories from CDN via subscription-manager plugin.
Diagnostic Steps
-
The command
yum updatereturns the messageNo Packages marked for Updateeven though the system is properly registered.# yum repolist Loaded plugins: product-id, search-disabled-repos, security, subscription- : manager repolist: 0 # yum update Loaded plugins: product-id, search-disabled-repos, security, subscription- : manager Setting up Update Process No Packages marked for Update
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.
Comments