Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1117123

Summary: Can't display "Red Hat Employee Subscription" on the SAM web UI
Product: [Retired] Subscription Asset Manager Reporter: Liushihui <shihliu>
Component: candlepinAssignee: Katello Bug Bin <katello-bugs>
Status: CLOSED WORKSFORME QA Contact: SAM QE List <sam-qe-list>
Severity: high Docs Contact:
Priority: unspecified    
Version: 1.4CC: liliu, sgao
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-07-23 02:20:48 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:
Attachments:
Description Flags
screenshot none

Description Liushihui 2014-07-08 05:56:27 UTC
Description of problem:
Register to SAM server, then list available subscriptions in the SAM web UI, it can't display the "Red Hat Employee Subscription"

Version-Release number of selected component (if applicable):
subscription-manager-1.11.3-6.el5
python-rhsm-1.11.3-3.el5
virt-who-0.9-5.el5
katello-headpin-1.4.3.26-1.el6sam_splice.noarch
candlepin-0.9.6.3-1.el6sam.noarch

How reproducible:
Always

Steps to Reproduce:
1. Register to SAM server.
[root@dhcp-66-103-123 ~]# subscription-manager register --username=admin --password=admin
2. In the CLI,Check the available subscription, it can display "Red Hat Employee Subscription"
[root@dhcp-66-103-123 ~]# subscription-manager list --available
+-------------------------------------------+
    Available Subscriptions
+-------------------------------------------+
Subscription Name: Red Hat Employee Subscription
Provides:          Red Hat Enterprise Linux Resilient Storage (for RHEL Server)
                   Oracle Java (for RHEL Server)
                   Red Hat Enterprise Linux Server
                   Red Hat Enterprise Linux High Availability (for RHEL Server)
                   Red Hat Enterprise Linux Workstation
                   Red Hat Enterprise Linux Load Balancer (for RHEL Server)
SKU:               SYS0395
Contract:          
Pool ID:           8ac200f546fac1fe0146fb79549e047f
Available:         50
Suggested:         1
Service Level:     None
Service Type:      None
Subscription Type: Standard
Ends:              12/31/2014
System Type:       Physical

3. Open SAM web UI with admin/admin: https://samserv.redhat.com/sam/
SAM server:10.66.129.94
4. Go to System-->All, choose the host which has been registered in the step1, Then click "subscription" item, 
check the "Available Subscriptions"
5. In the CLI, Subscribe the "Red Hat Employee Subscription", it can be subscribed successfully.
[root@dhcp-66-103-123 ~]# subscription-manager subscribe --pool=8ac200f546fac1fe0146fb79549e047f
Successfully attached a subscription for: Red Hat Employee Subscription
[root@dhcp-66-103-123 ~]# subscription-manager list --consumed
+-------------------------------------------+
   Consumed Subscriptions
+-------------------------------------------+
Subscription Name: Red Hat Employee Subscription
Provides:          Oracle Java (for RHEL Server)
                   Red Hat Enterprise Linux Workstation
                   Red Hat Enterprise Linux Load Balancer (for RHEL Server)
                   Red Hat Enterprise Linux Server
                   Red Hat Enterprise Linux High Availability (for RHEL Server)
                   Red Hat Enterprise Linux Resilient Storage (for RHEL Server)
SKU:               SYS0395
Contract:          
Account:           
Serial:            5041257105886827627
Pool ID:           8ac200f546fac1fe0146fb79549e047f
Active:            True
Quantity Used:     1
Service Level:     None
Service Type:      None
Status Details:    
Subscription Type: Standard
Starts:            12/31/2013
Ends:              12/31/2014
System Type:       Physical
6. In the SAM webUI,Go to System-->All, choose the host which has been registered in the step1, Then click "subscription" item.

Actual results:
1.After step4, On the SAM web UI, it can't display "Red Hat Employee Subscription" in the Available Subscriptions
2. After step6, On the SAM web UI,it can't display the subscribed pool and it will pop up error message:"undefined method `entitlementId' for nil:NilClass (NoMethodError)", please see the screeshot1 in the attachment.

Expected results:
1. After step4, On the SAM web UI,"Red Hat Employee Subscription" should display in the Available Subscriptions
2. After step6, On the SAM web UI, it should display the subscribed pool correctly.

Additional info:

Comment 1 Liushihui 2014-07-08 05:57:22 UTC
Created attachment 916267 [details]
screenshot

Comment 2 Liushihui 2014-07-23 02:20:48 UTC
Check it on SAM-1.4.1-RHEL-6-20140714.1, it can't reproduce now, Therefore, close it