Bug 1823874

Summary: [UPSTREAM] V2V: Message logged for preflight check failure should be more specific when VMware host credentials are missing
Product: Red Hat CloudForms Management Engine Reporter: Nandini Chandra <nachandr>
Component: V2VAssignee: Fabien Dupont <fdupont>
Status: CLOSED DUPLICATE QA Contact: Nandini Chandra <nachandr>
Severity: medium Docs Contact: Red Hat CloudForms Documentation <cloudforms-docs>
Priority: unspecified    
Version: unspecifiedCC: bthurber, dmetzger
Target Milestone: GA   
Target Release: cfme-future   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-04-27 19:51:21 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: V2V Target Upstream Version:
Embargoed:

Description Nandini Chandra 2020-04-14 17:12:14 UTC
Description of problem:
-----------------------
VM migration failed because VMware host credentials were missing.

The following error was logged to the evm.log file.

[----] E, [2020-04-02T19:00:01.312451 #8419:1209990] ERROR -- : Q-task_id([job_dispatcher]) MIQ(InfraConversionThrottler.start_conversions) Preflight check for auto-conv-rhv-vm2 has failed. Discarding. 

It would be great if the message logged could be more specific and stated the reason as to why the preflight check failed. 
A message like this would be very helpful to the end user and greatly reduce the time spent on troubleshooting the issue.
'A VM with the same name already existed on the target provider'.

It would also be nice if the reason for preflight check failure was shown in the CFME UI.


Version-Release number of selected component (if applicable):
-----------------------------
master.20200403002716_63b3608c8d


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


Steps to Reproduce:
-------------------
1.Add RHV and vSphere providers
2.Try to migrate a VM to RHV


Actual results:
---------------
Message logged for preflight check failure doesn't state the reason for failure.


Expected results:
-----------------
Message logged for preflight check failure should state the reason for failure.


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

Comment 2 Nandini Chandra 2020-04-14 17:15:29 UTC
Additional info:
See https://bugzilla.redhat.com/show_bug.cgi?id=1820012 [UPSTREAM] Quadicon incorrectly shows that host is authenticated when it's not

Comment 3 Fabien Dupont 2020-04-27 19:51:21 UTC
Fixed by https://github.com/ManageIQ/manageiq/pull/20105

*** This bug has been marked as a duplicate of bug 1719266 ***