Bug 1360239 - `Activation key product content` does not display custom products associated with activation key
Summary: `Activation key product content` does not display custom products associated ...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Content Management
Version: 6.2.0
Hardware: x86_64
OS: Linux
high
medium
Target Milestone: Unspecified
Assignee: John Mitsch
QA Contact: jcallaha
URL: http://projects.theforeman.org/issues...
Whiteboard:
Depends On:
Blocks: 1338516 1426386
TreeView+ depends on / blocked
 
Reported: 2016-07-26 10:17 UTC by Andrii Balakhtar
Modified: 2020-06-11 12:55 UTC (History)
11 users (show)

Fixed In Version: tfm-rubygem-katello-3.0.0.117-1
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1426386 (view as bug list)
Environment:
Last Closed: 2017-05-01 13:53:23 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
verification screenshot (109.60 KB, image/png)
2017-03-29 20:18 UTC, jcallaha
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 16174 0 High Resolved `Activation key product content` does not display custom products associated with activation key 2020-07-14 01:10:16 UTC
Red Hat Product Errata RHBA-2017:1191 0 normal SHIPPED_LIVE Satellite 6.2.9 Async Bug Release 2017-05-01 17:49:42 UTC

Description Andrii Balakhtar 2016-07-26 10:17:58 UTC
Created attachment 1184152 [details]
production.log

Description of problem:
`activation-key product-content` command/request returns only RH products associated with activation key, custom products are missing in output.
As after subscribing a host with that activation key i am able to install packages from custom product i assume custom product is actually associated with activation key, it's just not displayed via CLI/API/UI (`hammer activation-key product-content` command, GET /katello/api/activation_keys/:id/product_content request or `Product Content` tab on UI).

Version-Release number of selected component (if applicable):
Satellite 6.2.0 RCM

How reproducible:
Always

Steps to Reproduce:
1. Create Activation key
2. Associate RH product with Activation Key
3. Associate custom product with Activation Key
4. Check products associated with activation key by running `hammer activation-key product-content` command, GET /katello/api/activation_keys/:id/product_content request or `Product Content` tab on UI.

Actual results:
Only RH product is shown as associated.

Expected results:
Both products are shown.

Additional info:

Comment 4 Og Maciel 2016-08-17 19:58:21 UTC
Running the following command resolved my issue:

# foreman-rake katello:reindex
Re-indexing Katello::Rpm

Comment 5 John Mitsch 2016-08-18 17:53:06 UTC
Created redmine issue http://projects.theforeman.org/issues/16174 from this bug

Comment 6 Bryan Kearney 2016-08-18 20:17:04 UTC
Upstream bug component is Content Management

Comment 7 John Mitsch 2016-08-29 17:24:04 UTC
Since just the Subscriptions need to be indexed here, a shorter way to reindex the subscriptions as a workaround is to run

#foreman-rake console
>Katello::Subscription.import_all
>Katello::Pool.import_all

Comment 8 John Mitsch 2016-08-29 17:24:05 UTC
Since just the Subscriptions need to be indexed here, a shorter way to reindex the subscriptions as a workaround is to run

#foreman-rake console
>Katello::Subscription.import_all
>Katello::Pool.import_all

Comment 9 John Mitsch 2016-08-31 16:46:10 UTC
I'm inclined to think https://bugzilla.redhat.com/show_bug.cgi?id=1362194 will fix this (in 6.2.2), but don't know for sure as it is a transient error that is hard to reproduce in a dev environment.

We should see if anyone using 6.2.2 or greater hits this bug in the future.

Comment 10 Bryan Kearney 2016-10-19 20:08:39 UTC
Moving this bug to POST for triage into Satellite 6 since the upstream issue http://projects.theforeman.org/issues/16174 has been resolved.

Comment 11 Satellite Program 2017-02-23 21:08:49 UTC
Please add verifications steps for this bug to help QE verify

Comment 12 John Mitsch 2017-02-24 13:56:37 UTC
Verification for QE:

1. Create Activation key
2. Associate RH product with Activation Key
3. Associate custom product with Activation Key
4. Check products associated with activation key by running `hammer activation-key product-content` command, GET /katello/api/activation_keys/:id/product_content request or `Product Content` tab on UI.

make sure both RH and custom products are shown

Comment 13 jcallaha 2017-03-29 20:14:35 UTC
Verified in Satellite 6.2.9 snap 2

followed the steps outlined in #12. I had no issues viewing custom products in the activation key. See attached.

Comment 14 jcallaha 2017-03-29 20:18:00 UTC
Created attachment 1267351 [details]
verification screenshot

Comment 16 errata-xmlrpc 2017-05-01 13:53:23 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2017:1191


Note You need to log in before you can comment on or make changes to this bug.