Bug 1775385

Summary: Mapping Wizard: OSP conversion host warning check is too broad, needs to look at specific providers
Product: Red Hat CloudForms Management Engine Reporter: Mike Turley <mturley>
Component: V2VAssignee: Mike Turley <mturley>
Status: CLOSED CURRENTRELEASE QA Contact: Sudhir Mallamprabhakara <smallamp>
Severity: medium Docs Contact: Red Hat CloudForms Documentation <cloudforms-docs>
Priority: high    
Version: 5.11.0CC: bthurber, dmetzger
Target Milestone: GAKeywords: TestOnly, ZStream
Target Release: 5.12.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1805910 (view as bug list) Environment:
Last Closed: 2020-10-26 16:13:35 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: Bug
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: V2V Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1805910    

Description Mike Turley 2019-11-21 20:41:18 UTC
See: https://github.com/ManageIQ/manageiq-v2v/issues/1069

When we implemented OSP target support, we made a mistake (in #812) in the logic that detects whether the user needs to be warned that there is no conversion host configured.

Currently, if there are no OSP conversion hosts anywhere the appliance can find, the UI displays a warning on the clusters step of the wizard reading "No OpenStack conversion hosts are configured. You can continue to create an infrastructure mapping, but you must configure a conversion host before migration execution."

However, this warning just checks whether OSP conversion hosts exist at all, it does not take into account which provider/EMS they reside in. If the user has more than one OSP provider configured, they could in theory have a conversion host in provider A (and therefore not see the warning), but create a mapping to provider B which would fail.

The conversion host warning for OSP needs to be similar to the one for RHV (a warning icon on each target cluster in the list), but instead of looking for the conversion host in that specific target cluster/project, it should look for a conversion host with the same EMS id as that target cluster/project.