Bug 1467399

Summary: [VMWARE]Auto_placement provision into DVPortGroup fails on Virtual Center 6.5
Product: Red Hat CloudForms Management Engine Reporter: Leo Khomenko <lkhomenk>
Component: ProvisioningAssignee: Lucy Fu <lufu>
Status: CLOSED CURRENTRELEASE QA Contact: Leo Khomenko <lkhomenk>
Severity: high Docs Contact:
Priority: high    
Version: 5.8.0CC: anewman, dajohnso, gblomqui, gmccullo, jfrey, jhardy, lkhomenk, lufu, obarenbo, rspagnol, simaishi
Target Milestone: GAKeywords: TestOnly, ZStream
Target Release: 5.9.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: provision:vmware
Fixed In Version: 5.9.0.1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1478562 (view as bug list) Environment:
Last Closed: 2018-03-06 14:56:19 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: 1458363, 1478562, 1479396    
Attachments:
Description Flags
networking config example none

Description Leo Khomenko 2017-07-03 16:27:00 UTC
Created attachment 1293930 [details]
networking config example

Description of problem: issue appeared after 1458363
Auto_placement provision into DVS vlan fails with Error "Destination placement_ds_name not provided]" if provider Network with the same name exists

Version-Release number of selected component (if applicable):5.8.1
Virtualcenter: 6.5


How reproducible:100%


Steps to Reproduce:
1.Configure environment networks (check attachment)
2.Provision VM with auto_placement
3.Select DVS vlan

Actual results:Provision fails


Expected results: Provision should succeed and VM should be in selected vlan


Additional info: seems like CFME can't distinguish DVS and common provider network.and picks up common one. Provisioning with the same requirements on VirtualCenter 5.5 succeeds. Provision with manual placement has other issues described in https://bugzilla.redhat.com/show_bug.cgi?id=1467393.
The way we have same names for common and DVS network is described in 
https://bugzilla.redhat.com/show_bug.cgi?id=1467384

Comment 4 Lucy Fu 2017-07-18 18:10:55 UTC
*** Bug 1467393 has been marked as a duplicate of this bug. ***

Comment 5 CFME Bot 2017-07-20 17:34:24 UTC
New commit detected on ManageIQ/manageiq-providers-vmware/master:
https://github.com/ManageIQ/manageiq-providers-vmware/commit/4b7cddc0d41c5475b4de5d8f9e6d3ef6dbc55203

commit 4b7cddc0d41c5475b4de5d8f9e6d3ef6dbc55203
Author:     Lucy Fu <lufu>
AuthorDate: Tue Jul 18 13:48:09 2017 -0400
Commit:     Lucy Fu <lufu>
CommitDate: Wed Jul 19 13:28:55 2017 -0400

    Fix the VM Provisioning issue with auto replacement in selected dvPortGroup network.
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1467399

 .../vmware/infra_manager/provision_workflow.rb     | 11 +++++++++
 .../infra_manager/provision_workflow_spec.rb       | 28 ++++++++++++++++++++++
 2 files changed, 39 insertions(+)

Comment 7 Lucy Fu 2017-08-09 15:56:10 UTC
*** Bug 1478386 has been marked as a duplicate of this bug. ***