Bug 1337810

Summary: Failed to list bonus pool on satellite webUI (by virt-who)
Product: Red Hat Satellite Reporter: Liushihui <shihliu>
Component: OrchestrationAssignee: Justin Sherrill <jsherril>
Status: CLOSED ERRATA QA Contact: Katello QA List <katello-qa-list>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: 6.2.0CC: bbuckingham, chrobert, cwelton, gxing, hsun, mmccune, sgao, shihliu, tomckay
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: x86_64   
OS: Linux   
URL: http://projects.theforeman.org/issues/15648
Whiteboard:
Fixed In Version: rubygem-katello-3.0.0.60-1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-07-27 11:42:37 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:

Description Liushihui 2016-05-20 06:44:17 UTC
Description of problem:
In satellite webUI, it can't show bonus pool on guest although host has subscribed a related physical pool.

Version-Release number of selected component (if applicable):
Satellite-6.2.0-RHEL-7-20160518
virt-who-0.17-1.el7.noarch
subscription-manager-1.17.6-1.el7.x86_64
python-rhsm-1.17.2-1.el7.x86_64

How reproducible:
Always

Steps to Reproduce:
1. Register system to satellite6.2, configure virt-who run at esx mode and make sure virt-who has send host/guest mapping info to satellite
2. Register guest to satellite. 
3. In host: subscribe physical pool which can generate bonus pool.
Open satellite webUI, go to Hosts-->content host-->[Hypervisor_id]-->Subscriptions-->Add, subscribe "Red Hat Enterprise Linux for Virtual Datacenters, Standard"
4. In guest: check bonus pool on available pool list.
In satellite webUI, go to Hosts-->content host-->[guest name]-->Subscriptions-->Add

Actual results:
The bonus pool can't show on the Subscriptions list in guest

Expected results:
The bonus pool should show on the Subscriptions list in guest

Additional info:
It hasn't this problem on guest's CLI, it can show the bonus pool.
[root@bootp-73-5-213 ~]# subscription-manager list --available
......................
Subscription Name:   Red Hat Enterprise Linux for Virtual Datacenters, Standard (DERIVED SKU)
Provides:            Red Hat Beta
                     Red Hat Software Collections (for RHEL Server)
                     Oracle Java (for RHEL Server)
                     Red Hat Enterprise Linux Server
                     Red Hat Software Collections Beta (for RHEL Server)
                     Red Hat Developer Toolset (for RHEL Server)
SKU:                 RH00050
Contract:            10752427
Pool ID:             8ac9835354c6fe370154ccd6a85604fd
Provides Management: Yes
Available:           Unlimited
Suggested:           1
Service Level:       Standard
Service Type:        L1-L3
Subscription Type:   Stackable
Ends:                02/28/2017
System Type:         Virtual

Comment 2 Tom McKay 2016-05-24 17:45:14 UTC
Can you confirm that in the UI for the guest that it shows the host on the Details page? The guest subscription will not be shown as available unless virt-who has worked successfully (and there are issues in SNAP12).

Comment 3 Liushihui 2016-05-25 01:07:33 UTC
Yes,  the guest has shown in the host Details page. Meanwhile, the bonus pool can show on CLI mode. it just can't show in the UI.

(In reply to Tom McKay from comment #2)
> Can you confirm that in the UI for the guest that it shows the host on the
> Details page? The guest subscription will not be shown as available unless
> virt-who has worked successfully (and there are issues in SNAP12).

Comment 4 Eko 2016-06-01 02:41:21 UTC
Subscribe a virtual bonus pool for a guest by CLI, and then open the webUI to check Subscription Details, can't find the the bonus pool from the list.

Comment 5 Eko 2016-06-13 07:49:17 UTC
still can reproduce in ​​Sat6.2-20160610.0

Comment 6 Eko 2016-06-21 07:43:25 UTC
verified with Satellite-6.2.0-RHEL-7-20160620.0, this issue can't be reproduced anymore, thanks.

Comment 7 Eko 2016-07-01 08:15:20 UTC
reopen it, this issue can be reproduced in Satellite-6.2.0-RHEL-7-20160629.1.

subscribed a physical pool for the hypervisor, sat6.2 webUI can't list the virtual pool.

Comment 9 Eko 2016-07-06 01:57:36 UTC
Hi Tom,
after subscribed a physical pool for hypervisor, I run "foreman-rake katello:reindex", and then the guest can list the virtual pool in WebUI.

Comment 10 Justin Sherrill 2016-07-11 16:33:49 UTC
Connecting redmine issue http://projects.theforeman.org/issues/15648 from this bug

Comment 11 Bryan Kearney 2016-07-11 18:14:25 UTC
Upstream bug component is Orchestration

Comment 12 Bryan Kearney 2016-07-12 14:15:15 UTC
Moving to POST since upstream bug http://projects.theforeman.org/issues/15648 has been closed

Comment 13 Eko 2016-07-19 09:12:51 UTC
verified with Satellite-6.2.0-RHEL-6-20160715.1
the virtual bonus pool can be showed from webUI

Comment 14 Bryan Kearney 2016-07-27 11:42:37 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.

https://access.redhat.com/errata/RHBA-2016:1501