Bug 1035608

Summary: Both account and contract's value are blank in the subscription's consumed list
Product: [Retired] Subscription Asset Manager Reporter: Liushihui <shihliu>
Component: katelloAssignee: Katello Bug Bin <katello-bugs>
Status: CLOSED WORKSFORME QA Contact: SAM QE List <sam-qe-list>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 1.3CC: liliu, qianzhan, sgao, wpoteat
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-04-18 05:54:31 UTC Type: Bug
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: 971511    
Attachments:
Description Flags
SAM manifest none

Description Liushihui 2013-11-28 08:15:32 UTC
Created attachment 830066 [details]
SAM manifest

Description of problem:
After subscribe any subscription in the SAM server, The account and contract's display empty in the subscription's consumed list 

Version-Release number of selected component (if applicable):
virt-who-0.8-8.el7.noarch
python-rhsm-1.10.6-1.el7.x86_64
subscription-manager-1.10.6-1.el7.x86_64

How reproducible:
Always

Steps to Reproduce:
1. Import the manifest(in the attachment) to SAM server
# headpin -u admin -p admin provider import_manifest --name='Red Hat' --org=ACME_Corporation --file=[manifest package]

2. Register to the SAM server
# subscription-manager register --username=admin --password=admin

3. Subscribe any subscription [eg. Instancebase subscription]
# subscription-manager subscribe --pool=8ac28c34420c976801420c9aaff60239

4. List the consumed subscription
[root@dhcp-13-87 ~]# subscription-manager list --consumed
+-------------------------------------------+
   Consumed Subscriptions
+-------------------------------------------+
Subscription Name: Red Hat Enterprise Linux Server, Premium (Physical or Virtual Nodes)
Provides:          Red Hat Enterprise Linux High Performance Networking (for RHEL Server) - Extended Update Support
                   Red Hat Enterprise Linux Server - Extended Update Support
                   Red Hat Enterprise Linux Server
                   Red Hat EUCJP Support (for RHEL Server) - Extended Update Support
                   Red Hat Enterprise Linux Resilient Storage (for RHEL Server) - Extended Update Support
                   Red Hat Software Collections (for RHEL Server)
                   Red Hat Beta
                   Red Hat Enterprise Linux High Availability (for RHEL Server) - Extended Update Support
                   Red Hat Enterprise Linux Scalable File System (for RHEL Server) - Extended Update Support
                   Red Hat Software Collections Beta (for RHEL Server)
                   Red Hat Enterprise Linux Load Balancer (for RHEL Server) - Extended Update Support
                   Red Hat S-JIS Support (for RHEL Server) - Extended Update Support
SKU:               RH00003
Contract:          
Account:           
Serial:            9181240036930342728
Pool ID:           8ac28c34420c976801420c9aaff60239
Active:            True
Quantity Used:     1
Service Level:     Premium
Service Type:      L1-L3
Status Details:    
Starts:            12/31/2012
Ends:              12/31/2013
System Type:       Physical

Actual results:
Both Contract and Account's value are blank

Expected results:
It should display the correct value of Contract and Account

Additional info:
If subscribe the same subscription in the stage candlepin, it hasn't this problem, the value of Contract and Account can display in the consumed list.

Comment 1 William Poteat 2014-01-07 20:38:40 UTC
confirmed that this is not an issue in current candlepin. it would seem that it is a katello/SAM issue if it still exists.

Comment 2 Liushihui 2014-01-08 07:30:33 UTC
it isn't exist on the latest RHEL-7.0-20131222.0-Server-x86_64(KVM) against SAM-1.3.1-RHEL-6-20131219.1

Version-Release number of selected component:
subscription-manager-1.10.8-1.el7.x86_64
python-rhsm-1.10.8-1.el7.x86_64
virt-who-0.8-10.el7.noarch
katello-headpin-1.4.3.23-1.el6sam_splice.noarch
candlepin-0.8.26.0-1.el6sam.noarch

Comment 3 Liushihui 2014-04-18 05:54:31 UTC
It can't reproduce on the latest RHEL-7.0-20140409.0(KVM) against SAM-1.4.0-RHEL-6-20140416.0, Therefore, close it as WORKSFORME