Bug 1273404

Summary: Optimize Planning does not show duplicate VMs
Product: Red Hat CloudForms Management Engine Reporter: Christian Jung <cbolz>
Component: UI - OPSAssignee: lgalis
Status: CLOSED ERRATA QA Contact: Nandini Chandra <nachandr>
Severity: low Docs Contact:
Priority: medium    
Version: 5.4.0CC: hkataria, jhardy, jprause, mpovolny, obarenbo
Target Milestone: GAKeywords: ZStream
Target Release: 5.6.1   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: optimize
Fixed In Version: 5.6.1.2 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1291758 1356662 (view as bug list) Environment:
Last Closed: 2016-08-18 17:44:29 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: 1291758, 1356662    
Attachments:
Description Flags
two VMs with the same name in different providers
none
Optimize, Planning only shows one VM none

Description Christian Jung 2015-10-20 11:45:07 UTC
Description of problem:
Sometimes VMs with the same name can exist in multiple providers. E.g. "test1" exists in VMWare and RHEV.

In such a scenario the Optimize, Planning feature of CF only shows one of the two VMs.

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

How reproducible:
always

Steps to Reproduce:
1. create two providers e.g. RHEV and VMware
2. create a VM called "test1" in both providers
3. navigate to "Optimize, Planning"
4. select "All VMs"
5. the drop down list only shows "test1" once and does not indicate to which provider the VM belongs

Actual results:
"test1" is shown only once and there is no way to tell to which provider it belongs

Expected results:
there should be two VMs showing up and ideally they should indicate to which provider they belong (maybe something like "<vm name> on <provider>"

Comment 2 Christian Jung 2015-10-20 11:48:42 UTC
Created attachment 1084697 [details]
two VMs with the same name in different providers

Comment 3 Christian Jung 2015-10-20 11:49:32 UTC
Created attachment 1084698 [details]
Optimize, Planning only shows one VM

you can also see there is no way to tell on which provider this VM runs

Comment 6 CFME Bot 2016-06-27 20:01:00 UTC
New commit detected on ManageIQ/manageiq/master:
https://github.com/ManageIQ/manageiq/commit/4aad6822a43576d57c9f60adb614476d86f14109

commit 4aad6822a43576d57c9f60adb614476d86f14109
Author:     Laura Galis <lgalis>
AuthorDate: Wed Jun 22 11:56:24 2016 -0400
Commit:     Laura Galis <lgalis>
CommitDate: Mon Jun 27 13:35:27 2016 -0400

    VM with duplicate names are not listed in the Optimize->Planning VM list
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1273404

 app/controllers/miq_capacity_controller.rb | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

Comment 10 Nandini Chandra 2016-08-05 16:15:37 UTC
Verified in  5.6.1

Comment 12 errata-xmlrpc 2016-08-18 17:44:29 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://rhn.redhat.com/errata/RHSA-2016-1634.html