Project

General

Profile

Actions

Bug #37151

closed

hammer allows creation of content overrides other than 'enabled'

Added by Jeremy Lenz 12 months ago. Updated about 1 month ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Subscriptions
Target version:
Fixed in Releases:
Found in Releases:

Description

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

Actions #1

Updated by Chris Roberts 12 months ago

  • Target version set to Katello 4.13.0
  • Triaged changed from No to Yes
Actions #2

Updated by Partha Aji 7 months ago

  • Target version changed from Katello 4.13.0 to Katello 4.15.0
Actions #3

Updated by Chris Roberts 2 months ago

  • Assignee set to Chris Roberts
Actions #4

Updated by Chris Roberts about 2 months ago

  • Target version changed from Katello 4.15.0 to Katello 4.16.0
Actions #5

Updated by The Foreman Bot about 2 months ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/Katello/hammer-cli-katello/pull/973 added
Actions #6

Updated by The Foreman Bot about 2 months ago

  • Pull request deleted (https://github.com/Katello/hammer-cli-katello/pull/973)
Actions #7

Updated by The Foreman Bot about 2 months ago

  • Pull request https://github.com/Katello/hammer-cli-katello/pull/977 added
Actions #8

Updated by Chris Roberts about 2 months ago

  • Status changed from Ready For Testing to Closed
Actions #9

Updated by The Foreman Bot about 1 month ago

  • Pull request https://github.com/Katello/hammer-cli-katello/pull/979 added
Actions

Also available in: Atom PDF