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

Enabling content from hammer tool for particular host, disables all enabled repostories of the host.

XMLWordPrintable

    • Sprint 135
    • Moderate
    • No

      Description of problem:

      While performing the below hammer command to enable(override) the repository from satellite 6.12.5 for a particular host is disabling all the repositories on the host.

      1. hammer host subscription content-override --content-label rhel-8-for-x86_64-baseos-rpms --value 1 --host host1.example.com

      The same command worked fine when I tested on satellite versions 6.11 and 6.14

      The issue is only with the hammer cli tool on the satellite 6.12 version

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

      How reproducible:
      100 % reproducible

      Steps to Reproduce:

      1. register a host to the satellite server
      2. enable and sync some repositories on the satellite
      3. now enable the repository from satellite cli for the particular host.

      1. hammer host subscription content-override --content-label <repo-label> --value 1 --host <hostname>
      1. hammer host subscription content-override --content-label rhel-8-for-x86_64-baseos-rpms --value 1 --host node3.example.com

      Actual results:

      1. yum repolist
        Updating Subscription Management repositories.
        YUM version: 4.7.0
        cachedir: /var/cache/dnf
        Total packages: 0

      Expected results:

      [On client cli]

      yum repolist
      Updating Subscription Management repositories.
      repo id repo name
      rhel-8-for-x86_64-appstream-rpms Red Hat Enterprise Linux 8 for x86_64 - AppStream (RPMs)
      rhel-8-for-x86_64-baseos-rpms Red Hat Enterprise Linux 8 for x86_64 - BaseOS (RPMs)

      Additional info: It works fine with a satellite GUI.

            jira-bugzilla-migration RH Bugzilla Integration
            rhn-support-shmohamm Shaikh Mohammed Afrid
            RH Bugzilla Integration RH Bugzilla Integration
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: