Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1360239 - `Activation key product content` does not display custom products associated with activation key
`Activation key product content` does not display custom products associated ...
Status: CLOSED ERRATA
Product: Red Hat Satellite 6
Classification: Red Hat
Component: Content Management (Show other bugs)
6.2.0
x86_64 Linux
high Severity medium (vote)
: 6.2.9
: Unused
Assigned To: John Mitsch
jcallaha
http://projects.theforeman.org/issues...
: Regression, Triaged
Depends On:
Blocks: 1338516 1426386
  Show dependency treegraph
 
Reported: 2016-07-26 06:17 EDT by Andrii Balakhtar
Modified: 2017-05-01 09:53 EDT (History)
11 users (show)

See Also:
Fixed In Version: tfm-rubygem-katello-3.0.0.117-1
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1426386 (view as bug list)
Environment:
Last Closed: 2017-05-01 09:53:23 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


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


External Trackers
Tracker ID Priority Status Summary Last Updated
Foreman Issue Tracker 16174 None None None 2016-08-18 14:03 EDT
Red Hat Product Errata RHBA-2017:1191 normal SHIPPED_LIVE Satellite 6.2.9 Async Bug Release 2017-05-01 13:49:42 EDT

  None (edit)
Description Andrii Balakhtar 2016-07-26 06:17:58 EDT
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 15:58:21 EDT
Running the following command resolved my issue:

# foreman-rake katello:reindex
Re-indexing Katello::Rpm
Comment 5 John Mitsch 2016-08-18 13:53:06 EDT
Created redmine issue http://projects.theforeman.org/issues/16174 from this bug
Comment 6 Bryan Kearney 2016-08-18 16:17:04 EDT
Upstream bug component is Content Management
Comment 7 John Mitsch 2016-08-29 13:24:04 EDT
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 13:24:05 EDT
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 12:46:10 EDT
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 16:08:39 EDT
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 pm-sat@redhat.com 2017-02-23 16:08:49 EST
Please add verifications steps for this bug to help QE verify
Comment 12 John Mitsch 2017-02-24 08:56:37 EST
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 16:14:35 EDT
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 16:18 EDT
Created attachment 1267351 [details]
verification screenshot
Comment 16 errata-xmlrpc 2017-05-01 09:53:23 EDT
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.