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 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:
Embargoed:
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 ***