Unable to fetch repositories through Red Hat CDN, though the system is successfully registered.

Solution Verified - Updated -

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/Azure to on-premise fails to access repositories from Red Hat CDN.

Resolution

  • Enable the manage_repos parameter 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_repos was disabled in /etc/rhsm/rhsm.conf which does not allow yum to access the RHEL repositories from CDN via subscription-manager plugin.

Diagnostic Steps

  • The command yum update returns the message No Packages marked for Update even 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