Bug 1596737

Summary: [v2v] Network selection only allow one selection if you add two vCenters to infra map
Product: Red Hat CloudForms Management Engine Reporter: Yadnyawalk Tale <ytale>
Component: UI - OPSAssignee: Brett Thurber <bthurber>
Status: CLOSED CURRENTRELEASE QA Contact: Yadnyawalk Tale <ytale>
Severity: medium Docs Contact:
Priority: medium    
Version: 5.9.0CC: awight, bthurber, cpelland, hkataria, jprause, lavenel, mpovolny, obarenbo, simaishi, smallamp, ytale
Target Milestone: GAKeywords: TestOnly, ZStream
Target Release: 5.10.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: v2v
Fixed In Version: 5.10.0.4 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1599864 (view as bug list) Environment:
Last Closed: 2019-02-11 14:01:17 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: Bug
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: CFME Core Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1599864    
Attachments:
Description Flags
network_missing.png
none
fixed_proof.png none

Description Yadnyawalk Tale 2018-06-29 14:55:41 UTC
Created attachment 1455526 [details]
network_missing.png

Description of problem:
Let say, you have to added two vcenter to one infra map. 
You can select two clusters, two datastores but only one network.
(Please note network selection is also cluster dependent, same as datastore selection)

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

How reproducible:
100%

Steps to Reproduce:
1. Add two vcenter provider at source, one rhvm provider at target
2. Try to create infra-map, map two clusters (vcenter1 to vcenter2)
3. map two datastores
4. map network of first cluster and you will find network with `same name` is missing from second cluster list

What do I mean by 4th step here?
Here for cluster `V2V_Cluster (V2V)`, I mapped `vsphere6-lab \ VM Network` to `rhvm \ VM_Network` and for cluster `Cluster (V2V)` when I tried to find network, I don't see `vsphere6-cfme \ VM Network`. It is not in list.
(check attached image)

Actual results:
Only showing one network

Expected results:
Should show two network as clusters are totally different. 
(Not sure if it is intentional but is so, will like to know reason)

Additional info:

Comment 2 Yadnyawalk Tale 2018-06-29 15:40:54 UTC
Workaround for this issue will be creating infra-map with single vcenter at source and single rhvm at target (that means using only one cluster at source).

Comment 5 Allen W 2018-07-05 13:58:11 UTC
https://github.com/ManageIQ/miq_v2v_ui_plugin/pull/470

☝🏿here is the pr!

Comment 8 Yadnyawalk Tale 2018-08-08 10:01:17 UTC
Created attachment 1474235 [details]
fixed_proof.png

Fixed! I can select two different networks with two different clusters.
Verified on: 5.10.0.6.20180725145922_d299ff5

Thanks!