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

Global registration script needs to enable satellite-client repo when chosing REX pull mode

XMLWordPrintable

    • 1
    • False
    • Moderate
    • Bug Fix
    • None
    • Rejected
    • Manual

      Description of problem:
      Trying to register an existing RHEL9 client system to my Satellite or Capsule and enabling REX pull mode there via registration template, the bash registration script fails on installing `foreman_ygg_worker` package.

      The reason is `satellite-client-6-for-rhel-9-x86_64-rpms` has been disabled - probably from past. And registering the system within the bash script does not update this.

      Before installing the package, we should enable the relevant repo.
       

      How reproducible:
      100% I guess

      Steps to Reproduce:
      1. have an existing RHEL9 client system, optionally with explicitly disabled `satellite-client-6-for-rhel-9-x86_64-rpms` repository.

      2. generate a global registration bash script with REX pull mode enabled

      3. run the curl ... | bash script on the RHEL9 client

      Actual behavior:
      3. fails with:

      Starting deployment of REX pull provider
      #
       # Installing packages
      #
      Updating Subscription Management repositories.
      Red Hat Enterprise Linux 9 for x86_64 - BaseOS (RPMs) 148 kB/s | 4.1 kB 00:00 
      Red Hat Enterprise Linux 9 for x86_64 - AppStream (RPMs) 169 kB/s | 4.5 kB 00:00 
      No match for argument: foreman_ygg_worker
      Error: Unable to find a match: foreman_ygg_worker
      Host [pmoravec-rhel9.EXAMPLE.com] initial configuration failed
      

      .. and `/etc/yum.repos.d/redhat.repo` has the `satellite-client-6-for-rhel-9-x86_64-rpms` repo disabled.

      Expected behavior:
      Register succeeds as therepo is enabled.
       

              rhn-engineering-lstejska Leos Stejskal
              rhn-support-pmoravec Pavel Moravec
              Amol Patil Amol Patil
              Lena Ansorgová (zuansorg) Lena Ansorgová (zuansorg)
              Adam Ruzicka Adam Ruzicka
              Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

                Created:
                Updated:
                Resolved: