Red Hat Bugzilla – Bug 1360239
`Activation key product content` does not display custom products associated with activation key
Last modified: 2017-05-01 09:53:23 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:
Running the following command resolved my issue: # foreman-rake katello:reindex Re-indexing Katello::Rpm
Created redmine issue http://projects.theforeman.org/issues/16174 from this bug
Upstream bug component is Content Management
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
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.
Moving this bug to POST for triage into Satellite 6 since the upstream issue http://projects.theforeman.org/issues/16174 has been resolved.
Please add verifications steps for this bug to help QE verify
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
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.
Created attachment 1267351 [details] verification screenshot
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