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