Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 961024 - [RFE] Adding a content view to an activationkey should limit what subscriptions are available
Summary: [RFE] Adding a content view to an activationkey should limit what subscriptio...
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Content Management
Version: Nightly
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: Unspecified
Assignee: David Davis
QA Contact: Kedar Bidarkar
URL: http://projects.theforeman.org/issues...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-05-08 14:43 UTC by Og Maciel
Modified: 2017-02-23 21:20 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Enhancement
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-08-20 00:14:13 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 7095 0 None None None 2016-04-22 16:18:12 UTC

Description Og Maciel 2013-05-08 14:43:38 UTC
Description of problem:

If I have multiple providers with their unique products/repos and create and publish a content view that has only one of these products, when I add said content view to a new activationkey I expect that only the product added to the content view should be available to me in the Available Subscriptions tab. Currently, all products are listed as available for selection which to me is counter intuitive. I'd argue that only the one product that was added to the content view should be visible. If I removed the content view, then all available products can be displayed for selection.

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


How reproducible:


Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:

Comment 3 manjiri tapaswi 2013-07-15 22:41:39 UTC
Fixed 961024 - Limit available subscriptions for activationkeys by content view

PR: https://github.com/Katello/katello/pull/2634

Comment 4 manjiri tapaswi 2013-07-18 21:33:31 UTC
commit merged: c6be614

Comment 5 Brad Buckingham 2013-09-19 20:01:37 UTC
This bug was completed and should be available for QA.  Going to move to ON_QA.

Comment 6 Mike McCune 2013-10-17 20:58:46 UTC
Moving this to be tested during MDP3, not critical for MDP2 success story

Comment 8 Kedar Bidarkar 2014-04-28 13:14:20 UTC
This issue still persists

Tested with Sat6-Beta-Snap2,

1) Had multiple products with repos synced
2) Created a CV and added a repo
3) Published the CV version1
4) Promoted to Dev and then to Test
5) Moved to AK page and created a new ak with Test as env and CV as created in 2)
6) Moved to subscriptions, where all the products are still visible.


NOTE:- 

7) In CV we add repos and then publish/promote
8) But not sure why we see the entire products under AK's subscription page.
9) Wondering what happens when we have multiple repos under the product and only selected few are added to CV and published/promoted.
10) Will the systems/clients get access to all the repos under the product?

Comment 9 Mike McCune 2014-06-09 15:37:59 UTC
I do see products listed that do not exist in the environment selected in the activation key so this is definitely failing.


One thing to note thou is that you subscribe to products not repos.  The set of repos available to the client is determined by the ENV+CV you have selected for the AK (or via the registration process for the content host).

So if you only have 1 repo from a product in a CV in an env the system will only get access to that 1 repo.  They still need to consume a subscription from that product.

Comment 11 Partha Aji 2014-08-14 17:58:16 UTC
Created redmine issue http://projects.theforeman.org/issues/7095 from this bug

Comment 12 Tom McKay 2014-08-14 19:38:59 UTC
This is an RFE, not a bug. While it will be very useful to filter out subscriptions to those that match the content in the content view, there are some Red Hat subscription types that need to still be available.

1) Some subs have _no_ content at all but instead enable other subs.
2) Sometimes it is useful to assign a sub to a hypervisor, for example, so that "bonus" subs are created which in turn may be applied to guest hosts. These hypervisors don't actually consume content and thus may be in environments w/o any.

I'd suggest some design around this feature request:

UI - Perhaps add a filter element to the subs table to switch between all or content view limited.
CLI - Perhaps arguments to reflect same filter as UI.

Could be implemented as search?

Note that there is a related concept when assigning subs to content hosts as well and same design should be applied there as well.

Comment 13 Bryan Kearney 2014-08-20 00:13:26 UTC
Closing based on upstream discussions at https://github.com/Katello/katello/pull/4584. If you believe this was done in error, please re-open with your reasoning. Thanks!


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