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

Creating an override with hammer for one repository overrides all repositories

XMLWordPrintable

    • False
    • Important
    • Sprint 124, Sprint 125, Sprint 126, Sprint 127, Sprint 128, Sprint 129, Sprint 130, Sprint 131, Sprint 132, Sprint 133, Sprint 134, Sprint 135, Sprint 136, Sprint 137, Sprint 138, Sprint 139, Sprint 140, Sprint 141, Sprint 142
    • None
    • None
    • None
    • To Do
    • Yes

      Description of problem:

      • When using hammer to set a repository to enabled will enable all repositories

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

      • Satellite 6.13

      How reproducible:

      • Everytime

      Steps to Reproduce:

      1. List enabled repositories for the client

      1. hammer host subscription product-content --content-access-mode-all=true --content-access-mode-env=true --host fluffy.example.com
        ----|----------------------------------------------------------------|-----------------------------------------|----------------|--------
        ID | NAME | LABEL | DEFAULT ENABLED? | OVERRIDE
        ----|----------------------------------------------------------------|-----------------------------------------|----------------|--------
        8227 | epel-9-x86_64 | redhat_epel_epel-9-x86_64 | yes |
        381 | Red Hat Enterprise Linux 9 for x86_64 - AppStream (Kickstart) | rhel-9-for-x86_64-appstream-kickstart | no |
        397 | Red Hat Enterprise Linux 9 for x86_64 - AppStream (RPMs) | rhel-9-for-x86_64-appstream-rpms | yes |
        468 | Red Hat Enterprise Linux 9 for x86_64 - BaseOS (Kickstart) | rhel-9-for-x86_64-baseos-kickstart | no |
        394 | Red Hat Enterprise Linux 9 for x86_64 - BaseOS (RPMs) | rhel-9-for-x86_64-baseos-rpms | yes |
        5429 | Red Hat Enterprise Linux 9 for x86_64 - High Availability (RPMs) | rhel-9-for-x86_64-highavailability-rpms | no |
        5882 | Red Hat Enterprise Linux 9 for x86_64 - Resilient Storage (RPMs) | rhel-9-for-x86_64-resilientstorage-rpms | no |
        385 | Red Hat Satellite Client 6 for RHEL 9 x86_64 (RPMs) | satellite-client-6-for-rhel-9-x86_64-rpms | no |
        ----|----------------------------------------------------------------|-----------------------------------------|----------------|--------

      2. Change the satellite-client-6-for-rhel-9-x86_64-rpms repo to enabled

      1. hammer host subscription content-override --host fluffy.example.com --content-label satellite-client-6-for-rhel-9-x86_64-rpms --enabled=true --value=true
        Updated content override.

      3. List enabled repositories for the client again
      [root@satellite6:/root]# hammer host subscription product-content --content-access-mode-all=true --content-access-mode-env=true --host fluffy.example.com
      ----|----------------------------------------------------------------|-----------------------------------------|----------------|---------
      ID | NAME | LABEL | DEFAULT ENABLED? | OVERRIDE
      ----|----------------------------------------------------------------|-----------------------------------------|----------------|---------
      8227 | epel-9-x86_64 | redhat_epel_epel-9-x86_64 | yes | enabled:1
      381 | Red Hat Enterprise Linux 9 for x86_64 - AppStream (Kickstart) | rhel-9-for-x86_64-appstream-kickstart | no | enabled:1
      397 | Red Hat Enterprise Linux 9 for x86_64 - AppStream (RPMs) | rhel-9-for-x86_64-appstream-rpms | yes | enabled:1
      468 | Red Hat Enterprise Linux 9 for x86_64 - BaseOS (Kickstart) | rhel-9-for-x86_64-baseos-kickstart | no | enabled:1
      394 | Red Hat Enterprise Linux 9 for x86_64 - BaseOS (RPMs) | rhel-9-for-x86_64-baseos-rpms | yes | enabled:1
      5429 | Red Hat Enterprise Linux 9 for x86_64 - High Availability (RPMs) | rhel-9-for-x86_64-highavailability-rpms | no | enabled:1
      5882 | Red Hat Enterprise Linux 9 for x86_64 - Resilient Storage (RPMs) | rhel-9-for-x86_64-resilientstorage-rpms | no | enabled:1
      385 | Red Hat Satellite Client 6 for RHEL 9 x86_64 (RPMs) | satellite-client-6-for-rhel-9-x86_64-rpms | no | enabled:1
      ----|----------------------------------------------------------------|-----------------------------------------|----------------|---------

      Actual results:

      • All repositories are now enabled

      Expected results:

      • Only satellite-client-6-for-rhel-9-x86_64-rpms should be enabled

      Additional info:

              rhn-engineering-lfu Lucy Fu
              rhn-support-smeyer Stefan Meyer
              Vijaykumar Sawant Vijaykumar Sawant
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: