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.
  3. SAT-25822

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

XMLWordPrintable

    • Icon: Sub-task Sub-task
    • Resolution: Done
    • Icon: Undefined Undefined
    • 6.14.0
    • None
    • Hosts - Content
    • False
    • Hide

      None

      Show
      None
    • False
    • 0
    • Phoenix
    • Sprint 135, Sprint 136, Sprint 137, Sprint 138, Sprint 139

      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.

      QE Tracker for https://issues.redhat.com/browse/SAT-23228
      Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2263922

            rhn-support-visawant Vijaykumar Sawant
            rhn-engineering-paji Partha Aji
            Votes:
            0 Vote for this issue
            Watchers:
            2 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