Bug 1455789

Summary: 500 Internal Server Error if Click the tab "Subscriptions=>Subscriptions" for a guest in Satellite WebUI
Product: Red Hat Satellite Reporter: Eko <hsun>
Component: Subscription ManagementAssignee: Eric Helms <ehelms>
Status: CLOSED CURRENTRELEASE QA Contact: Katello QA List <katello-qa-list>
Severity: urgent Docs Contact:
Priority: urgent    
Version: 6.2.10CC: andrew.schofield, bbuckingham, bkearney, jcallaha, sgao, shihliu, yuefliu
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-06-26 14:43:41 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
no virtual subscription found
none
visible subscriptions
none
/var/log/foreman/production.log none

Comment 1 Eko 2017-05-26 07:16:07 UTC
Created attachment 1282485 [details]
no virtual subscription found

Comment 2 Eko 2017-05-26 07:25:37 UTC
try to attach the virtual subscription to the guest by CLI, it can be attached normally, 
but still can't find the attached subscription in the Satellite WebUI.

Comment 4 Eko 2017-06-08 09:33:41 UTC
still can be reproduced in satellite6.2.10-snap3.0

Comment 5 jcallaha 2017-06-09 19:54:26 UTC
This is odd, as my 6.2.10 Snap 3 system is able to list the guest subscriptions in the UI without issues. See attached.

Comment 6 jcallaha 2017-06-09 19:55:41 UTC
Created attachment 1286517 [details]
visible subscriptions

Comment 7 Eko 2017-06-12 06:26:25 UTC
Hi jcallaha, 
I still can reproduce this issue for sat6.2.10-snap4, when I switched the Tab to "Subscriptions" => "Subscriptions" for the guest in webUI, it will show error message in /var/log/foreman/production.log, please refer to the attached file for detailed log.

2017-06-11 22:18:58 16a59705 [app] [E] NoMethodError: undefined method `hypervisor' for nil:Katello::HostSubscriptionPresenter
....
....
....
2017-06-11 22:20:22 22b3a0af [app] [I] Completed 500 Internal Server Error in 176ms (Views: 0.4ms | ActiveRecord: 3.3ms)

Comment 8 Eko 2017-06-12 06:27:08 UTC
Created attachment 1286930 [details]
/var/log/foreman/production.log

Comment 10 Eko 2017-06-16 09:31:37 UTC
can't be reproduced in sat6.2.10-snap5,0, 
marking verified.

Comment 11 Bryan Kearney 2017-06-26 14:43:41 UTC
Closing this out per comment 10.