Bug #21275
closedcontent-override done by hammer has no effect when using AK
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%
1. Create the AK
- hammer activation-key create --name AK --lifecycle-environment-id 1 --content-view-id 1 --organization-id 1
- hammer product create --name Product --organization-id 1
- hammer repository create --name Repo --url "http://some.useful.repo/x86_64/os/" --content-type yum --product Product --organization-id 1
- 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
- hammer activation-key content-override --name AK --organization-id 1 --content-label Default_Organization_Product_Repo --value 0
Updated content override
- 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
--------------|------|------|-----|---------|-----------------------------------|----------|---------
5. @client: Register using AKUI check says "Enabled" (no effect?)
- 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- 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
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
Updated by Justin Sherrill about 7 years ago
- Translation missing: en.field_release set to 250
Updated by Brad Buckingham about 7 years ago
- Target version changed from 225 to 232
Updated by Brad Buckingham almost 7 years ago
- Target version changed from 232 to 236
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
Updated by The Foreman Bot almost 7 years ago
- Pull request https://github.com/Katello/hammer-cli-katello/pull/530 added
Updated by Christine Fouant almost 7 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset hammer-cli-katello|fe18baf2dbffad45e47b54f265329f0f31abde5f.
Updated by The Foreman Bot almost 7 years ago
- Pull request https://github.com/Katello/hammer-cli-katello/pull/537 added
Updated by Andrew Kofink almost 7 years ago
- Pull request deleted (
https://github.com/Katello/hammer-cli-katello/pull/537)
Updated by Andrew Kofink almost 7 years ago
- Translation missing: en.field_release changed from 250 to 329
Updated by Andrew Kofink almost 7 years ago
- Translation missing: en.field_release changed from 329 to 250
Updated by The Foreman Bot almost 7 years ago
- Pull request https://github.com/Katello/hammer-cli-katello/pull/537 added
Updated by Andrew Kofink almost 7 years ago
- Pull request deleted (
https://github.com/Katello/hammer-cli-katello/pull/537)
Updated by Andrew Kofink almost 7 years ago
- Translation missing: en.field_release changed from 250 to 329