Bug 1456825

Summary: Chargeback rate assignment page doesn't show duplicate clusters
Product: Red Hat CloudForms Management Engine Reporter: Nandini Chandra <nachandr>
Component: UI - OPSAssignee: Hilda Stastna <hstastna>
Status: CLOSED CURRENTRELEASE QA Contact: Nandini Chandra <nachandr>
Severity: medium Docs Contact:
Priority: medium    
Version: 5.8.0CC: hkataria, jhardy, mpovolny, obarenbo, simaishi
Target Milestone: GAKeywords: TestOnly
Target Release: 5.10.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: ui:chargeback
Fixed In Version: 5.10.0.0 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1517918 1518392 (view as bug list) Environment:
Last Closed: 2018-06-21 20:48:21 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: 1517918, 1518392    

Description Nandini Chandra 2017-05-30 12:42:34 UTC
Description of problem:
-----------------------
Sometimes clusters with the same name can exist in multiple providers. 
E.g. My appliance is managing vSphere 6.0 and vSphere 6.5 and "Cluster" exists in both these providers.

In such a scenario,the Chargeback rate assignment page only shows one of the two clusters.


Version-Release number of selected component (if applicable):
-------------------------------------------------------------
5.8


How reproducible:
-----------------
Always


Steps to Reproduce:
-------------------
1. Manage two providers that have at least 1 cluster with the same name.
2. Navigate to the Compute Rate Assignment page.
4. In the Assign to dropdwon, select 'Selected Cluster/Deployment Roles'.
5. The Selections section only shows "Cluster" once and does not indicate to which provider the cluster belongs.


Actual results:
--------------
'Cluster' is shown only once and there is no way to tell to which provider it belongs.


Expected results:
-----------------
There should be two clusters showing up and ideally they should indicate to which provider they belong (maybe something like "<provider>/<Cluster name>"


Additional info:
----------------

Comment 2 Nandini Chandra 2017-05-30 12:45:57 UTC
I believe this issue is also seen while assigning rates to 'Selected Datastores' on the Storage Rate Assignments page.

Comment 4 Hilda Stastna 2017-11-10 10:46:33 UTC
Just note that Compute Rate Assignment page can be found in
Cloud Intel -> Chargeback -> Assignments tab -> Compute.

Comment 5 Hilda Stastna 2017-11-10 12:40:47 UTC
fixing https://github.com/ManageIQ/manageiq-ui-classic/pull/2692