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.

    • Phoenix - Content
    • False
    • Moderate
    • Sprint 135, Sprint 136, Sprint 137, Sprint 138, Sprint 139, Sprint 140, Sprint 141
    • None
    • None
    • None
    • Automated
    • 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.

            [SAT-23228] Enabling content from hammer tool for particular host, disables all enabled repostories of the host.

            Errata Tool added a comment -

            Since the problem described in this issue should be resolved in a recent advisory, it has been closed.

            For information on the advisory (Critical: Satellite 6.16.0 release), and where to find the updated files, follow the link below.

            If the solution does not work for you, open a new bug report.
            https://access.redhat.com/errata/RHSA-2024:8906

            Errata Tool added a comment - Since the problem described in this issue should be resolved in a recent advisory, it has been closed. For information on the advisory (Critical: Satellite 6.16.0 release), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2024:8906

            Test coverage: robottelo/tests/foreman/cli/test_activationkey.py::test_positive_content_override https://github.com/SatelliteQE/robottelo/blob/master/tests/foreman/cli/test_activationkey.py#L1343

            Vijaykumar Sawant added a comment - Test coverage: robottelo/tests/foreman/cli/test_activationkey.py::test_positive_content_override https://github.com/SatelliteQE/robottelo/blob/master/tests/foreman/cli/test_activationkey.py#L1343

            Jeremy Lenz added a comment -

            This was fixed in Katello 4.8, so should be in Satellite 6.14: https://github.com/Katello/katello/pull/10363

            Jeremy Lenz added a comment - This was fixed in Katello 4.8, so should be in Satellite 6.14: https://github.com/Katello/katello/pull/10363

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

                Created:
                Updated:
                Resolved:

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 2 hours
                  2h