Project

General

Profile

Bug #21275

content-override done by hammer has no effect when using AK

Added by Brad Buckingham over 4 years ago. Updated almost 4 years ago.

Status:
Closed
Priority:
Normal
Category:
Activation Key
Target version:
Fixed in Releases:
Found in Releases:
Red Hat JIRA:

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1489760

Description of problem:
overriding to enabled/disabled in hammer doesn't work.
Though hammer content-overide command finishes successfully, it has no effect when using AK while overriding in UI has.

Version-Release number of selected component (if applicable):
katello-3.4.5-1.el7sat.noarch
foreman-1.15.3-2.el7sat.noarch

How reproducible:
100%

Steps to Reproduce:
1. Create the AK
  1. hammer activation-key create --name AK --lifecycle-environment-id 1 --content-view-id 1 --organization-id 1
2. Create product with a repository
  1. hammer product create --name Product --organization-id 1
  2. hammer repository create --name Repo --url "http://some.useful.repo/x86_64/os/" --content-type yum --product Product --organization-id 1
  3. hammer product synchronize --name Product --organization-id 1

3. Assign the product to the AK
sub_id=$(hammer --csv subscription list --organization-id 1 | awk -F, '$3=="Product"{print$1}')
hammer activation-key add-subscription --name AK --organization-id 1 --subscription-id $sub_id

4. Override custom content in AK to disabled (since the default is enabled)
  1. hammer activation-key content-override --name AK --organization-id 1 --content-label Default_Organization_Product_Repo --value 0
    Updated content override
  1. hammer activation-key product-content --name AK --organization-id 1
    --------------|------|------|-----|---------|-----------------------------------|----------|---------
    ID | NAME | TYPE | URL | GPG KEY | LABEL | ENABLED? | OVERRIDE
    --------------|------|------|-----|---------|-----------------------------------|----------|---------
    1504093523357 | Repo | | | | Default_Organization_Product_Repo | yes | ak:0
    --------------|------|------|-----|---------|-----------------------------------|----------|---------

UI check says "Enabled" (no effect?)

5. @client: Register using AK
  1. subscription-manager register --activationkey AK --org Default_Organization
    The system has been registered with ID: a2adfb49-722b-46d1-8a88-59822f4ac29e

Installed Product Current Status:
Product Name: Red Hat Enterprise Linux Server
Status: Not Subscribed

Unable to find available subscriptions for all your installed products.

6. Check repos available
  1. yum repolist
    Loaded plugins: product-id, search-disabled-repos, subscription-manager
    repo id repo name status
    !Default_Organization_Product_Repo Repo 304
    repolist: 304

BAD repo is not disabled (it has really no effect)

Actual results:
content-override done by hammer has no effect

Expected results:
content-override done by hammer works

Associated revisions

Revision fe18baf2 (diff)
Added by Christine Fouant over 4 years ago

fixes #21275 - unique identifier needed for content-override name

Revision 52388edf
Added by Christine Fouant over 4 years ago

Merge pull request #530 from cfouant/content_override

fixes #21275 - unique identifier needed for content-override name

Revision 7d166b12 (diff)
Added by Christine Fouant over 4 years ago

fixes #21275 - content-override needs unique name identifier

History

#1 Updated by Brad Buckingham over 4 years ago

  • Subject changed from content-override done by hammer has no effect when using AK to content-override done by hammer has no effect when using AK
  • Target version set to 225

#2 Updated by Justin Sherrill over 4 years ago

  • Legacy Backlogs Release (now unused) set to 250

#3 Updated by Brad Buckingham over 4 years ago

  • Assignee set to Christine Fouant

#4 Updated by Brad Buckingham over 4 years ago

  • Target version changed from 225 to 232

#5 Updated by Brad Buckingham over 4 years ago

  • Target version changed from 232 to 236

#6 Updated by The Foreman Bot over 4 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/Katello/katello/pull/7081 added

#7 Updated by The Foreman Bot over 4 years ago

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

#8 Updated by Christine Fouant over 4 years ago

  • % Done changed from 0 to 100
  • Status changed from Ready For Testing to Closed

#9 Updated by The Foreman Bot over 4 years ago

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

#10 Updated by Andrew Kofink over 4 years ago

  • Pull request deleted (https://github.com/Katello/hammer-cli-katello/pull/537)

#11 Updated by Andrew Kofink over 4 years ago

  • Legacy Backlogs Release (now unused) changed from 250 to 329

#12 Updated by Andrew Kofink over 4 years ago

  • Legacy Backlogs Release (now unused) changed from 329 to 250

#13 Updated by The Foreman Bot over 4 years ago

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

#14 Updated by Andrew Kofink over 4 years ago

  • Pull request deleted (https://github.com/Katello/hammer-cli-katello/pull/537)

#15 Updated by Andrew Kofink over 4 years ago

  • Legacy Backlogs Release (now unused) changed from 250 to 329

Also available in: Atom PDF