Bug 913720 - rct cat-manifest > Subscription:> "Subscription Id:" should be labeled as "Order Number:"
Summary: rct cat-manifest > Subscription:> "Subscription Id:" should be labeled as "Or...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: subscription-manager
Version: 5.10
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: beta
: 5.10
Assignee: William Poteat
QA Contact: IDM QE LIST
URL:
Whiteboard:
Depends On:
Blocks: rhsm-rhel510 rhsm-2013
TreeView+ depends on / blocked
 
Reported: 2013-02-21 21:57 UTC by John Sefler
Modified: 2013-09-30 22:57 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
No description necessary
Clone Of:
Environment:
Last Closed: 2013-09-30 22:57:47 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2013:1332 0 normal SHIPPED_LIVE subscription-manager bug fix and enhancement update 2013-09-30 22:49:24 UTC

Description John Sefler 2013-02-21 21:57:48 UTC
Description of problem:
Included in the output from rct cat-manifest is a field called "Subscription Id:".  This should be changed to "Order Number:" to match the output terminology from rct cat-cert CERTIFICATE.

Version-Release number of selected component (if applicable):
[root@jsefler-7 ~]# rpm -q subscription-manager
subscription-manager-1.8.3-1.git.0.50cbc39.el7.x86_64

How reproducible:


Steps to Reproduce:
Given any manifest.zip file...
[root@jsefler-7 test-manifests]# rct cat-manifest manifest_RH1569626.zip | grep "Subscription:" -A14
Subscription:
	Name: RHN Monitoring (Up to 1 guest)
	Quantity: 1
	Created: 2013-02-21T15:31:13.000+0000
	Start Date: 2012-12-31T05:00:00.000+0000
	End Date: 2013-12-31T04:59:59.000+0000
	Suport Level: Layered
	Suport Type: L1-L3
	Architectures: 
	Product Id: RH1569626
	Contract: 
	Subscription Id: 2677371    <======================== Expected ====  Order Number: 2677371
	Entitlement File: export/entitlements/8a99f9833cf86efc013cfd613be066cb.json
	Certificate File: export/entitlement_certificates/2414805806930829936.pem
	Certificate Version: 1.0
[root@jsefler-7 test-manifests]# 

The value from this field comes from the entitlemnt cert as follows...
[root@jsefler-7 test-manifests]# rct dump-manifest manifest_RH1569626.zip
The manifest has been dumped to the current directory
[root@jsefler-7 test-manifests]# rct cat-cert export/entitlement_certificates/2414805806930829936.pem

+-------------------------------------------+
	Entitlement Certificate
+-------------------------------------------+

Certificate:
	Path: export/entitlement_certificates/2414805806930829936.pem
	Version: 1.0
	Serial: 2414805806930829936
	Start Date: 2012-12-31 05:00:00+00:00
	End Date: 2013-12-31 04:59:59+00:00

Subject:
	CN: 8a99f9833cf86efc013cfd613be066cb


Order:
	Name: RHN Monitoring (Up to 1 guest)
	Number: 2677371   <============ There's the corresponding Order Number (not Subscription Id)!
	SKU: RH1569626
	Contract: 10014710
	Account: 5206743
	Service Level: Layered
	Service Type: L1-L3
	Quantity: 100
	Quantity Used: 1
	Socket Limit: 
	RAM Limit: 
	Virt Limit: 
	Virt Only: False
	Subscription: 
	Stacking ID: 
	Warning Period: 0
	Provides Management: 0




Additional info:

Comment 1 Bryan Kearney 2013-02-22 18:15:30 UTC
commit b309a7c85b260de76a46e8fd613f01da192c2aea
Author: Bryan Kearney <bkearney>
Date:   Fri Feb 22 13:14:08 2013 -0500

    913720: Use the term order number instead of subscription id

Comment 2 Sharath Dwaral 2013-03-12 13:51:28 UTC
# rpm -qa | egrep "subscription-manager|python-rhsm"
subscription-manager-firstboot-1.8.4-1.el7.x86_64
python-rhsm-1.8.7-1.el7.x86_64
subscription-manager-gui-1.8.4-1.el7.x86_64
subscription-manager-migration-1.8.4-1.el7.x86_64
subscription-manager-1.8.4-1.el7.x86_64
subscription-manager-debuginfo-1.8.4-1.el7.x86_64

# rct cat-manifest stageSamTest20Nov2011.zip | grep "Subscription:" -A14
Subscription:
	Name: Red Hat Enterprise Linux Workstation, Standard
	Quantity: 10
	Created: 2011-11-20T22:43:46.000+0000
	Start Date: 2011-11-16T05:00:00.000+0000
	End Date: 2012-11-16T04:59:59.000+0000
	Service Level: STANDARD
	Service Type: L1-L3
	Architectures: 
	SKU: RH0958488
	Contract: 2635099
	Order Number: 2272977               <=========  Verified
	Entitlement File: export/entitlements/8a99f98133b862df0133c3264ba03dac.json
	Certificate File: export/entitlement_certificates/7197125163176484527.pem
	Certificate Version: 1.0


Verified

Comment 3 RHEL Program Management 2013-04-09 19:59:44 UTC
This request was evaluated by Red Hat Product Management for inclusion
in a Red Hat Enterprise Linux release.  Product Management has
requested further review of this request by Red Hat Engineering, for
potential inclusion in a Red Hat Enterprise Linux release for currently
deployed products.  This request is not yet committed for inclusion in
a release.

Comment 4 John Sefler 2013-05-08 19:15:58 UTC
Flipping this back to NEW status.

was switched from "Order Number" to "Order" in subscription-manager commit 75e43921983f615121166dea25940eed610b6b72

Comment 6 Matt Reid 2013-05-16 15:14:41 UTC
Works for me. I like rct cat-manifest outputting Order (sans Number, matches our subscription-manager outputs), and rct cat-cert outputting Order Number as Number, since it sits in the Order section, and Order appears two lines above it.

Comment 7 William Poteat 2013-05-17 17:48:57 UTC
resolved as per Matt's comment

Comment 8 Sharath Dwaral 2013-06-05 14:55:54 UTC
Version:
# rpm -qa | egrep "subscription-manager|python-rhsm"
subscription-manager-migration-data-1.11.3.1-1.git.1.78afd75.el5
subscription-manager-migration-1.8.10-1.git.1.b44c4b1.el5
python-rhsm-1.8.12-1.git.0.d747a65.el5
subscription-manager-firstboot-1.8.10-1.git.1.b44c4b1.el5
subscription-manager-1.8.10-1.git.1.b44c4b1.el5
subscription-manager-gui-1.8.10-1.git.1.b44c4b1.el5

# rct cat-manifest manifest_RH1569626.zip | grep "Subscription:" -A14
Subscription:
	Name: RHN Monitoring (Up to 1 guest)
	Quantity: 1
	Created: 2013-02-21T15:31:13.000+0000
	Start Date: 2012-12-31T05:00:00.000+0000
	End Date: 2013-12-31T04:59:59.000+0000
	Service Level: Layered
	Service Type: L1-L3
 	Architectures: 
	SKU: RH1569626
	Contract: 
	Order:                      <<<<<<<< VERIFIED
	Account: 5206743
	Entitlement File: export/entitlements/8a99f9833cf86efc013cfd613be066cb.json
	Certificate File: export/entitlement_certificates/2414805806930829936.pem


VERIFIED

Aditional Information

# rct cat-cert /etc/pki/entitlement/572987628391620534.pem | grep order -A10
>>	Number: order-8675309                
	SKU: awesomeos-all-just-86_64-cont
	Contract: 103
	Account: 12331131231
	Service Level: 
	Service Type: 
	Quantity: 10
	Quantity Used: 2
	Socket Limit: 1
	RAM Limit: 
	Core Limit:

Comment 10 errata-xmlrpc 2013-09-30 22:57:47 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHBA-2013-1332.html


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