Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
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 749570

Summary: need method(s) to list subscriptions for the org (+product?,+env?)
Product: Red Hat Satellite Reporter: Garik Khachikyan <gkhachik>
Component: APIAssignee: Lukas Zapletal <lzap>
Status: CLOSED CURRENTRELEASE QA Contact: Garik Khachikyan <gkhachik>
Severity: high Docs Contact:
Priority: high    
Version: 6.0.0CC: lzap, mkoci
Target Milestone: Unspecified   
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-08-22 18:03:17 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 747354    

Description Garik Khachikyan 2011-10-27 14:51:51 UTC
Description of problem:
Recently we have a call in activation keys that adds subscriptions to its content (for getting auto-subscribed to the appropriate pools during system registration, i guess). So but there is no option right now to list the subscriptions available for the org (+product and/org environment combinations there)

Version-Release number of selected component (if applicable):
recent katello: katello-0.1.96-1.git.46.fc9bd29.el6.x86_64

How reproducible:
always

Steps to Reproduce:
1. try to find a call that returns subscription list.
2.
3.
  
Actual results:
no way to list the subscription available for the current org.

Expected results:
helper calls (on cli as well) for providing subscriptions info

Additional info:
Priority is high if we really want to use the activation keys feature there.

Comment 1 Lukas Zapletal 2011-10-31 11:17:51 UTC
Taking the RHBZ cos I have been working on the task.

Comment 2 Lukas Zapletal 2011-11-01 14:41:08 UTC
80beb3d 749570 - showing pool id along with subscriptions

$ kk org subscriptions --name ACME_Corporation 
-----------------------------------------------------------------------------------------------
                                 Organization's Subscriptions
-----------------------------------------------------------------------------------------------

ProductName:    f15
Consumed:       0
ContractNumber: 
Sla:            
Id:             ff808081335e612e01335e68ff730004
StartDate:      2011/11/01 00:00:00
EndDate:        2041/10/24 00:00:00

Comment 3 Garik Khachikyan 2011-11-14 09:39:38 UTC
# VERIFIED

org subscriptions was enhanced to contain the poolid of the product (needed for the activation_keys for example).

thanks for the fix.

packages:
katello-0.1.101-1.git.30.d57dd1d.el6.x86_64
katello-cli-0.1.11-1.git.0.facb3bb.el6.noarch