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

hammer allows creation of content overrides other than 'enabled'

XMLWordPrintable

    • 1
    • False
    • Hide

      None

      Show
      None
    • False
    • rubygem-hammer_cli_katello-1.16.0-0.1.pre.main.20241204082514git93d8f61.el9.noarch.rpm
    • 0
    • Phoenix - Subscriptions
    • Sprint 142, Sprint 143, Sprint 144, Sprint 145
    • Moderate
    • Customer Facing
    • To Do
    • No

      In Candlepin, content overrides are attached to a consumer (content host) and have 'name' and a 'value' attributes:

      hammer activation-key content-override [OPTIONS]

      --override-name VALUE Override parameter key or name.
      To enable or disable a repo select 'enabled'.
      Default value: enabled
      Default: "enabled"
      --value VALUE Override value. Note for repo enablement you can use a boolean value

      In the web UI, the only content overrides displayed are those with the name 'enabled.' However, you can use subscription-manager to set other overrides on the host. For example:

      subscription-manager repo-override --add gpgcheck:0 --repo satellite-client-6-for-rhel-8-x86_64-rpms

      This will cause your redhat.repo file to be altered to say

      gpgcheck = 0

      In Katello, we do not support or display any overrides besides 'enabled'. However, they can be added via hammer. As these are unsupported, we should disallow this in Hammer as well.

      needs removal from both

      hammer host subscription content-override
      hammer activation-key content-override

              rhn-support-chrobert Chris Roberts
              satellite-focaccia-bot Focaccia Bot
              Vijaykumar Sawant Vijaykumar Sawant
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: