Bug 747980

Summary: In Katello / Headpin Web UI MachineType is not displayed under Current Subscriptions.
Product: Red Hat Satellite Reporter: Eric Sammons <esammons>
Component: WebUIAssignee: Tom McKay <tomckay>
Status: CLOSED CURRENTRELEASE QA Contact: Katello QA List <katello-qa-list>
Severity: high Docs Contact:
Priority: high    
Version: 6.0.0CC: cpelland, kbidarka
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Latest headpin branch off katello.git.
Last Closed: 2012-08-22 18:02:26 UTC Type: ---
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: 747354    
Attachments:
Description Flags
The machine Type via WEBUI org subscriptions none

Description Eric Sammons 2011-10-21 15:32:25 UTC
Description of problem:
When viewing multiple like subscriptions MachineType is not displayed thus making it difficult from the UI to determine if available subs are for Physical or Virtual systems.


Steps to Reproduce:
1. Import a manifest with like subs, only difference one sub is for MachineType physical and another is for MachineType is Virtual.
2. Navigate to [Content Management]
3. Note under Subscriptions you'll see something similar to the following:
NAME	CONSUMED SUBSCRIPTIONS	QUANTITY AVAILABLE
Red Hat Enterprise Linux, Standard L3 (for up to 2 sockets) 3 year 1	 4
Red Hat Enterprise Linux, Standard L3 (for up to 2 sockets) 3 year 0	 1
4. Go to a Registered System and run 'subscription-manager list --avail' and note you will see that MachineType is available and clearly calls out physical v. virtual.

Expected results:
MachineType should be displayed so that sysadmin can clearly what subs are being consumed.

Comment 1 Tom McKay 2011-12-01 22:09:11 UTC
commit d6a5509b0f7152592f2f8b8732c753a248bcc4b9
Author: Tom McKay <thomasmckay>
Date:   Thu Dec 1 17:02:57 2011 -0500

    + Bug 747980 - In Katello / Headpin Web UI MachineType is not displayed under Current Subscriptions
      https://bugzilla.redhat.com/show_bug.cgi?id=747980
      Machine Type column added to both Red Hat Providers and Organization / Subscriptions. Will display Virtual, Physical, or blank (for any).
    + Added Contract, Support Level, Arch, Begins, and Expires columns to Red Hat Providers to match Organization / Subscriptions
    + Removed non-functional Trend column from Organization / Subscriptions
    + Bug 756159 - After subscribing to RH product, ui shows duplicate product with "0 of -1" consumed
      https://bugzilla.redhat.com/show_bug.cgi?id=756159
      Changed -1 to Unlimited in Red Hat Providers and Organization / Subscriptions

Comment 2 Mike McCune 2012-01-26 19:07:07 UTC
mass ON_QA move

Comment 4 Kedar Bidarkar 2012-04-03 10:19:09 UTC
We do have an MachineType column, mentioning whether the added system is Virtual.

But below is some information about the inconsistencies observed.

The RHEL subscription is,  Type : Physical , while creating the manifests via the access url.


For the MachineTypes Column , Currently all the Subscription entries are being shown as "Virtual"  irrespective of whether it's a vm or a physical node. 


Also if one is to go as per the initial bug comments and trying to make consistency between subscription-manager and WEB-UI_org_subscription

a) subscription-manager
The Machine Type as per the -->  subscription-manager list --available 


[root@dhcp201-220 ~]# subscription-manager list --available | grep -i MachineType
MachineType:       	physical   

b) WEB-UI_org_subscription
But as per the WEBUI ->  Organisations -> Subscriptions all the subscriptions been consumed are been listed as "Virtual"

Comment 5 Kedar Bidarkar 2012-04-03 10:25:14 UTC
Created attachment 574813 [details]
The machine Type via WEBUI org subscriptions

Comment 6 Kedar Bidarkar 2012-04-03 10:26:55 UTC
NOTE : I have 2 node which are virtual (vm's) and I have added a physical node.

Comment 7 Tom McKay 2012-04-03 10:56:59 UTC
Looking at the attached screenshot mentioned in comment #5, I am guessing that the four virtual subscriptions are indeed virtual. Can you confirm that when this screenshot was taken there were four subscriptions consumed by systems and thus generating four virtual bonus pools? The last row in that screenshot is the parent subscription with a blank column indicating it can be used for physical or virtual machines.

Comment 8 Kedar Bidarkar 2012-04-04 13:47:45 UTC
Things got clarified, one can refer the comment5 attachment that now indeed the 
MachineType is visible.