Project

General

Profile

Actions

Bug #21275

closed

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

Added by Brad Buckingham about 7 years ago. Updated over 6 years ago.

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

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

Actions #1

Updated by Brad Buckingham about 7 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
Actions #2

Updated by Justin Sherrill about 7 years ago

  • Translation missing: en.field_release set to 250
Actions #3

Updated by Brad Buckingham about 7 years ago

  • Assignee set to Christine Fouant
Actions #4

Updated by Brad Buckingham about 7 years ago

  • Target version changed from 225 to 232
Actions #5

Updated by Brad Buckingham almost 7 years ago

  • Target version changed from 232 to 236
Actions #6

Updated by The Foreman Bot almost 7 years ago

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

Updated by The Foreman Bot almost 7 years ago

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

Updated by Christine Fouant almost 7 years ago

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

Updated by The Foreman Bot almost 7 years ago

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

Updated by Andrew Kofink almost 7 years ago

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

Updated by Andrew Kofink almost 7 years ago

  • Translation missing: en.field_release changed from 250 to 329
Actions #12

Updated by Andrew Kofink almost 7 years ago

  • Translation missing: en.field_release changed from 329 to 250
Actions #13

Updated by The Foreman Bot almost 7 years ago

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

Updated by Andrew Kofink almost 7 years ago

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

Updated by Andrew Kofink almost 7 years ago

  • Translation missing: en.field_release changed from 250 to 329
Actions

Also available in: Atom PDF