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

Disable the REX pull provider installation in the generated script for Host Content source change.

    • Rocket
    • 5
    • False
    • Moderate
    • Bug Fix
    • Hide
      .Reconfiguration script does not install pull provider on push mode hosts after host content source change

      Previously, when you changed the content source of a host and ran the manual reconfiguration script, the script attempted to install the `foreman_ygg_worker` package even if the host was in push mode for remote execution.
      This resulted in the failure of the script on hosts in push mode.
      Katello has been fixed to install the package on pull-mode hosts only.
      As a result, the reconfiguration script does not attempt to install the pull provider on hosts in push mode and the script succeeds.
      Show
      .Reconfiguration script does not install pull provider on push mode hosts after host content source change Previously, when you changed the content source of a host and ran the manual reconfiguration script, the script attempted to install the `foreman_ygg_worker` package even if the host was in push mode for remote execution. This resulted in the failure of the script on hosts in push mode. Katello has been fixed to install the package on pull-mode hosts only. As a result, the reconfiguration script does not attempt to install the pull provider on hosts in push mode and the script succeeds.
    • Done
    • Automated
    • No

      Description of problem:

      Can not disable the REX pull provider installation in the generated script for Host Content source change.

      Version-Release number of selected component (if applicable):

      Red Hat Satellite 6.14
      Red Hat Satellite 6.15

      How reproducible:

      100%

      Steps to Reproduce:

      1. On satellite Web UI >> Hosts >> All Hosts >> Edit a Host
      2. click on 'Change host content source' Select Content Source, Lifecycle environment and Content View
      3. Select 'Update Hosts Manually' Option and view the generated script

      Actual results:

      The Script try to install package which is not required in SSH push mode Satellite environment:

      ~~~
      ...
      echo "Starting deployment of REX pull provider"

      1. check if system is registered
        subscription-manager identity > /dev/null
        if [ $? -ne 0 ]; then
        echo "Please register with subscription-manager first, then re-run '$0'."
        exit 1
        fi

      set -e

      echo '#'
      echo '# Installing packages'
      echo '#'

      dnf -y install foreman_ygg_worker
      ...
      ~~

      Expected results:

      • Installation of package 'foreman_ygg_worker' is not required while Satellite is not configured to use 'REX pull mode'.
      • Need a way to remove steps 'Starting deployment of REX pull provider'.

              rhn-support-shwsingh Shweta Singh
              rhn-support-mkushwah Mohit Kushwah
              Shweta Singh Shweta Singh
              Brian Angelica Brian Angelica
              Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

                Created:
                Updated:
                Resolved: