Uploaded image for project: 'Satellite'
  1. Satellite
  2. SAT-39803

No repositories available through subscriptions on a host after registering it to Red Hat Satellite using global registration method

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Normal Normal
    • 6.18.3
    • 6.15.z, 6.16.z, 6.17.z, 6.18.0
    • Registration
    • None
    • None
    • None
    • None

      Any RHEL 8.4+ AMIs launched in cloud, would have auto_registration enabled and hence, as they are not expected to consume content directly from redhat cdn or a satellite\katello\foreman, The manage_repos option is by default set to 0 or disabled.

      In order to register such a system back with a satellite\foreman\katello instance, it's important that we force manage_repos to be enabled ( set to 1 ) so that, after the registration the systems can see and consume repos from the parent satellite\katello\foreman instance and complete the post-registration steps as well.

       

      Steps to reproduce:

      • Take any RHEL 8.10 or 9.6 system

       

      • Run this command on the same system i.e.
        • subscription-manager config --rhsm.manage_repos=0 
        • subscription-manager refresh
        • yum clean all

       

      • Then try to register the system with the satellite server using the global registration command.  

       

      Actual Results:

      The system is registered but have access to no repositories. Sometimes that causes the whole registration process fail to complete as well.

      Check the output of "subscription-manager config" command and manage_repos is set to 0. 

       

      Expected Results: 

      Before the actual registration is done, the manage_repos should be set to 1. The same request was done back in 6.9 but were not implemented. 

      Ref: https://issues.redhat.com/browse/SAT-3389 

      Additional Comments:

      I have raised a redmine and pr

      Bug #38866: Always force manage_repos to be enabled in rhsm.conf as a part of subscription_manager_setup snippet execution - Foreman
      https://projects.theforeman.org/issues/38866 

      Fixes #38866 - Set manage_repos=1 in rhsm.conf by sayan3296 - Pull Request #10740 - theforeman/foreman
      https://github.com/theforeman/foreman/pull/10740 

              rhn-support-saydas Sayan Das
              rhn-support-saydas Sayan Das
              Jeremy Lenz Jeremy Lenz
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: