Bug 795525

Summary: 'katello org subscriptions' incorrectly labels output column as "ProductName"
Product: Red Hat Satellite Reporter: James Laska <jlaska>
Component: katello-agentAssignee: Lukas Zapletal <lzap>
Status: CLOSED DUPLICATE QA Contact: Katello QA List <katello-qa-list>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.0.0CC: jturner, lzap, mmccune, tstrachota
Target Milestone: UnspecifiedKeywords: Triaged
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-27 15:53:08 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
0001-795525-Change-productName-column-header-to-Subscript.patch none

Description James Laska 2012-02-20 19:12:24 UTC
Description of problem:

The command 'katello org subscriptions' output header shows 'ProductName'.  However, there are no matching products by the name used (in the case of RHEL).  I believe the column is incorrectly named.  Perhaps it should simple state "Name" or "Subscription"?

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

 * katello-0.1.238-4.el6.noarch
 * katello-cli-0.1.54-2.el6.noarch

Steps to Reproduce:
1. katello -u admin -p admin product list --org=ACME_Corporation -g
2. katello -u admin -p admin org subscriptions --org=ACME_Corporation -g
 
Actual results:

> katello> product list --org=ACME_Corporation -g
> -----------------------------------------------------------------------------------------------------------------------------------------
>                                   Product List For Organization ACME_Corporation, Environment 'Library'
>  
>  Id          Name                                                              Provider Id   Provider Name   Sync Plan Name   GPG key 
> -----------------------------------------------------------------------------------------------------------------------------------------
>  69          Red Hat Enterprise Linux Server                                   1             Red Hat         None                     
>  MCT0917F3   Red Hat Enterprise Linux Standard L3 for up to 2 sockets 3 year   1             Red Hat         None                     

> katello> org subscriptions --name=ACME_Corporation -g
> -----------------------------------------------------------------------------------------------------------------------------------------
>                                                       Organization's Subscriptions
>  
>  ProductName                                                          Consumed   Id                               
> -----------------------------------------------------------------------------------------------------------------------------------------
>  Red Hat Enterprise Linux, Standard L3 (for up to 2 sockets) 3 year   0          8a90ccd5359eb30501359ebccc40002a 

    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    Does not match the name of any of the products listed earlier

Expected results:

> katello> org subscriptions --name=ACME_Corporation -g
> -----------------------------------------------------------------------------------------------------------------------------------------
>                                                       Organization's Subscriptions
>  
>  Subscription Name                                                    Consumed   Id                               
> -----------------------------------------------------------------------------------------------------------------------------------------
>  Red Hat Enterprise Linux, Standard L3 (for up to 2 sockets) 3 year   0          8a90ccd5359eb30501359ebccc40002a

Comment 1 James Laska 2012-02-20 19:13:34 UTC
Created attachment 564508 [details]
0001-795525-Change-productName-column-header-to-Subscript.patch

Proposed tested patch that changes the column header name from 'ProductName', to 'Subscription'

Comment 4 Lukas Zapletal 2012-05-24 08:30:39 UTC
According to the Bug 815223 I will apply James' patch. Also note Bug 824069 - we are no longer listing all products, marketing are hidden by default.

Comment 5 Lukas Zapletal 2012-08-27 15:53:08 UTC
Bug 824069 fixed. Errata is out.

*** This bug has been marked as a duplicate of bug 824069 ***